From b94e353980794224aaca169ca519dd2bbf1888e4 Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 22 Jun 2026 14:17:54 -0700 Subject: [PATCH 1/3] 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/README.md | 2 +- .../FastCommentsClient/api/DefaultApi.h | 334 +- .../FastCommentsClient/api/ModerationApi.h | 269 +- .../FastCommentsClient/api/PublicApi.h | 166 +- .../model/AddHashTagResponse.h | 147 + .../model/AddHashTagsBulkResponse.h | 148 + .../AggregateQuestionResultsResponse_1.h | 147 + .../model/BlockFromCommentPublicResponse.h | 149 + .../model/BlockUserFromCommentResponse.h | 149 + .../BulkAggregateQuestionResultsResponse_1.h | 151 + .../model/ChangeTicketStateResponse_1.h | 147 + .../model/CheckedCommentsForBlockedResponse.h | 149 + ...mbineCommentsWithQuestionResultsResponse.h | 147 + .../model/CreateCommentPublicResponse.h | 177 + .../model/CreateEmailTemplateResponse_1.h | 147 + .../model/CreateFeedPostPublicResponse.h | 147 + .../model/CreateFeedPostResponse_1.h | 147 + .../model/CreateModeratorResponse_1.h | 147 + .../model/CreateQuestionConfigResponse_1.h | 147 + .../model/CreateQuestionResultResponse_1.h | 147 + .../model/CreateTenantPackageResponse_1.h | 147 + .../model/CreateTenantResponse_1.h | 147 + .../model/CreateTenantUserResponse_1.h | 147 + .../model/CreateTicketResponse_1.h | 147 + .../model/CreateUserBadgeResponse.h | 156 + .../model/CreateV1PageReactResponse.h | 137 + .../model/CreateV2PageReactResponse.h | 137 + .../model/CreateVoteResponse.h | 171 + .../model/DeleteCommentPublicResponse.h | 155 + .../model/DeleteCommentResponse.h | 146 + .../model/DeleteCommentVoteResponse.h | 145 + .../DeleteEmailTemplateRenderErrorResponse.h | 137 + .../model/DeleteEmailTemplateResponse.h | 137 + .../model/DeleteFeedPostPublicResponse.h | 61 + ...h => DeleteFeedPostPublicResponse_anyOf.h} | 37 +- .../model/DeleteHashTagResponse.h | 137 + .../model/DeleteModerationVoteResponse.h | 145 + .../model/DeleteModeratorResponse.h | 137 + .../model/DeleteNotificationCountResponse.h | 137 + .../model/DeletePendingWebhookEventResponse.h | 137 + .../model/DeleteQuestionConfigResponse.h | 137 + .../model/DeleteQuestionResultResponse.h | 137 + .../model/DeleteTenantPackageResponse.h | 137 + .../model/DeleteTenantResponse.h | 137 + .../model/DeleteTenantUserResponse.h | 137 + .../model/DeleteUserBadgeResponse.h | 137 + .../model/DeleteV1PageReactResponse.h | 137 + .../model/DeleteV2PageReactResponse.h | 137 + .../model/DeleteVoteResponse.h | 145 + .../model/FlagCommentPublicResponse.h | 137 + .../model/FlagCommentResponse_1.h | 153 + .../model/GetApiCommentsResponse.h | 167 + .../model/GetApiExportStatusResponse.h | 161 + .../model/GetApiIdsResponse.h | 154 + .../model/GetAuditLogsResponse_1.h | 148 + .../model/GetBanUsersFromCommentResponse.h | 148 + .../GetCachedNotificationCountResponse_1.h | 147 + .../model/GetCommentBanStatusResponse_1.h | 151 + .../model/GetCommentChildrenResponse.h | 148 + .../model/GetCommentResponse.h | 147 + .../model/GetCommentTextResponse_1.h | 153 + .../model/GetCommentVoteUserNamesResponse.h | 154 + .../model/GetCommentsForUserResponse_1.h | 146 + .../model/GetCommentsPublicResponse.h | 329 ++ ...h_200_response.h => GetCommentsResponse.h} | 50 +- .../model/GetCountResponse.h | 145 + .../model/GetCountsResponse.h | 145 + .../GetEmailTemplateDefinitionsResponse_1.h | 148 + .../GetEmailTemplateRenderErrorsResponse_1.h | 148 + .../model/GetEmailTemplateResponse_1.h | 147 + .../model/GetEmailTemplatesResponse_1.h | 148 + .../model/GetEventLogResponse_1.h | 148 + .../model/GetFeedPostsPublicResponse.h | 190 + .../model/GetFeedPostsResponse_1.h | 148 + .../model/GetFeedPostsStatsResponse.h | 148 + ...e_200_response.h => GetGifLargeResponse.h} | 16 +- .../model/GetGifsSearchResponse.h | 51 + .../model/GetGlobalEventLogResponse.h | 148 + .../model/GetHashTagsResponse_1.h | 148 + .../model/GetLogsResponse.h | 148 + .../model/GetManualBadgesForUserResponse.h | 148 + .../model/GetManualBadgesResponse.h | 148 + .../model/GetModerationCommentResponse.h | 147 + .../model/GetModerationCommentTextResponse.h | 144 + .../model/GetModeratorResponse_1.h | 147 + .../model/GetModeratorsResponse_1.h | 148 + .../model/GetNotificationCountResponse_1.h | 145 + .../model/GetNotificationsResponse_1.h | 148 + .../model/GetOfflineUsersResponse.h | 162 + .../model/GetOnlineUsersResponse.h | 178 + ...00_response.h => GetPagesPublicResponse.h} | 16 +- .../GetPendingWebhookEventCountResponse_1.h | 145 + .../model/GetPendingWebhookEventsResponse_1.h | 148 + .../model/GetPreBanSummaryResponse.h | 154 + .../model/GetQuestionConfigResponse_1.h | 147 + .../model/GetQuestionConfigsResponse_1.h | 148 + .../model/GetQuestionResultResponse_1.h | 147 + .../model/GetQuestionResultsResponse_1.h | 148 + .../model/GetSearchCommentsSummaryResponse.h | 145 + .../model/GetSearchPagesResponse.h | 148 + .../model/GetSearchSitesResponse.h | 148 + .../model/GetSearchSuggestResponse.h | 158 + .../model/GetSearchUsersResponse.h | 148 + .../model/GetTenantDailyUsagesResponse_1.h | 148 + .../model/GetTenantPackageResponse_1.h | 147 + .../model/GetTenantPackagesResponse_1.h | 148 + .../model/GetTenantResponse_1.h | 147 + .../model/GetTenantUserResponse_1.h | 147 + .../model/GetTenantUsersResponse_1.h | 148 + .../model/GetTenantsResponse_1.h | 148 + .../model/GetTicketResponse_1.h | 156 + .../model/GetTicketsResponse_1.h | 148 + ...response.h => GetTranslationsResponse_1.h} | 16 +- .../model/GetTrustFactorResponse.h | 153 + .../model/GetUserBadgeProgressByIdResponse.h | 147 + .../GetUserBadgeProgressByUserIdResponse.h | 147 + .../model/GetUserBadgeProgressListResponse.h | 148 + .../model/GetUserBadgeResponse.h | 147 + .../model/GetUserBadgesResponse.h | 148 + .../model/GetUserBanPreferenceResponse.h | 146 + .../model/GetUserInternalProfileResponse_1.h | 147 + .../GetUserNotificationCountResponse_1.h | 145 + .../model/GetUserNotificationsResponse.h | 176 + .../model/GetUserPresenceStatusesResponse_1.h | 149 + .../model/GetUserReactsPublicResponse.h | 146 + .../model/GetUserResponse_1.h | 147 + .../model/GetUsersInfoResponse.h | 148 + .../model/GetV1PageLikesResponse.h | 169 + .../model/GetV2PageReactUsersResponse_1.h | 146 + .../model/GetV2PageReactsResponse.h | 158 + .../model/GetVotesForUserResponse_1.h | 164 + .../model/GetVotesResponse_1.h | 164 + .../model/LockCommentResponse.h | 137 + .../model/PatchHashTagResponse.h | 147 + .../model/PinCommentResponse.h | 151 + .../model/PostAdjustCommentVotesResponse.h | 145 + .../model/PostApiExportResponse.h | 145 + .../model/PostBanUserFromCommentResponse.h | 147 + .../model/PostBanUserUndoResponse.h | 137 + .../model/PostBulkPreBanSummaryResponse.h | 178 + .../model/PostCommentsByIdsResponse.h | 148 + .../model/PostFlagCommentResponse.h | 137 + .../model/PostRemoveCommentResponse.h | 67 +- .../model/PostRestoreDeletedCommentResponse.h | 137 + .../PostSetCommentApprovalStatusResponse.h | 145 + .../PostSetCommentReviewStatusResponse.h | 137 + .../model/PostSetCommentSpamStatusResponse.h | 137 + .../model/PostSetCommentTextResponse.h | 145 + .../model/PostUnFlagCommentResponse.h | 137 + .../model/PostVoteResponse.h | 171 + .../model/PutAwardBadgeResponse.h | 156 + .../model/PutCloseThreadResponse.h | 137 + .../model/PutRemoveBadgeResponse.h | 148 + .../model/PutReopenThreadResponse.h | 137 + .../model/ReactFeedPostPublicResponse.h | 153 + .../model/RenderEmailTemplateResponse_1.h | 145 + .../model/ReplaceTenantPackageResponse.h | 137 + .../model/ReplaceTenantUserResponse.h | 137 + .../ResetUserNotificationCountResponse.h | 137 + .../model/ResetUserNotificationsResponse_1.h | 137 + .../model/SaveCommentResponse.h | 169 + .../model/SearchUsersResponse_1.h | 158 + .../model/SendInviteResponse.h | 137 + .../model/SendLoginLinkResponse.h | 137 + .../model/SetCommentTextResponse_1.h | 147 + .../model/SetTrustFactorResponse.h | 145 + .../model/UnBlockCommentPublicResponse.h | 149 + .../model/UnBlockUserFromCommentResponse.h | 149 + .../model/UnFlagCommentResponse.h | 153 + .../model/UnLockCommentResponse.h | 137 + .../model/UnPinCommentResponse.h | 151 + .../model/UpdateCommentResponse.h | 137 + .../model/UpdateEmailTemplateResponse.h | 137 + .../model/UpdateFeedPostPublicResponse.h | 147 + .../model/UpdateFeedPostResponse.h | 137 + .../model/UpdateModeratorResponse.h | 137 + .../model/UpdateNotificationResponse.h | 137 + .../model/UpdateQuestionConfigResponse.h | 137 + .../model/UpdateQuestionResultResponse.h | 137 + .../model/UpdateTenantPackageResponse.h | 137 + .../model/UpdateTenantResponse.h | 137 + .../model/UpdateTenantUserResponse.h | 137 + .../model/UpdateUserBadgeResponse.h | 137 + ...icationCommentSubscriptionStatusResponse.h | 59 + ...tificationPageSubscriptionStatusResponse.h | 59 + .../UpdateUserNotificationStatusResponse.h | 59 + .../model/VoteCommentResponse.h | 171 + client/src/api/DefaultApi.cpp | 360 +- client/src/api/ModerationApi.cpp | 386 +- client/src/api/PublicApi.cpp | 176 +- client/src/model/AddHashTagResponse.cpp | 511 +++ client/src/model/AddHashTagsBulkResponse.cpp | 511 +++ .../AggregateQuestionResultsResponse_1.cpp | 511 +++ .../model/BlockFromCommentPublicResponse.cpp | 510 ++ .../model/BlockUserFromCommentResponse.cpp | 510 ++ ...BulkAggregateQuestionResultsResponse_1.cpp | 511 +++ .../src/model/ChangeTicketStateResponse_1.cpp | 511 +++ .../CheckedCommentsForBlockedResponse.cpp | 510 ++ ...ineCommentsWithQuestionResultsResponse.cpp | 511 +++ .../src/model/CreateCommentPublicResponse.cpp | 654 +++ .../model/CreateEmailTemplateResponse_1.cpp | 511 +++ .../model/CreateFeedPostPublicResponse.cpp | 511 +++ client/src/model/CreateFeedPostResponse_1.cpp | 511 +++ .../src/model/CreateModeratorResponse_1.cpp | 511 +++ .../model/CreateQuestionConfigResponse_1.cpp | 511 +++ .../model/CreateQuestionResultResponse_1.cpp | 511 +++ .../model/CreateTenantPackageResponse_1.cpp | 511 +++ client/src/model/CreateTenantResponse_1.cpp | 511 +++ .../src/model/CreateTenantUserResponse_1.cpp | 511 +++ client/src/model/CreateTicketResponse_1.cpp | 511 +++ client/src/model/CreateUserBadgeResponse.cpp | 559 +++ .../src/model/CreateV1PageReactResponse.cpp | 463 ++ .../src/model/CreateV2PageReactResponse.cpp | 463 ++ client/src/model/CreateVoteResponse.cpp | 657 +++ .../src/model/DeleteCommentPublicResponse.cpp | 559 +++ client/src/model/DeleteCommentResponse.cpp | 511 +++ .../src/model/DeleteCommentVoteResponse.cpp | 511 +++ ...DeleteEmailTemplateRenderErrorResponse.cpp | 463 ++ .../src/model/DeleteEmailTemplateResponse.cpp | 463 ++ .../model/DeleteFeedPostPublicResponse.cpp | 340 ++ .../DeleteFeedPostPublicResponse_anyOf.cpp | 123 + client/src/model/DeleteHashTagResponse.cpp | 463 ++ .../model/DeleteModerationVoteResponse.cpp | 511 +++ client/src/model/DeleteModeratorResponse.cpp | 463 ++ .../model/DeleteNotificationCountResponse.cpp | 463 ++ .../DeletePendingWebhookEventResponse.cpp | 463 ++ .../model/DeleteQuestionConfigResponse.cpp | 463 ++ .../model/DeleteQuestionResultResponse.cpp | 463 ++ .../src/model/DeleteTenantPackageResponse.cpp | 463 ++ client/src/model/DeleteTenantResponse.cpp | 463 ++ client/src/model/DeleteTenantUserResponse.cpp | 463 ++ client/src/model/DeleteUserBadgeResponse.cpp | 463 ++ .../src/model/DeleteV1PageReactResponse.cpp | 463 ++ .../src/model/DeleteV2PageReactResponse.cpp | 463 ++ client/src/model/DeleteVoteResponse.cpp | 511 +++ .../src/model/FlagCommentPublicResponse.cpp | 463 ++ client/src/model/FlagCommentResponse_1.cpp | 559 +++ client/src/model/GetApiCommentsResponse.cpp | 607 +++ .../src/model/GetApiExportStatusResponse.cpp | 609 +++ client/src/model/GetApiIdsResponse.cpp | 559 +++ client/src/model/GetAuditLogsResponse_1.cpp | 511 +++ .../model/GetBanUsersFromCommentResponse.cpp | 511 +++ .../GetCachedNotificationCountResponse_1.cpp | 511 +++ .../model/GetCommentBanStatusResponse_1.cpp | 554 +++ .../src/model/GetCommentChildrenResponse.cpp | 511 +++ client/src/model/GetCommentResponse.cpp | 511 +++ client/src/model/GetCommentTextResponse_1.cpp | 561 +++ .../model/GetCommentVoteUserNamesResponse.cpp | 559 +++ .../model/GetCommentsForUserResponse_1.cpp | 511 +++ .../src/model/GetCommentsPublicResponse.cpp | 1567 +++++++ client/src/model/GetCommentsResponse.cpp | 511 +++ client/src/model/GetCountResponse.cpp | 511 +++ client/src/model/GetCountsResponse.cpp | 511 +++ .../GetEmailTemplateDefinitionsResponse_1.cpp | 511 +++ ...GetEmailTemplateRenderErrorsResponse_1.cpp | 511 +++ .../src/model/GetEmailTemplateResponse_1.cpp | 511 +++ .../src/model/GetEmailTemplatesResponse_1.cpp | 511 +++ client/src/model/GetEventLogResponse_1.cpp | 511 +++ .../src/model/GetFeedPostsPublicResponse.cpp | 752 +++ client/src/model/GetFeedPostsResponse_1.cpp | 511 +++ .../src/model/GetFeedPostsStatsResponse.cpp | 511 +++ ...0_response.cpp => GetGifLargeResponse.cpp} | 88 +- client/src/model/GetGifsSearchResponse.cpp | 291 ++ .../src/model/GetGlobalEventLogResponse.cpp | 511 +++ client/src/model/GetHashTagsResponse_1.cpp | 511 +++ client/src/model/GetLogsResponse.cpp | 511 +++ .../model/GetManualBadgesForUserResponse.cpp | 511 +++ client/src/model/GetManualBadgesResponse.cpp | 511 +++ .../model/GetModerationCommentResponse.cpp | 511 +++ .../GetModerationCommentTextResponse.cpp | 509 ++ client/src/model/GetModeratorResponse_1.cpp | 511 +++ client/src/model/GetModeratorsResponse_1.cpp | 511 +++ .../model/GetNotificationCountResponse_1.cpp | 511 +++ .../src/model/GetNotificationsResponse_1.cpp | 511 +++ client/src/model/GetOfflineUsersResponse.cpp | 603 +++ client/src/model/GetOnlineUsersResponse.cpp | 699 +++ ...esponse.cpp => GetPagesPublicResponse.cpp} | 96 +- .../GetPendingWebhookEventCountResponse_1.cpp | 511 +++ .../GetPendingWebhookEventsResponse_1.cpp | 511 +++ client/src/model/GetPreBanSummaryResponse.cpp | 559 +++ .../src/model/GetQuestionConfigResponse_1.cpp | 511 +++ .../model/GetQuestionConfigsResponse_1.cpp | 511 +++ .../src/model/GetQuestionResultResponse_1.cpp | 511 +++ .../model/GetQuestionResultsResponse_1.cpp | 511 +++ .../GetSearchCommentsSummaryResponse.cpp | 511 +++ client/src/model/GetSearchPagesResponse.cpp | 511 +++ client/src/model/GetSearchSitesResponse.cpp | 511 +++ client/src/model/GetSearchSuggestResponse.cpp | 559 +++ client/src/model/GetSearchUsersResponse.cpp | 511 +++ .../model/GetTenantDailyUsagesResponse_1.cpp | 511 +++ .../src/model/GetTenantPackageResponse_1.cpp | 511 +++ .../src/model/GetTenantPackagesResponse_1.cpp | 511 +++ ...0_response.cpp => GetTenantResponse_1.cpp} | 212 +- client/src/model/GetTenantUserResponse_1.cpp | 511 +++ client/src/model/GetTenantUsersResponse_1.cpp | 511 +++ client/src/model/GetTenantsResponse_1.cpp | 511 +++ client/src/model/GetTicketResponse_1.cpp | 558 +++ client/src/model/GetTicketsResponse_1.cpp | 511 +++ ...onse.cpp => GetTranslationsResponse_1.cpp} | 88 +- client/src/model/GetTrending_200_response.cpp | 220 - client/src/model/GetTrustFactorResponse.cpp | 559 +++ .../GetUserBadgeProgressByIdResponse.cpp | 511 +++ .../GetUserBadgeProgressByUserIdResponse.cpp | 511 +++ .../GetUserBadgeProgressListResponse.cpp | 511 +++ client/src/model/GetUserBadgeResponse.cpp | 511 +++ client/src/model/GetUserBadgesResponse.cpp | 511 +++ .../model/GetUserBanPreferenceResponse.cpp | 509 ++ .../GetUserInternalProfileResponse_1.cpp | 511 +++ .../GetUserNotificationCountResponse_1.cpp | 511 +++ .../model/GetUserNotificationsResponse.cpp | 655 +++ .../GetUserPresenceStatusesResponse_1.cpp | 510 ++ .../src/model/GetUserReactsPublicResponse.cpp | 511 +++ client/src/model/GetUserResponse_1.cpp | 511 +++ client/src/model/GetUsersInfoResponse.cpp | 511 +++ client/src/model/GetV1PageLikesResponse.cpp | 656 +++ .../model/GetV2PageReactUsersResponse_1.cpp | 511 +++ client/src/model/GetV2PageReactsResponse.cpp | 558 +++ .../src/model/GetVotesForUserResponse_1.cpp | 607 +++ client/src/model/GetVotesResponse_1.cpp | 607 +++ client/src/model/LockCommentResponse.cpp | 463 ++ client/src/model/PatchHashTagResponse.cpp | 511 +++ client/src/model/PinCommentResponse.cpp | 511 +++ .../model/PostAdjustCommentVotesResponse.cpp | 511 +++ client/src/model/PostApiExportResponse.cpp | 512 +++ .../model/PostBanUserFromCommentResponse.cpp | 511 +++ client/src/model/PostBanUserUndoResponse.cpp | 463 ++ .../model/PostBulkPreBanSummaryResponse.cpp | 703 +++ .../src/model/PostCommentsByIdsResponse.cpp | 511 +++ client/src/model/PostFlagCommentResponse.cpp | 463 ++ .../src/model/PostRemoveCommentResponse.cpp | 349 +- .../PostRestoreDeletedCommentResponse.cpp | 463 ++ .../PostSetCommentApprovalStatusResponse.cpp | 511 +++ .../PostSetCommentReviewStatusResponse.cpp | 463 ++ .../PostSetCommentSpamStatusResponse.cpp | 463 ++ .../src/model/PostSetCommentTextResponse.cpp | 512 +++ .../src/model/PostUnFlagCommentResponse.cpp | 463 ++ client/src/model/PostVoteResponse.cpp | 657 +++ client/src/model/PutAwardBadgeResponse.cpp | 559 +++ client/src/model/PutCloseThreadResponse.cpp | 463 ++ client/src/model/PutRemoveBadgeResponse.cpp | 511 +++ client/src/model/PutReopenThreadResponse.cpp | 463 ++ .../src/model/ReactFeedPostPublicResponse.cpp | 560 +++ .../model/RenderEmailTemplateResponse_1.cpp | 512 +++ .../model/ReplaceTenantPackageResponse.cpp | 463 ++ .../src/model/ReplaceTenantUserResponse.cpp | 463 ++ .../ResetUserNotificationCountResponse.cpp | 463 ++ .../ResetUserNotificationsResponse_1.cpp | 463 ++ client/src/model/SaveCommentResponse.cpp | 605 +++ client/src/model/SearchUsersResponse_1.cpp | 559 +++ client/src/model/SendInviteResponse.cpp | 463 ++ client/src/model/SendLoginLinkResponse.cpp | 463 ++ client/src/model/SetCommentTextResponse_1.cpp | 511 +++ client/src/model/SetTrustFactorResponse.cpp | 511 +++ .../model/UnBlockCommentPublicResponse.cpp | 510 ++ .../model/UnBlockUserFromCommentResponse.cpp | 510 ++ client/src/model/UnFlagCommentResponse.cpp | 559 +++ client/src/model/UnLockCommentResponse.cpp | 463 ++ client/src/model/UnPinCommentResponse.cpp | 511 +++ client/src/model/UpdateCommentResponse.cpp | 463 ++ .../src/model/UpdateEmailTemplateResponse.cpp | 463 ++ .../model/UpdateFeedPostPublicResponse.cpp | 511 +++ client/src/model/UpdateFeedPostResponse.cpp | 463 ++ client/src/model/UpdateModeratorResponse.cpp | 463 ++ .../src/model/UpdateNotificationResponse.cpp | 463 ++ .../model/UpdateQuestionConfigResponse.cpp | 463 ++ .../model/UpdateQuestionResultResponse.cpp | 463 ++ .../src/model/UpdateTenantPackageResponse.cpp | 463 ++ client/src/model/UpdateTenantResponse.cpp | 463 ++ client/src/model/UpdateTenantUserResponse.cpp | 463 ++ client/src/model/UpdateUserBadgeResponse.cpp | 463 ++ ...ationCommentSubscriptionStatusResponse.cpp | 340 ++ ...ficationPageSubscriptionStatusResponse.cpp | 340 ++ .../UpdateUserNotificationStatusResponse.cpp | 340 ++ client/src/model/VoteCommentResponse.cpp | 657 +++ docs/Apis/DefaultApi.md | 360 +- docs/Apis/ModerationApi.md | 224 +- docs/Apis/PublicApi.md | 176 +- docs/Models/AddHashTagResponse.md | 17 + docs/Models/AddHashTagsBulkResponse.md | 17 + .../AggregateQuestionResultsResponse_1.md | 17 + docs/Models/BlockFromCommentPublicResponse.md | 17 + docs/Models/BlockUserFromCommentResponse.md | 17 + .../BulkAggregateQuestionResultsResponse_1.md | 17 + docs/Models/ChangeTicketStateResponse_1.md | 17 + .../CheckedCommentsForBlockedResponse.md | 17 + ...bineCommentsWithQuestionResultsResponse.md | 17 + docs/Models/CreateCommentPublicResponse.md | 20 + docs/Models/CreateEmailTemplateResponse_1.md | 17 + docs/Models/CreateFeedPostPublicResponse.md | 17 + docs/Models/CreateFeedPostResponse_1.md | 17 + docs/Models/CreateModeratorResponse_1.md | 17 + docs/Models/CreateQuestionConfigResponse_1.md | 17 + docs/Models/CreateQuestionResultResponse_1.md | 17 + docs/Models/CreateTenantPackageResponse_1.md | 17 + docs/Models/CreateTenantResponse_1.md | 17 + docs/Models/CreateTenantUserResponse_1.md | 17 + docs/Models/CreateTicketResponse_1.md | 17 + docs/Models/CreateUserBadgeResponse.md | 18 + docs/Models/CreateV1PageReactResponse.md | 16 + docs/Models/CreateV2PageReactResponse.md | 16 + docs/Models/CreateVoteResponse.md | 20 + docs/Models/DeleteCommentPublicResponse.md | 18 + docs/Models/DeleteCommentResponse.md | 17 + docs/Models/DeleteCommentVoteResponse.md | 17 + .../DeleteEmailTemplateRenderErrorResponse.md | 16 + docs/Models/DeleteEmailTemplateResponse.md | 16 + docs/Models/DeleteFeedPostPublicResponse.md | 7 + .../DeleteFeedPostPublicResponse_anyOf.md | 9 + docs/Models/DeleteHashTagResponse.md | 16 + docs/Models/DeleteModerationVoteResponse.md | 17 + docs/Models/DeleteModeratorResponse.md | 16 + .../Models/DeleteNotificationCountResponse.md | 16 + .../DeletePendingWebhookEventResponse.md | 16 + docs/Models/DeleteQuestionConfigResponse.md | 16 + docs/Models/DeleteQuestionResultResponse.md | 16 + docs/Models/DeleteTenantPackageResponse.md | 16 + docs/Models/DeleteTenantResponse.md | 16 + docs/Models/DeleteTenantUserResponse.md | 16 + docs/Models/DeleteUserBadgeResponse.md | 16 + docs/Models/DeleteV1PageReactResponse.md | 16 + docs/Models/DeleteV2PageReactResponse.md | 16 + docs/Models/DeleteVoteResponse.md | 17 + docs/Models/FlagCommentPublicResponse.md | 16 + docs/Models/FlagCommentResponse_1.md | 18 + docs/Models/GetApiCommentsResponse.md | 19 + docs/Models/GetApiExportStatusResponse.md | 19 + docs/Models/GetApiIdsResponse.md | 18 + docs/Models/GetAuditLogsResponse_1.md | 17 + docs/Models/GetBanUsersFromCommentResponse.md | 17 + .../GetCachedNotificationCountResponse_1.md | 17 + docs/Models/GetCommentBanStatusResponse_1.md | 18 + docs/Models/GetCommentChildrenResponse.md | 17 + docs/Models/GetCommentResponse.md | 17 + docs/Models/GetCommentTextResponse_1.md | 18 + .../Models/GetCommentVoteUserNamesResponse.md | 18 + docs/Models/GetCommentsForUserResponse_1.md | 17 + docs/Models/GetCommentsPublicResponse.md | 39 + docs/Models/GetCommentsResponse.md | 17 + docs/Models/GetCountResponse.md | 17 + docs/Models/GetCountsResponse.md | 17 + .../GetEmailTemplateDefinitionsResponse_1.md | 17 + .../GetEmailTemplateRenderErrorsResponse_1.md | 17 + docs/Models/GetEmailTemplateResponse_1.md | 17 + docs/Models/GetEmailTemplatesResponse_1.md | 17 + docs/Models/GetEventLogResponse_1.md | 17 + docs/Models/GetFeedPostsPublicResponse.md | 22 + docs/Models/GetFeedPostsResponse_1.md | 17 + docs/Models/GetFeedPostsStatsResponse.md | 17 + docs/Models/GetGifLargeResponse.md | 17 + docs/Models/GetGifsSearchResponse.md | 6 + docs/Models/GetGlobalEventLogResponse.md | 17 + docs/Models/GetHashTagsResponse_1.md | 17 + docs/Models/GetLogsResponse.md | 17 + docs/Models/GetManualBadgesForUserResponse.md | 17 + docs/Models/GetManualBadgesResponse.md | 17 + docs/Models/GetModerationCommentResponse.md | 17 + .../GetModerationCommentTextResponse.md | 17 + docs/Models/GetModeratorResponse_1.md | 17 + docs/Models/GetModeratorsResponse_1.md | 17 + docs/Models/GetNotificationCountResponse_1.md | 17 + docs/Models/GetNotificationsResponse_1.md | 17 + docs/Models/GetOfflineUsersResponse.md | 19 + docs/Models/GetOnlineUsersResponse.md | 21 + docs/Models/GetPagesPublicResponse.md | 18 + .../GetPendingWebhookEventCountResponse_1.md | 17 + .../GetPendingWebhookEventsResponse_1.md | 17 + docs/Models/GetPreBanSummaryResponse.md | 18 + docs/Models/GetQuestionConfigResponse_1.md | 17 + docs/Models/GetQuestionConfigsResponse_1.md | 17 + docs/Models/GetQuestionResultResponse_1.md | 17 + docs/Models/GetQuestionResultsResponse_1.md | 17 + .../GetSearchCommentsSummaryResponse.md | 17 + docs/Models/GetSearchPagesResponse.md | 17 + docs/Models/GetSearchSitesResponse.md | 17 + docs/Models/GetSearchSuggestResponse.md | 18 + docs/Models/GetSearchUsersResponse.md | 17 + docs/Models/GetTenantDailyUsagesResponse_1.md | 17 + docs/Models/GetTenantPackageResponse_1.md | 17 + docs/Models/GetTenantPackagesResponse_1.md | 17 + docs/Models/GetTenantResponse_1.md | 17 + docs/Models/GetTenantUserResponse_1.md | 17 + docs/Models/GetTenantUsersResponse_1.md | 17 + docs/Models/GetTenantsResponse_1.md | 17 + docs/Models/GetTicketResponse_1.md | 18 + docs/Models/GetTicketsResponse_1.md | 17 + docs/Models/GetTranslationsResponse_1.md | 17 + docs/Models/GetTrustFactorResponse.md | 18 + .../GetUserBadgeProgressByIdResponse.md | 17 + .../GetUserBadgeProgressByUserIdResponse.md | 17 + .../GetUserBadgeProgressListResponse.md | 17 + docs/Models/GetUserBadgeResponse.md | 17 + docs/Models/GetUserBadgesResponse.md | 17 + docs/Models/GetUserBanPreferenceResponse.md | 17 + .../GetUserInternalProfileResponse_1.md | 17 + .../GetUserNotificationCountResponse_1.md | 17 + docs/Models/GetUserNotificationsResponse.md | 20 + .../GetUserPresenceStatusesResponse_1.md | 17 + docs/Models/GetUserReactsPublicResponse.md | 17 + docs/Models/GetUserResponse_1.md | 17 + docs/Models/GetUsersInfoResponse.md | 17 + docs/Models/GetV1PageLikesResponse.md | 20 + docs/Models/GetV2PageReactUsersResponse_1.md | 17 + docs/Models/GetV2PageReactsResponse.md | 18 + docs/Models/GetVotesForUserResponse_1.md | 19 + docs/Models/GetVotesResponse_1.md | 19 + docs/Models/LockCommentResponse.md | 16 + docs/Models/PatchHashTagResponse.md | 17 + docs/Models/PinCommentResponse.md | 17 + docs/Models/PostAdjustCommentVotesResponse.md | 17 + docs/Models/PostApiExportResponse.md | 17 + docs/Models/PostBanUserFromCommentResponse.md | 17 + docs/Models/PostBanUserUndoResponse.md | 16 + docs/Models/PostBulkPreBanSummaryResponse.md | 21 + docs/Models/PostCommentsByIdsResponse.md | 17 + docs/Models/PostFlagCommentResponse.md | 16 + docs/Models/PostRemoveCommentResponse.md | 11 +- .../PostRestoreDeletedCommentResponse.md | 16 + .../PostSetCommentApprovalStatusResponse.md | 17 + .../PostSetCommentReviewStatusResponse.md | 16 + .../PostSetCommentSpamStatusResponse.md | 16 + docs/Models/PostSetCommentTextResponse.md | 17 + docs/Models/PostUnFlagCommentResponse.md | 16 + docs/Models/PostVoteResponse.md | 20 + docs/Models/PutAwardBadgeResponse.md | 18 + docs/Models/PutCloseThreadResponse.md | 16 + docs/Models/PutRemoveBadgeResponse.md | 17 + docs/Models/PutReopenThreadResponse.md | 16 + docs/Models/ReactFeedPostPublicResponse.md | 18 + docs/Models/RenderEmailTemplateResponse_1.md | 17 + docs/Models/ReplaceTenantPackageResponse.md | 16 + docs/Models/ReplaceTenantUserResponse.md | 16 + .../ResetUserNotificationCountResponse.md | 16 + .../ResetUserNotificationsResponse_1.md | 16 + docs/Models/SaveCommentResponse.md | 19 + docs/Models/SearchUsersResponse_1.md | 18 + docs/Models/SendInviteResponse.md | 16 + docs/Models/SendLoginLinkResponse.md | 16 + docs/Models/SetCommentTextResponse_1.md | 17 + docs/Models/SetTrustFactorResponse.md | 17 + docs/Models/UnBlockCommentPublicResponse.md | 17 + docs/Models/UnBlockUserFromCommentResponse.md | 17 + docs/Models/UnFlagCommentResponse.md | 18 + docs/Models/UnLockCommentResponse.md | 16 + docs/Models/UnPinCommentResponse.md | 17 + docs/Models/UpdateCommentResponse.md | 16 + docs/Models/UpdateEmailTemplateResponse.md | 16 + docs/Models/UpdateFeedPostPublicResponse.md | 17 + docs/Models/UpdateFeedPostResponse.md | 16 + docs/Models/UpdateModeratorResponse.md | 16 + docs/Models/UpdateNotificationResponse.md | 16 + docs/Models/UpdateQuestionConfigResponse.md | 16 + docs/Models/UpdateQuestionResultResponse.md | 16 + docs/Models/UpdateTenantPackageResponse.md | 16 + docs/Models/UpdateTenantResponse.md | 16 + docs/Models/UpdateTenantUserResponse.md | 16 + docs/Models/UpdateUserBadgeResponse.md | 16 + ...cationCommentSubscriptionStatusResponse.md | 7 + ...ificationPageSubscriptionStatusResponse.md | 7 + .../UpdateUserNotificationStatusResponse.md | 7 + docs/Models/VoteCommentResponse.md | 20 + docs/README.md | 177 + openapi.json | 4082 +++++++++-------- 562 files changed, 124715 insertions(+), 3586 deletions(-) create mode 100644 client/include/FastCommentsClient/model/AddHashTagResponse.h create mode 100644 client/include/FastCommentsClient/model/AddHashTagsBulkResponse.h create mode 100644 client/include/FastCommentsClient/model/AggregateQuestionResultsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/BlockFromCommentPublicResponse.h create mode 100644 client/include/FastCommentsClient/model/BlockUserFromCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/ChangeTicketStateResponse_1.h create mode 100644 client/include/FastCommentsClient/model/CheckedCommentsForBlockedResponse.h create mode 100644 client/include/FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h create mode 100644 client/include/FastCommentsClient/model/CreateCommentPublicResponse.h create mode 100644 client/include/FastCommentsClient/model/CreateEmailTemplateResponse_1.h create mode 100644 client/include/FastCommentsClient/model/CreateFeedPostPublicResponse.h create mode 100644 client/include/FastCommentsClient/model/CreateFeedPostResponse_1.h create mode 100644 client/include/FastCommentsClient/model/CreateModeratorResponse_1.h create mode 100644 client/include/FastCommentsClient/model/CreateQuestionConfigResponse_1.h create mode 100644 client/include/FastCommentsClient/model/CreateQuestionResultResponse_1.h create mode 100644 client/include/FastCommentsClient/model/CreateTenantPackageResponse_1.h create mode 100644 client/include/FastCommentsClient/model/CreateTenantResponse_1.h create mode 100644 client/include/FastCommentsClient/model/CreateTenantUserResponse_1.h create mode 100644 client/include/FastCommentsClient/model/CreateTicketResponse_1.h create mode 100644 client/include/FastCommentsClient/model/CreateUserBadgeResponse.h create mode 100644 client/include/FastCommentsClient/model/CreateV1PageReactResponse.h create mode 100644 client/include/FastCommentsClient/model/CreateV2PageReactResponse.h create mode 100644 client/include/FastCommentsClient/model/CreateVoteResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteCommentPublicResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteCommentVoteResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteEmailTemplateResponse.h rename client/include/FastCommentsClient/model/{GetTrending_200_response.h => DeleteFeedPostPublicResponse_anyOf.h} (53%) create mode 100644 client/include/FastCommentsClient/model/DeleteHashTagResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteModerationVoteResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteModeratorResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteNotificationCountResponse.h create mode 100644 client/include/FastCommentsClient/model/DeletePendingWebhookEventResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteQuestionConfigResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteQuestionResultResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteTenantPackageResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteTenantResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteTenantUserResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteUserBadgeResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteV1PageReactResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteV2PageReactResponse.h create mode 100644 client/include/FastCommentsClient/model/DeleteVoteResponse.h create mode 100644 client/include/FastCommentsClient/model/FlagCommentPublicResponse.h create mode 100644 client/include/FastCommentsClient/model/FlagCommentResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetApiCommentsResponse.h create mode 100644 client/include/FastCommentsClient/model/GetApiExportStatusResponse.h create mode 100644 client/include/FastCommentsClient/model/GetApiIdsResponse.h create mode 100644 client/include/FastCommentsClient/model/GetAuditLogsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetBanUsersFromCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/GetCachedNotificationCountResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetCommentBanStatusResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetCommentChildrenResponse.h create mode 100644 client/include/FastCommentsClient/model/GetCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/GetCommentTextResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetCommentVoteUserNamesResponse.h create mode 100644 client/include/FastCommentsClient/model/GetCommentsForUserResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetCommentsPublicResponse.h rename client/include/FastCommentsClient/model/{Search_200_response.h => GetCommentsResponse.h} (77%) create mode 100644 client/include/FastCommentsClient/model/GetCountResponse.h create mode 100644 client/include/FastCommentsClient/model/GetCountsResponse.h create mode 100644 client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetEmailTemplateResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetEmailTemplatesResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetEventLogResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetFeedPostsPublicResponse.h create mode 100644 client/include/FastCommentsClient/model/GetFeedPostsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetFeedPostsStatsResponse.h rename client/include/FastCommentsClient/model/{GetLarge_200_response.h => GetGifLargeResponse.h} (90%) create mode 100644 client/include/FastCommentsClient/model/GetGlobalEventLogResponse.h create mode 100644 client/include/FastCommentsClient/model/GetHashTagsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetLogsResponse.h create mode 100644 client/include/FastCommentsClient/model/GetManualBadgesForUserResponse.h create mode 100644 client/include/FastCommentsClient/model/GetManualBadgesResponse.h create mode 100644 client/include/FastCommentsClient/model/GetModerationCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/GetModerationCommentTextResponse.h create mode 100644 client/include/FastCommentsClient/model/GetModeratorResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetModeratorsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetNotificationCountResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetNotificationsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetOfflineUsersResponse.h create mode 100644 client/include/FastCommentsClient/model/GetOnlineUsersResponse.h rename client/include/FastCommentsClient/model/{GetPagesPublic_200_response.h => GetPagesPublicResponse.h} (90%) create mode 100644 client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetPreBanSummaryResponse.h create mode 100644 client/include/FastCommentsClient/model/GetQuestionConfigResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetQuestionConfigsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetQuestionResultResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetQuestionResultsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetSearchCommentsSummaryResponse.h create mode 100644 client/include/FastCommentsClient/model/GetSearchPagesResponse.h create mode 100644 client/include/FastCommentsClient/model/GetSearchSitesResponse.h create mode 100644 client/include/FastCommentsClient/model/GetSearchSuggestResponse.h create mode 100644 client/include/FastCommentsClient/model/GetSearchUsersResponse.h create mode 100644 client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetTenantPackageResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetTenantPackagesResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetTenantResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetTenantUserResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetTenantUsersResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetTenantsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetTicketResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetTicketsResponse_1.h rename client/include/FastCommentsClient/model/{GetTranslations_200_response.h => GetTranslationsResponse_1.h} (90%) create mode 100644 client/include/FastCommentsClient/model/GetTrustFactorResponse.h create mode 100644 client/include/FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h create mode 100644 client/include/FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h create mode 100644 client/include/FastCommentsClient/model/GetUserBadgeProgressListResponse.h create mode 100644 client/include/FastCommentsClient/model/GetUserBadgeResponse.h create mode 100644 client/include/FastCommentsClient/model/GetUserBadgesResponse.h create mode 100644 client/include/FastCommentsClient/model/GetUserBanPreferenceResponse.h create mode 100644 client/include/FastCommentsClient/model/GetUserInternalProfileResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetUserNotificationCountResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetUserNotificationsResponse.h create mode 100644 client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetUserReactsPublicResponse.h create mode 100644 client/include/FastCommentsClient/model/GetUserResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetUsersInfoResponse.h create mode 100644 client/include/FastCommentsClient/model/GetV1PageLikesResponse.h create mode 100644 client/include/FastCommentsClient/model/GetV2PageReactUsersResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetV2PageReactsResponse.h create mode 100644 client/include/FastCommentsClient/model/GetVotesForUserResponse_1.h create mode 100644 client/include/FastCommentsClient/model/GetVotesResponse_1.h create mode 100644 client/include/FastCommentsClient/model/LockCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/PatchHashTagResponse.h create mode 100644 client/include/FastCommentsClient/model/PinCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/PostAdjustCommentVotesResponse.h create mode 100644 client/include/FastCommentsClient/model/PostApiExportResponse.h create mode 100644 client/include/FastCommentsClient/model/PostBanUserFromCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/PostBanUserUndoResponse.h create mode 100644 client/include/FastCommentsClient/model/PostBulkPreBanSummaryResponse.h create mode 100644 client/include/FastCommentsClient/model/PostCommentsByIdsResponse.h create mode 100644 client/include/FastCommentsClient/model/PostFlagCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/PostRestoreDeletedCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h create mode 100644 client/include/FastCommentsClient/model/PostSetCommentReviewStatusResponse.h create mode 100644 client/include/FastCommentsClient/model/PostSetCommentSpamStatusResponse.h create mode 100644 client/include/FastCommentsClient/model/PostSetCommentTextResponse.h create mode 100644 client/include/FastCommentsClient/model/PostUnFlagCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/PostVoteResponse.h create mode 100644 client/include/FastCommentsClient/model/PutAwardBadgeResponse.h create mode 100644 client/include/FastCommentsClient/model/PutCloseThreadResponse.h create mode 100644 client/include/FastCommentsClient/model/PutRemoveBadgeResponse.h create mode 100644 client/include/FastCommentsClient/model/PutReopenThreadResponse.h create mode 100644 client/include/FastCommentsClient/model/ReactFeedPostPublicResponse.h create mode 100644 client/include/FastCommentsClient/model/RenderEmailTemplateResponse_1.h create mode 100644 client/include/FastCommentsClient/model/ReplaceTenantPackageResponse.h create mode 100644 client/include/FastCommentsClient/model/ReplaceTenantUserResponse.h create mode 100644 client/include/FastCommentsClient/model/ResetUserNotificationCountResponse.h create mode 100644 client/include/FastCommentsClient/model/ResetUserNotificationsResponse_1.h create mode 100644 client/include/FastCommentsClient/model/SaveCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/SearchUsersResponse_1.h create mode 100644 client/include/FastCommentsClient/model/SendInviteResponse.h create mode 100644 client/include/FastCommentsClient/model/SendLoginLinkResponse.h create mode 100644 client/include/FastCommentsClient/model/SetCommentTextResponse_1.h create mode 100644 client/include/FastCommentsClient/model/SetTrustFactorResponse.h create mode 100644 client/include/FastCommentsClient/model/UnBlockCommentPublicResponse.h create mode 100644 client/include/FastCommentsClient/model/UnBlockUserFromCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/UnFlagCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/UnLockCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/UnPinCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateCommentResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateEmailTemplateResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateFeedPostPublicResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateFeedPostResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateModeratorResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateNotificationResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateQuestionConfigResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateQuestionResultResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateTenantPackageResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateTenantResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateTenantUserResponse.h create mode 100644 client/include/FastCommentsClient/model/UpdateUserBadgeResponse.h create mode 100644 client/include/FastCommentsClient/model/VoteCommentResponse.h create mode 100644 client/src/model/AddHashTagResponse.cpp create mode 100644 client/src/model/AddHashTagsBulkResponse.cpp create mode 100644 client/src/model/AggregateQuestionResultsResponse_1.cpp create mode 100644 client/src/model/BlockFromCommentPublicResponse.cpp create mode 100644 client/src/model/BlockUserFromCommentResponse.cpp create mode 100644 client/src/model/BulkAggregateQuestionResultsResponse_1.cpp create mode 100644 client/src/model/ChangeTicketStateResponse_1.cpp create mode 100644 client/src/model/CheckedCommentsForBlockedResponse.cpp create mode 100644 client/src/model/CombineCommentsWithQuestionResultsResponse.cpp create mode 100644 client/src/model/CreateCommentPublicResponse.cpp create mode 100644 client/src/model/CreateEmailTemplateResponse_1.cpp create mode 100644 client/src/model/CreateFeedPostPublicResponse.cpp create mode 100644 client/src/model/CreateFeedPostResponse_1.cpp create mode 100644 client/src/model/CreateModeratorResponse_1.cpp create mode 100644 client/src/model/CreateQuestionConfigResponse_1.cpp create mode 100644 client/src/model/CreateQuestionResultResponse_1.cpp create mode 100644 client/src/model/CreateTenantPackageResponse_1.cpp create mode 100644 client/src/model/CreateTenantResponse_1.cpp create mode 100644 client/src/model/CreateTenantUserResponse_1.cpp create mode 100644 client/src/model/CreateTicketResponse_1.cpp create mode 100644 client/src/model/CreateUserBadgeResponse.cpp create mode 100644 client/src/model/CreateV1PageReactResponse.cpp create mode 100644 client/src/model/CreateV2PageReactResponse.cpp create mode 100644 client/src/model/CreateVoteResponse.cpp create mode 100644 client/src/model/DeleteCommentPublicResponse.cpp create mode 100644 client/src/model/DeleteCommentResponse.cpp create mode 100644 client/src/model/DeleteCommentVoteResponse.cpp create mode 100644 client/src/model/DeleteEmailTemplateRenderErrorResponse.cpp create mode 100644 client/src/model/DeleteEmailTemplateResponse.cpp create mode 100644 client/src/model/DeleteFeedPostPublicResponse_anyOf.cpp create mode 100644 client/src/model/DeleteHashTagResponse.cpp create mode 100644 client/src/model/DeleteModerationVoteResponse.cpp create mode 100644 client/src/model/DeleteModeratorResponse.cpp create mode 100644 client/src/model/DeleteNotificationCountResponse.cpp create mode 100644 client/src/model/DeletePendingWebhookEventResponse.cpp create mode 100644 client/src/model/DeleteQuestionConfigResponse.cpp create mode 100644 client/src/model/DeleteQuestionResultResponse.cpp create mode 100644 client/src/model/DeleteTenantPackageResponse.cpp create mode 100644 client/src/model/DeleteTenantResponse.cpp create mode 100644 client/src/model/DeleteTenantUserResponse.cpp create mode 100644 client/src/model/DeleteUserBadgeResponse.cpp create mode 100644 client/src/model/DeleteV1PageReactResponse.cpp create mode 100644 client/src/model/DeleteV2PageReactResponse.cpp create mode 100644 client/src/model/DeleteVoteResponse.cpp create mode 100644 client/src/model/FlagCommentPublicResponse.cpp create mode 100644 client/src/model/FlagCommentResponse_1.cpp create mode 100644 client/src/model/GetApiCommentsResponse.cpp create mode 100644 client/src/model/GetApiExportStatusResponse.cpp create mode 100644 client/src/model/GetApiIdsResponse.cpp create mode 100644 client/src/model/GetAuditLogsResponse_1.cpp create mode 100644 client/src/model/GetBanUsersFromCommentResponse.cpp create mode 100644 client/src/model/GetCachedNotificationCountResponse_1.cpp create mode 100644 client/src/model/GetCommentBanStatusResponse_1.cpp create mode 100644 client/src/model/GetCommentChildrenResponse.cpp create mode 100644 client/src/model/GetCommentResponse.cpp create mode 100644 client/src/model/GetCommentTextResponse_1.cpp create mode 100644 client/src/model/GetCommentVoteUserNamesResponse.cpp create mode 100644 client/src/model/GetCommentsForUserResponse_1.cpp create mode 100644 client/src/model/GetCommentsPublicResponse.cpp create mode 100644 client/src/model/GetCommentsResponse.cpp create mode 100644 client/src/model/GetCountResponse.cpp create mode 100644 client/src/model/GetCountsResponse.cpp create mode 100644 client/src/model/GetEmailTemplateDefinitionsResponse_1.cpp create mode 100644 client/src/model/GetEmailTemplateRenderErrorsResponse_1.cpp create mode 100644 client/src/model/GetEmailTemplateResponse_1.cpp create mode 100644 client/src/model/GetEmailTemplatesResponse_1.cpp create mode 100644 client/src/model/GetEventLogResponse_1.cpp create mode 100644 client/src/model/GetFeedPostsPublicResponse.cpp create mode 100644 client/src/model/GetFeedPostsResponse_1.cpp create mode 100644 client/src/model/GetFeedPostsStatsResponse.cpp rename client/src/model/{GetLarge_200_response.cpp => GetGifLargeResponse.cpp} (83%) create mode 100644 client/src/model/GetGlobalEventLogResponse.cpp create mode 100644 client/src/model/GetHashTagsResponse_1.cpp create mode 100644 client/src/model/GetLogsResponse.cpp create mode 100644 client/src/model/GetManualBadgesForUserResponse.cpp create mode 100644 client/src/model/GetManualBadgesResponse.cpp create mode 100644 client/src/model/GetModerationCommentResponse.cpp create mode 100644 client/src/model/GetModerationCommentTextResponse.cpp create mode 100644 client/src/model/GetModeratorResponse_1.cpp create mode 100644 client/src/model/GetModeratorsResponse_1.cpp create mode 100644 client/src/model/GetNotificationCountResponse_1.cpp create mode 100644 client/src/model/GetNotificationsResponse_1.cpp create mode 100644 client/src/model/GetOfflineUsersResponse.cpp create mode 100644 client/src/model/GetOnlineUsersResponse.cpp rename client/src/model/{GetPagesPublic_200_response.cpp => GetPagesPublicResponse.cpp} (81%) create mode 100644 client/src/model/GetPendingWebhookEventCountResponse_1.cpp create mode 100644 client/src/model/GetPendingWebhookEventsResponse_1.cpp create mode 100644 client/src/model/GetPreBanSummaryResponse.cpp create mode 100644 client/src/model/GetQuestionConfigResponse_1.cpp create mode 100644 client/src/model/GetQuestionConfigsResponse_1.cpp create mode 100644 client/src/model/GetQuestionResultResponse_1.cpp create mode 100644 client/src/model/GetQuestionResultsResponse_1.cpp create mode 100644 client/src/model/GetSearchCommentsSummaryResponse.cpp create mode 100644 client/src/model/GetSearchPagesResponse.cpp create mode 100644 client/src/model/GetSearchSitesResponse.cpp create mode 100644 client/src/model/GetSearchSuggestResponse.cpp create mode 100644 client/src/model/GetSearchUsersResponse.cpp create mode 100644 client/src/model/GetTenantDailyUsagesResponse_1.cpp create mode 100644 client/src/model/GetTenantPackageResponse_1.cpp create mode 100644 client/src/model/GetTenantPackagesResponse_1.cpp rename client/src/model/{Search_200_response.cpp => GetTenantResponse_1.cpp} (79%) create mode 100644 client/src/model/GetTenantUserResponse_1.cpp create mode 100644 client/src/model/GetTenantUsersResponse_1.cpp create mode 100644 client/src/model/GetTenantsResponse_1.cpp create mode 100644 client/src/model/GetTicketResponse_1.cpp create mode 100644 client/src/model/GetTicketsResponse_1.cpp rename client/src/model/{GetTranslations_200_response.cpp => GetTranslationsResponse_1.cpp} (81%) delete mode 100644 client/src/model/GetTrending_200_response.cpp create mode 100644 client/src/model/GetTrustFactorResponse.cpp create mode 100644 client/src/model/GetUserBadgeProgressByIdResponse.cpp create mode 100644 client/src/model/GetUserBadgeProgressByUserIdResponse.cpp create mode 100644 client/src/model/GetUserBadgeProgressListResponse.cpp create mode 100644 client/src/model/GetUserBadgeResponse.cpp create mode 100644 client/src/model/GetUserBadgesResponse.cpp create mode 100644 client/src/model/GetUserBanPreferenceResponse.cpp create mode 100644 client/src/model/GetUserInternalProfileResponse_1.cpp create mode 100644 client/src/model/GetUserNotificationCountResponse_1.cpp create mode 100644 client/src/model/GetUserNotificationsResponse.cpp create mode 100644 client/src/model/GetUserPresenceStatusesResponse_1.cpp create mode 100644 client/src/model/GetUserReactsPublicResponse.cpp create mode 100644 client/src/model/GetUserResponse_1.cpp create mode 100644 client/src/model/GetUsersInfoResponse.cpp create mode 100644 client/src/model/GetV1PageLikesResponse.cpp create mode 100644 client/src/model/GetV2PageReactUsersResponse_1.cpp create mode 100644 client/src/model/GetV2PageReactsResponse.cpp create mode 100644 client/src/model/GetVotesForUserResponse_1.cpp create mode 100644 client/src/model/GetVotesResponse_1.cpp create mode 100644 client/src/model/LockCommentResponse.cpp create mode 100644 client/src/model/PatchHashTagResponse.cpp create mode 100644 client/src/model/PinCommentResponse.cpp create mode 100644 client/src/model/PostAdjustCommentVotesResponse.cpp create mode 100644 client/src/model/PostApiExportResponse.cpp create mode 100644 client/src/model/PostBanUserFromCommentResponse.cpp create mode 100644 client/src/model/PostBanUserUndoResponse.cpp create mode 100644 client/src/model/PostBulkPreBanSummaryResponse.cpp create mode 100644 client/src/model/PostCommentsByIdsResponse.cpp create mode 100644 client/src/model/PostFlagCommentResponse.cpp create mode 100644 client/src/model/PostRestoreDeletedCommentResponse.cpp create mode 100644 client/src/model/PostSetCommentApprovalStatusResponse.cpp create mode 100644 client/src/model/PostSetCommentReviewStatusResponse.cpp create mode 100644 client/src/model/PostSetCommentSpamStatusResponse.cpp create mode 100644 client/src/model/PostSetCommentTextResponse.cpp create mode 100644 client/src/model/PostUnFlagCommentResponse.cpp create mode 100644 client/src/model/PostVoteResponse.cpp create mode 100644 client/src/model/PutAwardBadgeResponse.cpp create mode 100644 client/src/model/PutCloseThreadResponse.cpp create mode 100644 client/src/model/PutRemoveBadgeResponse.cpp create mode 100644 client/src/model/PutReopenThreadResponse.cpp create mode 100644 client/src/model/ReactFeedPostPublicResponse.cpp create mode 100644 client/src/model/RenderEmailTemplateResponse_1.cpp create mode 100644 client/src/model/ReplaceTenantPackageResponse.cpp create mode 100644 client/src/model/ReplaceTenantUserResponse.cpp create mode 100644 client/src/model/ResetUserNotificationCountResponse.cpp create mode 100644 client/src/model/ResetUserNotificationsResponse_1.cpp create mode 100644 client/src/model/SaveCommentResponse.cpp create mode 100644 client/src/model/SearchUsersResponse_1.cpp create mode 100644 client/src/model/SendInviteResponse.cpp create mode 100644 client/src/model/SendLoginLinkResponse.cpp create mode 100644 client/src/model/SetCommentTextResponse_1.cpp create mode 100644 client/src/model/SetTrustFactorResponse.cpp create mode 100644 client/src/model/UnBlockCommentPublicResponse.cpp create mode 100644 client/src/model/UnBlockUserFromCommentResponse.cpp create mode 100644 client/src/model/UnFlagCommentResponse.cpp create mode 100644 client/src/model/UnLockCommentResponse.cpp create mode 100644 client/src/model/UnPinCommentResponse.cpp create mode 100644 client/src/model/UpdateCommentResponse.cpp create mode 100644 client/src/model/UpdateEmailTemplateResponse.cpp create mode 100644 client/src/model/UpdateFeedPostPublicResponse.cpp create mode 100644 client/src/model/UpdateFeedPostResponse.cpp create mode 100644 client/src/model/UpdateModeratorResponse.cpp create mode 100644 client/src/model/UpdateNotificationResponse.cpp create mode 100644 client/src/model/UpdateQuestionConfigResponse.cpp create mode 100644 client/src/model/UpdateQuestionResultResponse.cpp create mode 100644 client/src/model/UpdateTenantPackageResponse.cpp create mode 100644 client/src/model/UpdateTenantResponse.cpp create mode 100644 client/src/model/UpdateTenantUserResponse.cpp create mode 100644 client/src/model/UpdateUserBadgeResponse.cpp create mode 100644 client/src/model/VoteCommentResponse.cpp create mode 100644 docs/Models/AddHashTagResponse.md create mode 100644 docs/Models/AddHashTagsBulkResponse.md create mode 100644 docs/Models/AggregateQuestionResultsResponse_1.md create mode 100644 docs/Models/BlockFromCommentPublicResponse.md create mode 100644 docs/Models/BlockUserFromCommentResponse.md create mode 100644 docs/Models/BulkAggregateQuestionResultsResponse_1.md create mode 100644 docs/Models/ChangeTicketStateResponse_1.md create mode 100644 docs/Models/CheckedCommentsForBlockedResponse.md create mode 100644 docs/Models/CombineCommentsWithQuestionResultsResponse.md create mode 100644 docs/Models/CreateCommentPublicResponse.md create mode 100644 docs/Models/CreateEmailTemplateResponse_1.md create mode 100644 docs/Models/CreateFeedPostPublicResponse.md create mode 100644 docs/Models/CreateFeedPostResponse_1.md create mode 100644 docs/Models/CreateModeratorResponse_1.md create mode 100644 docs/Models/CreateQuestionConfigResponse_1.md create mode 100644 docs/Models/CreateQuestionResultResponse_1.md create mode 100644 docs/Models/CreateTenantPackageResponse_1.md create mode 100644 docs/Models/CreateTenantResponse_1.md create mode 100644 docs/Models/CreateTenantUserResponse_1.md create mode 100644 docs/Models/CreateTicketResponse_1.md create mode 100644 docs/Models/CreateUserBadgeResponse.md create mode 100644 docs/Models/CreateV1PageReactResponse.md create mode 100644 docs/Models/CreateV2PageReactResponse.md create mode 100644 docs/Models/CreateVoteResponse.md create mode 100644 docs/Models/DeleteCommentPublicResponse.md create mode 100644 docs/Models/DeleteCommentResponse.md create mode 100644 docs/Models/DeleteCommentVoteResponse.md create mode 100644 docs/Models/DeleteEmailTemplateRenderErrorResponse.md create mode 100644 docs/Models/DeleteEmailTemplateResponse.md create mode 100644 docs/Models/DeleteFeedPostPublicResponse_anyOf.md create mode 100644 docs/Models/DeleteHashTagResponse.md create mode 100644 docs/Models/DeleteModerationVoteResponse.md create mode 100644 docs/Models/DeleteModeratorResponse.md create mode 100644 docs/Models/DeleteNotificationCountResponse.md create mode 100644 docs/Models/DeletePendingWebhookEventResponse.md create mode 100644 docs/Models/DeleteQuestionConfigResponse.md create mode 100644 docs/Models/DeleteQuestionResultResponse.md create mode 100644 docs/Models/DeleteTenantPackageResponse.md create mode 100644 docs/Models/DeleteTenantResponse.md create mode 100644 docs/Models/DeleteTenantUserResponse.md create mode 100644 docs/Models/DeleteUserBadgeResponse.md create mode 100644 docs/Models/DeleteV1PageReactResponse.md create mode 100644 docs/Models/DeleteV2PageReactResponse.md create mode 100644 docs/Models/DeleteVoteResponse.md create mode 100644 docs/Models/FlagCommentPublicResponse.md create mode 100644 docs/Models/FlagCommentResponse_1.md create mode 100644 docs/Models/GetApiCommentsResponse.md create mode 100644 docs/Models/GetApiExportStatusResponse.md create mode 100644 docs/Models/GetApiIdsResponse.md create mode 100644 docs/Models/GetAuditLogsResponse_1.md create mode 100644 docs/Models/GetBanUsersFromCommentResponse.md create mode 100644 docs/Models/GetCachedNotificationCountResponse_1.md create mode 100644 docs/Models/GetCommentBanStatusResponse_1.md create mode 100644 docs/Models/GetCommentChildrenResponse.md create mode 100644 docs/Models/GetCommentResponse.md create mode 100644 docs/Models/GetCommentTextResponse_1.md create mode 100644 docs/Models/GetCommentVoteUserNamesResponse.md create mode 100644 docs/Models/GetCommentsForUserResponse_1.md create mode 100644 docs/Models/GetCommentsPublicResponse.md create mode 100644 docs/Models/GetCommentsResponse.md create mode 100644 docs/Models/GetCountResponse.md create mode 100644 docs/Models/GetCountsResponse.md create mode 100644 docs/Models/GetEmailTemplateDefinitionsResponse_1.md create mode 100644 docs/Models/GetEmailTemplateRenderErrorsResponse_1.md create mode 100644 docs/Models/GetEmailTemplateResponse_1.md create mode 100644 docs/Models/GetEmailTemplatesResponse_1.md create mode 100644 docs/Models/GetEventLogResponse_1.md create mode 100644 docs/Models/GetFeedPostsPublicResponse.md create mode 100644 docs/Models/GetFeedPostsResponse_1.md create mode 100644 docs/Models/GetFeedPostsStatsResponse.md create mode 100644 docs/Models/GetGifLargeResponse.md create mode 100644 docs/Models/GetGlobalEventLogResponse.md create mode 100644 docs/Models/GetHashTagsResponse_1.md create mode 100644 docs/Models/GetLogsResponse.md create mode 100644 docs/Models/GetManualBadgesForUserResponse.md create mode 100644 docs/Models/GetManualBadgesResponse.md create mode 100644 docs/Models/GetModerationCommentResponse.md create mode 100644 docs/Models/GetModerationCommentTextResponse.md create mode 100644 docs/Models/GetModeratorResponse_1.md create mode 100644 docs/Models/GetModeratorsResponse_1.md create mode 100644 docs/Models/GetNotificationCountResponse_1.md create mode 100644 docs/Models/GetNotificationsResponse_1.md create mode 100644 docs/Models/GetOfflineUsersResponse.md create mode 100644 docs/Models/GetOnlineUsersResponse.md create mode 100644 docs/Models/GetPagesPublicResponse.md create mode 100644 docs/Models/GetPendingWebhookEventCountResponse_1.md create mode 100644 docs/Models/GetPendingWebhookEventsResponse_1.md create mode 100644 docs/Models/GetPreBanSummaryResponse.md create mode 100644 docs/Models/GetQuestionConfigResponse_1.md create mode 100644 docs/Models/GetQuestionConfigsResponse_1.md create mode 100644 docs/Models/GetQuestionResultResponse_1.md create mode 100644 docs/Models/GetQuestionResultsResponse_1.md create mode 100644 docs/Models/GetSearchCommentsSummaryResponse.md create mode 100644 docs/Models/GetSearchPagesResponse.md create mode 100644 docs/Models/GetSearchSitesResponse.md create mode 100644 docs/Models/GetSearchSuggestResponse.md create mode 100644 docs/Models/GetSearchUsersResponse.md create mode 100644 docs/Models/GetTenantDailyUsagesResponse_1.md create mode 100644 docs/Models/GetTenantPackageResponse_1.md create mode 100644 docs/Models/GetTenantPackagesResponse_1.md create mode 100644 docs/Models/GetTenantResponse_1.md create mode 100644 docs/Models/GetTenantUserResponse_1.md create mode 100644 docs/Models/GetTenantUsersResponse_1.md create mode 100644 docs/Models/GetTenantsResponse_1.md create mode 100644 docs/Models/GetTicketResponse_1.md create mode 100644 docs/Models/GetTicketsResponse_1.md create mode 100644 docs/Models/GetTranslationsResponse_1.md create mode 100644 docs/Models/GetTrustFactorResponse.md create mode 100644 docs/Models/GetUserBadgeProgressByIdResponse.md create mode 100644 docs/Models/GetUserBadgeProgressByUserIdResponse.md create mode 100644 docs/Models/GetUserBadgeProgressListResponse.md create mode 100644 docs/Models/GetUserBadgeResponse.md create mode 100644 docs/Models/GetUserBadgesResponse.md create mode 100644 docs/Models/GetUserBanPreferenceResponse.md create mode 100644 docs/Models/GetUserInternalProfileResponse_1.md create mode 100644 docs/Models/GetUserNotificationCountResponse_1.md create mode 100644 docs/Models/GetUserNotificationsResponse.md create mode 100644 docs/Models/GetUserPresenceStatusesResponse_1.md create mode 100644 docs/Models/GetUserReactsPublicResponse.md create mode 100644 docs/Models/GetUserResponse_1.md create mode 100644 docs/Models/GetUsersInfoResponse.md create mode 100644 docs/Models/GetV1PageLikesResponse.md create mode 100644 docs/Models/GetV2PageReactUsersResponse_1.md create mode 100644 docs/Models/GetV2PageReactsResponse.md create mode 100644 docs/Models/GetVotesForUserResponse_1.md create mode 100644 docs/Models/GetVotesResponse_1.md create mode 100644 docs/Models/LockCommentResponse.md create mode 100644 docs/Models/PatchHashTagResponse.md create mode 100644 docs/Models/PinCommentResponse.md create mode 100644 docs/Models/PostAdjustCommentVotesResponse.md create mode 100644 docs/Models/PostApiExportResponse.md create mode 100644 docs/Models/PostBanUserFromCommentResponse.md create mode 100644 docs/Models/PostBanUserUndoResponse.md create mode 100644 docs/Models/PostBulkPreBanSummaryResponse.md create mode 100644 docs/Models/PostCommentsByIdsResponse.md create mode 100644 docs/Models/PostFlagCommentResponse.md create mode 100644 docs/Models/PostRestoreDeletedCommentResponse.md create mode 100644 docs/Models/PostSetCommentApprovalStatusResponse.md create mode 100644 docs/Models/PostSetCommentReviewStatusResponse.md create mode 100644 docs/Models/PostSetCommentSpamStatusResponse.md create mode 100644 docs/Models/PostSetCommentTextResponse.md create mode 100644 docs/Models/PostUnFlagCommentResponse.md create mode 100644 docs/Models/PostVoteResponse.md create mode 100644 docs/Models/PutAwardBadgeResponse.md create mode 100644 docs/Models/PutCloseThreadResponse.md create mode 100644 docs/Models/PutRemoveBadgeResponse.md create mode 100644 docs/Models/PutReopenThreadResponse.md create mode 100644 docs/Models/ReactFeedPostPublicResponse.md create mode 100644 docs/Models/RenderEmailTemplateResponse_1.md create mode 100644 docs/Models/ReplaceTenantPackageResponse.md create mode 100644 docs/Models/ReplaceTenantUserResponse.md create mode 100644 docs/Models/ResetUserNotificationCountResponse.md create mode 100644 docs/Models/ResetUserNotificationsResponse_1.md create mode 100644 docs/Models/SaveCommentResponse.md create mode 100644 docs/Models/SearchUsersResponse_1.md create mode 100644 docs/Models/SendInviteResponse.md create mode 100644 docs/Models/SendLoginLinkResponse.md create mode 100644 docs/Models/SetCommentTextResponse_1.md create mode 100644 docs/Models/SetTrustFactorResponse.md create mode 100644 docs/Models/UnBlockCommentPublicResponse.md create mode 100644 docs/Models/UnBlockUserFromCommentResponse.md create mode 100644 docs/Models/UnFlagCommentResponse.md create mode 100644 docs/Models/UnLockCommentResponse.md create mode 100644 docs/Models/UnPinCommentResponse.md create mode 100644 docs/Models/UpdateCommentResponse.md create mode 100644 docs/Models/UpdateEmailTemplateResponse.md create mode 100644 docs/Models/UpdateFeedPostPublicResponse.md create mode 100644 docs/Models/UpdateFeedPostResponse.md create mode 100644 docs/Models/UpdateModeratorResponse.md create mode 100644 docs/Models/UpdateNotificationResponse.md create mode 100644 docs/Models/UpdateQuestionConfigResponse.md create mode 100644 docs/Models/UpdateQuestionResultResponse.md create mode 100644 docs/Models/UpdateTenantPackageResponse.md create mode 100644 docs/Models/UpdateTenantResponse.md create mode 100644 docs/Models/UpdateTenantUserResponse.md create mode 100644 docs/Models/UpdateUserBadgeResponse.md create mode 100644 docs/Models/VoteCommentResponse.md diff --git a/client/README.md b/client/README.md index 1d58458..2c8cb09 100644 --- a/client/README.md +++ b/client/README.md @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI spec](https://openapis.org) from a remote server, you can easily generate an API client. - API version: 0.0.0 -- Package version: 1.2.1 +- Package version: 2.0.0 - Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.CppRestSdkClientCodegen diff --git a/client/include/FastCommentsClient/api/DefaultApi.h b/client/include/FastCommentsClient/api/DefaultApi.h index a2d41a8..aae540b 100644 --- a/client/include/FastCommentsClient/api/DefaultApi.h +++ b/client/include/FastCommentsClient/api/DefaultApi.h @@ -22,140 +22,166 @@ #include "FastCommentsClient/ApiClient.h" -#include "FastCommentsClient/model/APICreateUserBadgeResponse.h" -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/APIEmptySuccessResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIGetCommentResponse.h" -#include "FastCommentsClient/model/APIGetCommentsResponse.h" -#include "FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h" -#include "FastCommentsClient/model/APIGetUserBadgeProgressResponse.h" -#include "FastCommentsClient/model/APIGetUserBadgeResponse.h" -#include "FastCommentsClient/model/APIGetUserBadgesResponse.h" -#include "FastCommentsClient/model/APISaveCommentResponse.h" #include "FastCommentsClient/model/AddDomainConfigParams.h" #include "FastCommentsClient/model/AddDomainConfigResponse.h" +#include "FastCommentsClient/model/AddHashTagResponse.h" +#include "FastCommentsClient/model/AddHashTagsBulkResponse.h" #include "FastCommentsClient/model/AddPageAPIResponse.h" #include "FastCommentsClient/model/AddSSOUserAPIResponse.h" -#include "FastCommentsClient/model/AggregateQuestionResultsResponse.h" +#include "FastCommentsClient/model/AggregateQuestionResultsResponse_1.h" #include "FastCommentsClient/model/AggregateResponse.h" #include "FastCommentsClient/model/AggregateTimeBucket.h" #include "FastCommentsClient/model/AggregationRequest.h" #include "FastCommentsClient/model/BlockFromCommentParams.h" -#include "FastCommentsClient/model/BlockSuccess.h" +#include "FastCommentsClient/model/BlockUserFromCommentResponse.h" #include "FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h" -#include "FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h" +#include "FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h" #include "FastCommentsClient/model/BulkCreateHashTagsBody.h" -#include "FastCommentsClient/model/BulkCreateHashTagsResponse.h" #include "FastCommentsClient/model/ChangeTicketStateBody.h" -#include "FastCommentsClient/model/ChangeTicketStateResponse.h" -#include "FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h" +#include "FastCommentsClient/model/ChangeTicketStateResponse_1.h" +#include "FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h" #include "FastCommentsClient/model/CreateAPIPageData.h" #include "FastCommentsClient/model/CreateAPISSOUserData.h" #include "FastCommentsClient/model/CreateAPIUserSubscriptionData.h" #include "FastCommentsClient/model/CreateCommentParams.h" #include "FastCommentsClient/model/CreateEmailTemplateBody.h" -#include "FastCommentsClient/model/CreateEmailTemplateResponse.h" +#include "FastCommentsClient/model/CreateEmailTemplateResponse_1.h" #include "FastCommentsClient/model/CreateFeedPostParams.h" -#include "FastCommentsClient/model/CreateFeedPostsResponse.h" +#include "FastCommentsClient/model/CreateFeedPostResponse_1.h" #include "FastCommentsClient/model/CreateHashTagBody.h" -#include "FastCommentsClient/model/CreateHashTagResponse.h" #include "FastCommentsClient/model/CreateModeratorBody.h" -#include "FastCommentsClient/model/CreateModeratorResponse.h" +#include "FastCommentsClient/model/CreateModeratorResponse_1.h" #include "FastCommentsClient/model/CreateQuestionConfigBody.h" -#include "FastCommentsClient/model/CreateQuestionConfigResponse.h" +#include "FastCommentsClient/model/CreateQuestionConfigResponse_1.h" #include "FastCommentsClient/model/CreateQuestionResultBody.h" -#include "FastCommentsClient/model/CreateQuestionResultResponse.h" +#include "FastCommentsClient/model/CreateQuestionResultResponse_1.h" #include "FastCommentsClient/model/CreateSubscriptionAPIResponse.h" #include "FastCommentsClient/model/CreateTenantBody.h" #include "FastCommentsClient/model/CreateTenantPackageBody.h" -#include "FastCommentsClient/model/CreateTenantPackageResponse.h" -#include "FastCommentsClient/model/CreateTenantResponse.h" +#include "FastCommentsClient/model/CreateTenantPackageResponse_1.h" +#include "FastCommentsClient/model/CreateTenantResponse_1.h" #include "FastCommentsClient/model/CreateTenantUserBody.h" -#include "FastCommentsClient/model/CreateTenantUserResponse.h" +#include "FastCommentsClient/model/CreateTenantUserResponse_1.h" #include "FastCommentsClient/model/CreateTicketBody.h" -#include "FastCommentsClient/model/CreateTicketResponse.h" +#include "FastCommentsClient/model/CreateTicketResponse_1.h" #include "FastCommentsClient/model/CreateUserBadgeParams.h" -#include "FastCommentsClient/model/DeleteCommentResult.h" +#include "FastCommentsClient/model/CreateUserBadgeResponse.h" +#include "FastCommentsClient/model/CreateVoteResponse.h" +#include "FastCommentsClient/model/DeleteCommentResponse.h" #include "FastCommentsClient/model/DeleteDomainConfigResponse.h" +#include "FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h" +#include "FastCommentsClient/model/DeleteEmailTemplateResponse.h" #include "FastCommentsClient/model/DeleteHashTagRequestBody.h" +#include "FastCommentsClient/model/DeleteHashTagResponse.h" +#include "FastCommentsClient/model/DeleteModeratorResponse.h" +#include "FastCommentsClient/model/DeleteNotificationCountResponse.h" #include "FastCommentsClient/model/DeletePageAPIResponse.h" +#include "FastCommentsClient/model/DeletePendingWebhookEventResponse.h" +#include "FastCommentsClient/model/DeleteQuestionConfigResponse.h" +#include "FastCommentsClient/model/DeleteQuestionResultResponse.h" #include "FastCommentsClient/model/DeleteSSOUserAPIResponse.h" #include "FastCommentsClient/model/DeleteSubscriptionAPIResponse.h" +#include "FastCommentsClient/model/DeleteTenantPackageResponse.h" +#include "FastCommentsClient/model/DeleteTenantResponse.h" +#include "FastCommentsClient/model/DeleteTenantUserResponse.h" +#include "FastCommentsClient/model/DeleteUserBadgeResponse.h" +#include "FastCommentsClient/model/DeleteVoteResponse.h" #include "FastCommentsClient/model/FeedPost.h" -#include "FastCommentsClient/model/FlagCommentResponse.h" -#include "FastCommentsClient/model/GetAuditLogsResponse.h" -#include "FastCommentsClient/model/GetCachedNotificationCountResponse.h" +#include "FastCommentsClient/model/FlagCommentResponse_1.h" +#include "FastCommentsClient/model/GetAuditLogsResponse_1.h" +#include "FastCommentsClient/model/GetCachedNotificationCountResponse_1.h" +#include "FastCommentsClient/model/GetCommentResponse.h" +#include "FastCommentsClient/model/GetCommentsResponse.h" #include "FastCommentsClient/model/GetDomainConfigResponse.h" #include "FastCommentsClient/model/GetDomainConfigsResponse.h" -#include "FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h" -#include "FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h" -#include "FastCommentsClient/model/GetEmailTemplateResponse.h" -#include "FastCommentsClient/model/GetEmailTemplatesResponse.h" -#include "FastCommentsClient/model/GetFeedPostsResponse.h" -#include "FastCommentsClient/model/GetHashTagsResponse.h" -#include "FastCommentsClient/model/GetModeratorResponse.h" -#include "FastCommentsClient/model/GetModeratorsResponse.h" -#include "FastCommentsClient/model/GetNotificationCountResponse.h" -#include "FastCommentsClient/model/GetNotificationsResponse.h" +#include "FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h" +#include "FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h" +#include "FastCommentsClient/model/GetEmailTemplateResponse_1.h" +#include "FastCommentsClient/model/GetEmailTemplatesResponse_1.h" +#include "FastCommentsClient/model/GetFeedPostsResponse_1.h" +#include "FastCommentsClient/model/GetHashTagsResponse_1.h" +#include "FastCommentsClient/model/GetModeratorResponse_1.h" +#include "FastCommentsClient/model/GetModeratorsResponse_1.h" +#include "FastCommentsClient/model/GetNotificationCountResponse_1.h" +#include "FastCommentsClient/model/GetNotificationsResponse_1.h" #include "FastCommentsClient/model/GetPageByURLIdAPIResponse.h" #include "FastCommentsClient/model/GetPagesAPIResponse.h" -#include "FastCommentsClient/model/GetPendingWebhookEventCountResponse.h" -#include "FastCommentsClient/model/GetPendingWebhookEventsResponse.h" -#include "FastCommentsClient/model/GetQuestionConfigResponse.h" -#include "FastCommentsClient/model/GetQuestionConfigsResponse.h" -#include "FastCommentsClient/model/GetQuestionResultResponse.h" -#include "FastCommentsClient/model/GetQuestionResultsResponse.h" +#include "FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h" +#include "FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h" +#include "FastCommentsClient/model/GetQuestionConfigResponse_1.h" +#include "FastCommentsClient/model/GetQuestionConfigsResponse_1.h" +#include "FastCommentsClient/model/GetQuestionResultResponse_1.h" +#include "FastCommentsClient/model/GetQuestionResultsResponse_1.h" #include "FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h" #include "FastCommentsClient/model/GetSSOUserByIdAPIResponse.h" #include "FastCommentsClient/model/GetSSOUsersResponse.h" #include "FastCommentsClient/model/GetSubscriptionsAPIResponse.h" -#include "FastCommentsClient/model/GetTenantDailyUsagesResponse.h" -#include "FastCommentsClient/model/GetTenantPackageResponse.h" -#include "FastCommentsClient/model/GetTenantPackagesResponse.h" -#include "FastCommentsClient/model/GetTenantResponse.h" -#include "FastCommentsClient/model/GetTenantUserResponse.h" -#include "FastCommentsClient/model/GetTenantUsersResponse.h" -#include "FastCommentsClient/model/GetTenantsResponse.h" -#include "FastCommentsClient/model/GetTicketResponse.h" -#include "FastCommentsClient/model/GetTicketsResponse.h" -#include "FastCommentsClient/model/GetUserResponse.h" -#include "FastCommentsClient/model/GetVotesForUserResponse.h" -#include "FastCommentsClient/model/GetVotesResponse.h" +#include "FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h" +#include "FastCommentsClient/model/GetTenantPackageResponse_1.h" +#include "FastCommentsClient/model/GetTenantPackagesResponse_1.h" +#include "FastCommentsClient/model/GetTenantResponse_1.h" +#include "FastCommentsClient/model/GetTenantUserResponse_1.h" +#include "FastCommentsClient/model/GetTenantUsersResponse_1.h" +#include "FastCommentsClient/model/GetTenantsResponse_1.h" +#include "FastCommentsClient/model/GetTicketResponse_1.h" +#include "FastCommentsClient/model/GetTicketsResponse_1.h" +#include "FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h" +#include "FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h" +#include "FastCommentsClient/model/GetUserBadgeProgressListResponse.h" +#include "FastCommentsClient/model/GetUserBadgeResponse.h" +#include "FastCommentsClient/model/GetUserBadgesResponse.h" +#include "FastCommentsClient/model/GetUserResponse_1.h" +#include "FastCommentsClient/model/GetVotesForUserResponse_1.h" +#include "FastCommentsClient/model/GetVotesResponse_1.h" #include "FastCommentsClient/model/PatchDomainConfigParams.h" #include "FastCommentsClient/model/PatchDomainConfigResponse.h" +#include "FastCommentsClient/model/PatchHashTagResponse.h" #include "FastCommentsClient/model/PatchPageAPIResponse.h" #include "FastCommentsClient/model/PatchSSOUserAPIResponse.h" #include "FastCommentsClient/model/PutDomainConfigResponse.h" #include "FastCommentsClient/model/PutSSOUserAPIResponse.h" #include "FastCommentsClient/model/RenderEmailTemplateBody.h" -#include "FastCommentsClient/model/RenderEmailTemplateResponse.h" +#include "FastCommentsClient/model/RenderEmailTemplateResponse_1.h" #include "FastCommentsClient/model/ReplaceTenantPackageBody.h" +#include "FastCommentsClient/model/ReplaceTenantPackageResponse.h" #include "FastCommentsClient/model/ReplaceTenantUserBody.h" +#include "FastCommentsClient/model/ReplaceTenantUserResponse.h" #include "FastCommentsClient/model/SORT_DIR.h" +#include "FastCommentsClient/model/SaveCommentResponse.h" #include "FastCommentsClient/model/SaveCommentsBulkResponse.h" +#include "FastCommentsClient/model/SendInviteResponse.h" +#include "FastCommentsClient/model/SendLoginLinkResponse.h" #include "FastCommentsClient/model/SortDirections.h" #include "FastCommentsClient/model/UnBlockFromCommentParams.h" -#include "FastCommentsClient/model/UnblockSuccess.h" +#include "FastCommentsClient/model/UnBlockUserFromCommentResponse.h" +#include "FastCommentsClient/model/UnFlagCommentResponse.h" #include "FastCommentsClient/model/UpdatableCommentParams.h" #include "FastCommentsClient/model/UpdateAPIPageData.h" #include "FastCommentsClient/model/UpdateAPISSOUserData.h" #include "FastCommentsClient/model/UpdateAPIUserSubscriptionData.h" +#include "FastCommentsClient/model/UpdateCommentResponse.h" #include "FastCommentsClient/model/UpdateDomainConfigParams.h" #include "FastCommentsClient/model/UpdateEmailTemplateBody.h" +#include "FastCommentsClient/model/UpdateEmailTemplateResponse.h" +#include "FastCommentsClient/model/UpdateFeedPostResponse.h" #include "FastCommentsClient/model/UpdateHashTagBody.h" -#include "FastCommentsClient/model/UpdateHashTagResponse.h" #include "FastCommentsClient/model/UpdateModeratorBody.h" +#include "FastCommentsClient/model/UpdateModeratorResponse.h" #include "FastCommentsClient/model/UpdateNotificationBody.h" +#include "FastCommentsClient/model/UpdateNotificationResponse.h" #include "FastCommentsClient/model/UpdateQuestionConfigBody.h" +#include "FastCommentsClient/model/UpdateQuestionConfigResponse.h" #include "FastCommentsClient/model/UpdateQuestionResultBody.h" +#include "FastCommentsClient/model/UpdateQuestionResultResponse.h" #include "FastCommentsClient/model/UpdateSubscriptionAPIResponse.h" #include "FastCommentsClient/model/UpdateTenantBody.h" #include "FastCommentsClient/model/UpdateTenantPackageBody.h" +#include "FastCommentsClient/model/UpdateTenantPackageResponse.h" +#include "FastCommentsClient/model/UpdateTenantResponse.h" #include "FastCommentsClient/model/UpdateTenantUserBody.h" +#include "FastCommentsClient/model/UpdateTenantUserResponse.h" #include "FastCommentsClient/model/UpdateUserBadgeParams.h" -#include "FastCommentsClient/model/VoteDeleteResponse.h" -#include "FastCommentsClient/model/VoteResponse.h" +#include "FastCommentsClient/model/UpdateUserBadgeResponse.h" #include #include #include @@ -197,7 +223,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> addHashTag( + pplx::task> addHashTag( boost::optional tenantId, boost::optional> createHashTagBody ) const; @@ -209,7 +235,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> addHashTagsBulk( + pplx::task> addHashTagsBulk( boost::optional tenantId, boost::optional> bulkCreateHashTagsBody ) const; @@ -266,7 +292,7 @@ class DefaultApi /// (optional, default to new AggregateTimeBucket()) /// (optional, default to utility::datetime()) /// (optional, default to false) - pplx::task> aggregateQuestionResults( + pplx::task> aggregateQuestionResults( utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, @@ -286,7 +312,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> blockUserFromComment( + pplx::task> blockUserFromComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams, @@ -302,7 +328,7 @@ class DefaultApi /// /// /// (optional, default to false) - pplx::task> bulkAggregateQuestionResults( + pplx::task> bulkAggregateQuestionResults( utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest, boost::optional forceRecalculate @@ -317,7 +343,7 @@ class DefaultApi /// /// /// - pplx::task> changeTicketState( + pplx::task> changeTicketState( utility::string_t tenantId, utility::string_t userId, utility::string_t id, @@ -338,7 +364,7 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> combineCommentsWithQuestionResults( + pplx::task> combineCommentsWithQuestionResults( utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, @@ -357,7 +383,7 @@ class DefaultApi /// /// /// - pplx::task> createEmailTemplate( + pplx::task> createEmailTemplate( utility::string_t tenantId, std::shared_ptr createEmailTemplateBody ) const; @@ -373,7 +399,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - pplx::task> createFeedPost( + pplx::task> createFeedPost( utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, @@ -389,7 +415,7 @@ class DefaultApi /// /// /// - pplx::task> createModerator( + pplx::task> createModerator( utility::string_t tenantId, std::shared_ptr createModeratorBody ) const; @@ -401,7 +427,7 @@ class DefaultApi /// /// /// - pplx::task> createQuestionConfig( + pplx::task> createQuestionConfig( utility::string_t tenantId, std::shared_ptr createQuestionConfigBody ) const; @@ -413,7 +439,7 @@ class DefaultApi /// /// /// - pplx::task> createQuestionResult( + pplx::task> createQuestionResult( utility::string_t tenantId, std::shared_ptr createQuestionResultBody ) const; @@ -437,7 +463,7 @@ class DefaultApi /// /// /// - pplx::task> createTenant( + pplx::task> createTenant( utility::string_t tenantId, std::shared_ptr createTenantBody ) const; @@ -449,7 +475,7 @@ class DefaultApi /// /// /// - pplx::task> createTenantPackage( + pplx::task> createTenantPackage( utility::string_t tenantId, std::shared_ptr createTenantPackageBody ) const; @@ -461,7 +487,7 @@ class DefaultApi /// /// /// - pplx::task> createTenantUser( + pplx::task> createTenantUser( utility::string_t tenantId, std::shared_ptr createTenantUserBody ) const; @@ -474,7 +500,7 @@ class DefaultApi /// /// /// - pplx::task> createTicket( + pplx::task> createTicket( utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody @@ -487,7 +513,7 @@ class DefaultApi /// /// /// - pplx::task> createUserBadge( + pplx::task> createUserBadge( utility::string_t tenantId, std::shared_ptr createUserBadgeParams ) const; @@ -502,7 +528,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createVote( + pplx::task> createVote( utility::string_t tenantId, utility::string_t commentId, utility::string_t direction, @@ -519,7 +545,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - pplx::task> deleteComment( + pplx::task> deleteComment( utility::string_t tenantId, utility::string_t id, boost::optional contextUserId, @@ -545,7 +571,7 @@ class DefaultApi /// /// /// - pplx::task> deleteEmailTemplate( + pplx::task> deleteEmailTemplate( utility::string_t tenantId, utility::string_t id ) const; @@ -558,7 +584,7 @@ class DefaultApi /// /// /// - pplx::task> deleteEmailTemplateRenderError( + pplx::task> deleteEmailTemplateRenderError( utility::string_t tenantId, utility::string_t id, utility::string_t errorId @@ -572,7 +598,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> deleteHashTag( + pplx::task> deleteHashTag( utility::string_t tag, boost::optional tenantId, boost::optional> deleteHashTagRequestBody @@ -586,7 +612,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteModerator( + pplx::task> deleteModerator( utility::string_t tenantId, utility::string_t id, boost::optional sendEmail @@ -599,7 +625,7 @@ class DefaultApi /// /// /// - pplx::task> deleteNotificationCount( + pplx::task> deleteNotificationCount( utility::string_t tenantId, utility::string_t id ) const; @@ -623,7 +649,7 @@ class DefaultApi /// /// /// - pplx::task> deletePendingWebhookEvent( + pplx::task> deletePendingWebhookEvent( utility::string_t tenantId, utility::string_t id ) const; @@ -635,7 +661,7 @@ class DefaultApi /// /// /// - pplx::task> deleteQuestionConfig( + pplx::task> deleteQuestionConfig( utility::string_t tenantId, utility::string_t id ) const; @@ -647,7 +673,7 @@ class DefaultApi /// /// /// - pplx::task> deleteQuestionResult( + pplx::task> deleteQuestionResult( utility::string_t tenantId, utility::string_t id ) const; @@ -690,7 +716,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteTenant( + pplx::task> deleteTenant( utility::string_t tenantId, utility::string_t id, boost::optional sure @@ -703,7 +729,7 @@ class DefaultApi /// /// /// - pplx::task> deleteTenantPackage( + pplx::task> deleteTenantPackage( utility::string_t tenantId, utility::string_t id ) const; @@ -717,7 +743,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteTenantUser( + pplx::task> deleteTenantUser( utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, @@ -731,7 +757,7 @@ class DefaultApi /// /// /// - pplx::task> deleteUserBadge( + pplx::task> deleteUserBadge( utility::string_t tenantId, utility::string_t id ) const; @@ -744,7 +770,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteVote( + pplx::task> deleteVote( utility::string_t tenantId, utility::string_t id, boost::optional editKey @@ -759,7 +785,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> flagComment( + pplx::task> flagComment( utility::string_t tenantId, utility::string_t id, boost::optional userId, @@ -777,7 +803,7 @@ class DefaultApi /// (optional, default to new SORT_DIR()) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getAuditLogs( + pplx::task> getAuditLogs( utility::string_t tenantId, boost::optional limit, boost::optional skip, @@ -793,7 +819,7 @@ class DefaultApi /// /// /// - pplx::task> getCachedNotificationCount( + pplx::task> getCachedNotificationCount( utility::string_t tenantId, utility::string_t id ) const; @@ -805,7 +831,7 @@ class DefaultApi /// /// /// - pplx::task> getComment( + pplx::task> getComment( utility::string_t tenantId, utility::string_t id ) const; @@ -832,7 +858,7 @@ class DefaultApi /// (optional, default to new SortDirections()) /// (optional, default to 0L) /// (optional, default to 0L) - pplx::task> getComments( + pplx::task> getComments( utility::string_t tenantId, boost::optional page, boost::optional limit, @@ -881,7 +907,7 @@ class DefaultApi /// /// /// - pplx::task> getEmailTemplate( + pplx::task> getEmailTemplate( utility::string_t tenantId, utility::string_t id ) const; @@ -892,7 +918,7 @@ class DefaultApi /// /// /// - pplx::task> getEmailTemplateDefinitions( + pplx::task> getEmailTemplateDefinitions( utility::string_t tenantId ) const; /// @@ -904,7 +930,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getEmailTemplateRenderErrors( + pplx::task> getEmailTemplateRenderErrors( utility::string_t tenantId, utility::string_t id, boost::optional skip @@ -917,7 +943,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getEmailTemplates( + pplx::task> getEmailTemplates( utility::string_t tenantId, boost::optional skip ) const; @@ -931,7 +957,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0) /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) - pplx::task> getFeedPosts( + pplx::task> getFeedPosts( utility::string_t tenantId, boost::optional afterId, boost::optional limit, @@ -945,7 +971,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getHashTags( + pplx::task> getHashTags( utility::string_t tenantId, boost::optional page ) const; @@ -957,7 +983,7 @@ class DefaultApi /// /// /// - pplx::task> getModerator( + pplx::task> getModerator( utility::string_t tenantId, utility::string_t id ) const; @@ -969,7 +995,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getModerators( + pplx::task> getModerators( utility::string_t tenantId, boost::optional skip ) const; @@ -985,7 +1011,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getNotificationCount( + pplx::task> getNotificationCount( utility::string_t tenantId, boost::optional userId, boost::optional urlId, @@ -1006,7 +1032,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getNotifications( + pplx::task> getNotifications( utility::string_t tenantId, boost::optional userId, boost::optional urlId, @@ -1050,7 +1076,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getPendingWebhookEventCount( + pplx::task> getPendingWebhookEventCount( utility::string_t tenantId, boost::optional commentId, boost::optional externalId, @@ -1073,7 +1099,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getPendingWebhookEvents( + pplx::task> getPendingWebhookEvents( utility::string_t tenantId, boost::optional commentId, boost::optional externalId, @@ -1091,7 +1117,7 @@ class DefaultApi /// /// /// - pplx::task> getQuestionConfig( + pplx::task> getQuestionConfig( utility::string_t tenantId, utility::string_t id ) const; @@ -1103,7 +1129,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getQuestionConfigs( + pplx::task> getQuestionConfigs( utility::string_t tenantId, boost::optional skip ) const; @@ -1115,7 +1141,7 @@ class DefaultApi /// /// /// - pplx::task> getQuestionResult( + pplx::task> getQuestionResult( utility::string_t tenantId, utility::string_t id ) const; @@ -1132,7 +1158,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getQuestionResults( + pplx::task> getQuestionResults( utility::string_t tenantId, boost::optional urlId, boost::optional userId, @@ -1197,7 +1223,7 @@ class DefaultApi /// /// /// - pplx::task> getTenant( + pplx::task> getTenant( utility::string_t tenantId, utility::string_t id ) const; @@ -1212,7 +1238,7 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getTenantDailyUsages( + pplx::task> getTenantDailyUsages( utility::string_t tenantId, boost::optional yearNumber, boost::optional monthNumber, @@ -1227,7 +1253,7 @@ class DefaultApi /// /// /// - pplx::task> getTenantPackage( + pplx::task> getTenantPackage( utility::string_t tenantId, utility::string_t id ) const; @@ -1239,7 +1265,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getTenantPackages( + pplx::task> getTenantPackages( utility::string_t tenantId, boost::optional skip ) const; @@ -1251,7 +1277,7 @@ class DefaultApi /// /// /// - pplx::task> getTenantUser( + pplx::task> getTenantUser( utility::string_t tenantId, utility::string_t id ) const; @@ -1263,7 +1289,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getTenantUsers( + pplx::task> getTenantUsers( utility::string_t tenantId, boost::optional skip ) const; @@ -1276,7 +1302,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getTenants( + pplx::task> getTenants( utility::string_t tenantId, boost::optional meta, boost::optional skip @@ -1290,7 +1316,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getTicket( + pplx::task> getTicket( utility::string_t tenantId, utility::string_t id, boost::optional userId @@ -1306,7 +1332,7 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getTickets( + pplx::task> getTickets( utility::string_t tenantId, boost::optional userId, boost::optional state, @@ -1321,7 +1347,7 @@ class DefaultApi /// /// /// - pplx::task> getUser( + pplx::task> getUser( utility::string_t tenantId, utility::string_t id ) const; @@ -1333,7 +1359,7 @@ class DefaultApi /// /// /// - pplx::task> getUserBadge( + pplx::task> getUserBadge( utility::string_t tenantId, utility::string_t id ) const; @@ -1345,7 +1371,7 @@ class DefaultApi /// /// /// - pplx::task> getUserBadgeProgressById( + pplx::task> getUserBadgeProgressById( utility::string_t tenantId, utility::string_t id ) const; @@ -1357,7 +1383,7 @@ class DefaultApi /// /// /// - pplx::task> getUserBadgeProgressByUserId( + pplx::task> getUserBadgeProgressByUserId( utility::string_t tenantId, utility::string_t userId ) const; @@ -1371,7 +1397,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getUserBadgeProgressList( + pplx::task> getUserBadgeProgressList( utility::string_t tenantId, boost::optional userId, boost::optional limit, @@ -1390,7 +1416,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getUserBadges( + pplx::task> getUserBadges( utility::string_t tenantId, boost::optional userId, boost::optional badgeId, @@ -1407,7 +1433,7 @@ class DefaultApi /// /// /// - pplx::task> getVotes( + pplx::task> getVotes( utility::string_t tenantId, utility::string_t urlId ) const; @@ -1421,7 +1447,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getVotesForUser( + pplx::task> getVotesForUser( utility::string_t tenantId, utility::string_t urlId, boost::optional userId, @@ -1450,7 +1476,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> patchHashTag( + pplx::task> patchHashTag( utility::string_t tag, boost::optional tenantId, boost::optional> updateHashTagBody @@ -1524,7 +1550,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> renderEmailTemplate( + pplx::task> renderEmailTemplate( utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody, boost::optional locale @@ -1538,7 +1564,7 @@ class DefaultApi /// /// /// - pplx::task> replaceTenantPackage( + pplx::task> replaceTenantPackage( utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody @@ -1553,7 +1579,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> replaceTenantUser( + pplx::task> replaceTenantUser( utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody, @@ -1571,7 +1597,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - pplx::task> saveComment( + pplx::task> saveComment( utility::string_t tenantId, std::shared_ptr createCommentParams, boost::optional isLive, @@ -1608,7 +1634,7 @@ class DefaultApi /// /// /// - pplx::task> sendInvite( + pplx::task> sendInvite( utility::string_t tenantId, utility::string_t id, utility::string_t fromName @@ -1622,7 +1648,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> sendLoginLink( + pplx::task> sendLoginLink( utility::string_t tenantId, utility::string_t id, boost::optional redirectURL @@ -1638,7 +1664,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unBlockUserFromComment( + pplx::task> unBlockUserFromComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams, @@ -1655,7 +1681,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unFlagComment( + pplx::task> unFlagComment( utility::string_t tenantId, utility::string_t id, boost::optional userId, @@ -1673,7 +1699,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to false) - pplx::task> updateComment( + pplx::task> updateComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams, @@ -1690,7 +1716,7 @@ class DefaultApi /// /// /// - pplx::task> updateEmailTemplate( + pplx::task> updateEmailTemplate( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody @@ -1704,7 +1730,7 @@ class DefaultApi /// /// /// - pplx::task> updateFeedPost( + pplx::task> updateFeedPost( utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost @@ -1718,7 +1744,7 @@ class DefaultApi /// /// /// - pplx::task> updateModerator( + pplx::task> updateModerator( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody @@ -1733,7 +1759,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateNotification( + pplx::task> updateNotification( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody, @@ -1748,7 +1774,7 @@ class DefaultApi /// /// /// - pplx::task> updateQuestionConfig( + pplx::task> updateQuestionConfig( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody @@ -1762,7 +1788,7 @@ class DefaultApi /// /// /// - pplx::task> updateQuestionResult( + pplx::task> updateQuestionResult( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody @@ -1792,7 +1818,7 @@ class DefaultApi /// /// /// - pplx::task> updateTenant( + pplx::task> updateTenant( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody @@ -1806,7 +1832,7 @@ class DefaultApi /// /// /// - pplx::task> updateTenantPackage( + pplx::task> updateTenantPackage( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody @@ -1821,7 +1847,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateTenantUser( + pplx::task> updateTenantUser( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody, @@ -1836,7 +1862,7 @@ class DefaultApi /// /// /// - pplx::task> updateUserBadge( + pplx::task> updateUserBadge( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams diff --git a/client/include/FastCommentsClient/api/ModerationApi.h b/client/include/FastCommentsClient/api/ModerationApi.h index 9f34968..2b3eca3 100644 --- a/client/include/FastCommentsClient/api/ModerationApi.h +++ b/client/include/FastCommentsClient/api/ModerationApi.h @@ -22,47 +22,54 @@ #include "FastCommentsClient/ApiClient.h" -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h" #include "FastCommentsClient/model/AdjustCommentVotesParams.h" -#include "FastCommentsClient/model/AdjustVotesResponse.h" -#include "FastCommentsClient/model/AwardUserBadgeResponse.h" -#include "FastCommentsClient/model/BanUserFromCommentResult.h" #include "FastCommentsClient/model/BanUserUndoParams.h" #include "FastCommentsClient/model/BulkPreBanParams.h" -#include "FastCommentsClient/model/BulkPreBanSummary.h" #include "FastCommentsClient/model/CommentsByIdsParams.h" -#include "FastCommentsClient/model/GetBannedUsersCountResponse.h" -#include "FastCommentsClient/model/GetBannedUsersFromCommentResponse.h" -#include "FastCommentsClient/model/GetCommentBanStatusResponse.h" -#include "FastCommentsClient/model/GetCommentTextResponse.h" -#include "FastCommentsClient/model/GetTenantManualBadgesResponse.h" -#include "FastCommentsClient/model/GetUserInternalProfileResponse.h" -#include "FastCommentsClient/model/GetUserManualBadgesResponse.h" -#include "FastCommentsClient/model/GetUserTrustFactorResponse.h" -#include "FastCommentsClient/model/ModerationAPIChildCommentsResponse.h" -#include "FastCommentsClient/model/ModerationAPICommentResponse.h" -#include "FastCommentsClient/model/ModerationAPICountCommentsResponse.h" -#include "FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h" -#include "FastCommentsClient/model/ModerationAPIGetCommentsResponse.h" -#include "FastCommentsClient/model/ModerationAPIGetLogsResponse.h" -#include "FastCommentsClient/model/ModerationCommentSearchResponse.h" -#include "FastCommentsClient/model/ModerationExportResponse.h" -#include "FastCommentsClient/model/ModerationExportStatusResponse.h" -#include "FastCommentsClient/model/ModerationPageSearchResponse.h" -#include "FastCommentsClient/model/ModerationSiteSearchResponse.h" -#include "FastCommentsClient/model/ModerationSuggestResponse.h" -#include "FastCommentsClient/model/ModerationUserSearchResponse.h" +#include "FastCommentsClient/model/DeleteModerationVoteResponse.h" +#include "FastCommentsClient/model/GetApiCommentsResponse.h" +#include "FastCommentsClient/model/GetApiExportStatusResponse.h" +#include "FastCommentsClient/model/GetApiIdsResponse.h" +#include "FastCommentsClient/model/GetBanUsersFromCommentResponse.h" +#include "FastCommentsClient/model/GetCommentBanStatusResponse_1.h" +#include "FastCommentsClient/model/GetCommentChildrenResponse.h" +#include "FastCommentsClient/model/GetCountResponse.h" +#include "FastCommentsClient/model/GetCountsResponse.h" +#include "FastCommentsClient/model/GetLogsResponse.h" +#include "FastCommentsClient/model/GetManualBadgesForUserResponse.h" +#include "FastCommentsClient/model/GetManualBadgesResponse.h" +#include "FastCommentsClient/model/GetModerationCommentResponse.h" +#include "FastCommentsClient/model/GetModerationCommentTextResponse.h" +#include "FastCommentsClient/model/GetPreBanSummaryResponse.h" +#include "FastCommentsClient/model/GetSearchCommentsSummaryResponse.h" +#include "FastCommentsClient/model/GetSearchPagesResponse.h" +#include "FastCommentsClient/model/GetSearchSitesResponse.h" +#include "FastCommentsClient/model/GetSearchSuggestResponse.h" +#include "FastCommentsClient/model/GetSearchUsersResponse.h" +#include "FastCommentsClient/model/GetTrustFactorResponse.h" +#include "FastCommentsClient/model/GetUserBanPreferenceResponse.h" +#include "FastCommentsClient/model/GetUserInternalProfileResponse_1.h" +#include "FastCommentsClient/model/PostAdjustCommentVotesResponse.h" +#include "FastCommentsClient/model/PostApiExportResponse.h" +#include "FastCommentsClient/model/PostBanUserFromCommentResponse.h" +#include "FastCommentsClient/model/PostBanUserUndoResponse.h" +#include "FastCommentsClient/model/PostBulkPreBanSummaryResponse.h" +#include "FastCommentsClient/model/PostCommentsByIdsResponse.h" +#include "FastCommentsClient/model/PostFlagCommentResponse.h" #include "FastCommentsClient/model/PostRemoveCommentResponse.h" -#include "FastCommentsClient/model/PreBanSummary.h" -#include "FastCommentsClient/model/RemoveUserBadgeResponse.h" -#include "FastCommentsClient/model/SetCommentApprovedResponse.h" +#include "FastCommentsClient/model/PostRestoreDeletedCommentResponse.h" +#include "FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h" +#include "FastCommentsClient/model/PostSetCommentReviewStatusResponse.h" +#include "FastCommentsClient/model/PostSetCommentSpamStatusResponse.h" +#include "FastCommentsClient/model/PostSetCommentTextResponse.h" +#include "FastCommentsClient/model/PostUnFlagCommentResponse.h" +#include "FastCommentsClient/model/PostVoteResponse.h" +#include "FastCommentsClient/model/PutAwardBadgeResponse.h" +#include "FastCommentsClient/model/PutCloseThreadResponse.h" +#include "FastCommentsClient/model/PutRemoveBadgeResponse.h" +#include "FastCommentsClient/model/PutReopenThreadResponse.h" #include "FastCommentsClient/model/SetCommentTextParams.h" -#include "FastCommentsClient/model/SetCommentTextResponse.h" -#include "FastCommentsClient/model/SetUserTrustFactorResponse.h" -#include "FastCommentsClient/model/VoteDeleteResponse.h" -#include "FastCommentsClient/model/VoteResponse.h" +#include "FastCommentsClient/model/SetTrustFactorResponse.h" #include #include @@ -91,10 +98,14 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteModerationVote( + pplx::task> deleteModerationVote( utility::string_t commentId, utility::string_t voteId, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -111,8 +122,9 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getApiComments( + pplx::task> getApiComments( boost::optional page, boost::optional count, boost::optional textSearch, @@ -121,6 +133,7 @@ class ModerationApi boost::optional searchFilters, boost::optional sorts, boost::optional demo, + boost::optional tenantId, boost::optional sso ) const; /// @@ -130,9 +143,11 @@ class ModerationApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getApiExportStatus( + pplx::task> getApiExportStatus( boost::optional batchJobId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -147,14 +162,16 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getApiIds( + pplx::task> getApiIds( boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional afterId, boost::optional demo, + boost::optional tenantId, boost::optional sso ) const; /// @@ -164,9 +181,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getBanUsersFromComment( + pplx::task> getBanUsersFromComment( utility::string_t commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -176,9 +195,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentBanStatus( + pplx::task> getCommentBanStatus( utility::string_t commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -188,9 +209,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentChildren( + pplx::task> getCommentChildren( utility::string_t commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -204,13 +227,15 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCount( + pplx::task> getCount( boost::optional textSearch, boost::optional byIPFromComment, boost::optional filter, boost::optional searchFilters, boost::optional demo, + boost::optional tenantId, boost::optional sso ) const; /// @@ -219,8 +244,10 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCounts( + pplx::task> getCounts( + boost::optional tenantId, boost::optional sso ) const; /// @@ -230,9 +257,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getLogs( + pplx::task> getLogs( utility::string_t commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -241,8 +270,10 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getManualBadges( + pplx::task> getManualBadges( + boost::optional tenantId, boost::optional sso ) const; /// @@ -253,10 +284,12 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getManualBadgesForUser( + pplx::task> getManualBadgesForUser( boost::optional badgesUserId, boost::optional commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -268,11 +301,13 @@ class ModerationApi /// /// (optional, default to false) /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getModerationComment( + pplx::task> getModerationComment( utility::string_t commentId, boost::optional includeEmail, boost::optional includeIP, + boost::optional tenantId, boost::optional sso ) const; /// @@ -282,9 +317,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getModerationCommentText( + pplx::task> getModerationCommentText( utility::string_t commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -297,12 +334,14 @@ class ModerationApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getPreBanSummary( + pplx::task> getPreBanSummary( utility::string_t commentId, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, + boost::optional tenantId, boost::optional sso ) const; /// @@ -314,11 +353,13 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getSearchCommentsSummary( + pplx::task> getSearchCommentsSummary( boost::optional value, boost::optional filters, boost::optional searchFilters, + boost::optional tenantId, boost::optional sso ) const; /// @@ -328,9 +369,11 @@ class ModerationApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getSearchPages( + pplx::task> getSearchPages( boost::optional value, + boost::optional tenantId, boost::optional sso ) const; /// @@ -340,9 +383,11 @@ class ModerationApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getSearchSites( + pplx::task> getSearchSites( boost::optional value, + boost::optional tenantId, boost::optional sso ) const; /// @@ -352,9 +397,11 @@ class ModerationApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getSearchSuggest( + pplx::task> getSearchSuggest( boost::optional textSearch, + boost::optional tenantId, boost::optional sso ) const; /// @@ -364,9 +411,11 @@ class ModerationApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getSearchUsers( + pplx::task> getSearchUsers( boost::optional value, + boost::optional tenantId, boost::optional sso ) const; /// @@ -376,9 +425,11 @@ class ModerationApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getTrustFactor( + pplx::task> getTrustFactor( boost::optional userId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -387,8 +438,10 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserBanPreference( + pplx::task> getUserBanPreference( + boost::optional tenantId, boost::optional sso ) const; /// @@ -398,9 +451,11 @@ class ModerationApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserInternalProfile( + pplx::task> getUserInternalProfile( boost::optional commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -411,10 +466,14 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postAdjustCommentVotes( + pplx::task> postAdjustCommentVotes( utility::string_t commentId, std::shared_ptr adjustCommentVotesParams, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -428,13 +487,15 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postApiExport( + pplx::task> postApiExport( boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, + boost::optional tenantId, boost::optional sso ) const; /// @@ -452,8 +513,9 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postBanUserFromComment( + pplx::task> postBanUserFromComment( utility::string_t commentId, boost::optional banEmail, boost::optional banEmailDomain, @@ -463,6 +525,7 @@ class ModerationApi boost::optional isShadowBan, boost::optional updateId, boost::optional banReason, + boost::optional tenantId, boost::optional sso ) const; /// @@ -472,9 +535,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postBanUserUndo( + pplx::task> postBanUserUndo( std::shared_ptr banUserUndoParams, + boost::optional tenantId, boost::optional sso ) const; /// @@ -487,12 +552,14 @@ class ModerationApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postBulkPreBanSummary( + pplx::task> postBulkPreBanSummary( std::shared_ptr bulkPreBanParams, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, + boost::optional tenantId, boost::optional sso ) const; /// @@ -502,9 +569,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postCommentsByIds( + pplx::task> postCommentsByIds( std::shared_ptr commentsByIdsParams, + boost::optional tenantId, boost::optional sso ) const; /// @@ -514,9 +583,13 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postFlagComment( + pplx::task> postFlagComment( utility::string_t commentId, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -526,9 +599,13 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postRemoveComment( utility::string_t commentId, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -538,9 +615,13 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postRestoreDeletedComment( + pplx::task> postRestoreDeletedComment( utility::string_t commentId, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -551,10 +632,14 @@ class ModerationApi /// /// /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postSetCommentApprovalStatus( + pplx::task> postSetCommentApprovalStatus( utility::string_t commentId, boost::optional approved, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -565,10 +650,14 @@ class ModerationApi /// /// /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postSetCommentReviewStatus( + pplx::task> postSetCommentReviewStatus( utility::string_t commentId, boost::optional reviewed, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -580,11 +669,15 @@ class ModerationApi /// /// (optional, default to false) /// (optional, default to false) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postSetCommentSpamStatus( + pplx::task> postSetCommentSpamStatus( utility::string_t commentId, boost::optional spam, boost::optional permNotSpam, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -595,10 +688,14 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postSetCommentText( + pplx::task> postSetCommentText( utility::string_t commentId, std::shared_ptr setCommentTextParams, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -608,9 +705,13 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postUnFlagComment( + pplx::task> postUnFlagComment( utility::string_t commentId, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -621,10 +722,14 @@ class ModerationApi /// /// /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postVote( + pplx::task> postVote( utility::string_t commentId, boost::optional direction, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -637,12 +742,14 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> putAwardBadge( + pplx::task> putAwardBadge( utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -652,9 +759,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> putCloseThread( + pplx::task> putCloseThread( utility::string_t urlId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -667,12 +776,14 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> putRemoveBadge( + pplx::task> putRemoveBadge( utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -682,9 +793,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> putReopenThread( + pplx::task> putReopenThread( utility::string_t urlId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -695,10 +808,12 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> setTrustFactor( + pplx::task> setTrustFactor( boost::optional userId, boost::optional trustFactor, + boost::optional tenantId, boost::optional sso ) const; diff --git a/client/include/FastCommentsClient/api/PublicApi.h b/client/include/FastCommentsClient/api/PublicApi.h index 29db646..91b82f6 100644 --- a/client/include/FastCommentsClient/api/PublicApi.h +++ b/client/include/FastCommentsClient/api/PublicApi.h @@ -24,58 +24,68 @@ #include "FastCommentsClient/model/APIEmptyResponse.h" #include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/BlockSuccess.h" -#include "FastCommentsClient/model/ChangeCommentPinStatusResponse.h" -#include "FastCommentsClient/model/CheckBlockedCommentsResponse.h" +#include "FastCommentsClient/model/BlockFromCommentPublicResponse.h" +#include "FastCommentsClient/model/CheckedCommentsForBlockedResponse.h" #include "FastCommentsClient/model/CommentData.h" #include "FastCommentsClient/model/CommentTextUpdateRequest.h" +#include "FastCommentsClient/model/CreateCommentPublicResponse.h" #include "FastCommentsClient/model/CreateFeedPostParams.h" -#include "FastCommentsClient/model/CreateFeedPostResponse.h" -#include "FastCommentsClient/model/CreateV1PageReact.h" +#include "FastCommentsClient/model/CreateFeedPostPublicResponse.h" +#include "FastCommentsClient/model/CreateV1PageReactResponse.h" +#include "FastCommentsClient/model/CreateV2PageReactResponse.h" +#include "FastCommentsClient/model/DeleteCommentPublicResponse.h" +#include "FastCommentsClient/model/DeleteCommentVoteResponse.h" #include "FastCommentsClient/model/DeleteFeedPostPublicResponse.h" -#include "FastCommentsClient/model/FeedPostsStatsResponse.h" -#include "FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h" -#include "FastCommentsClient/model/GetCommentsForUserResponse.h" -#include "FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h" -#include "FastCommentsClient/model/GetEventLogResponse.h" +#include "FastCommentsClient/model/DeleteV1PageReactResponse.h" +#include "FastCommentsClient/model/DeleteV2PageReactResponse.h" +#include "FastCommentsClient/model/FlagCommentPublicResponse.h" +#include "FastCommentsClient/model/GetCommentTextResponse_1.h" +#include "FastCommentsClient/model/GetCommentVoteUserNamesResponse.h" +#include "FastCommentsClient/model/GetCommentsForUserResponse_1.h" +#include "FastCommentsClient/model/GetCommentsPublicResponse.h" +#include "FastCommentsClient/model/GetEventLogResponse_1.h" +#include "FastCommentsClient/model/GetFeedPostsPublicResponse.h" +#include "FastCommentsClient/model/GetFeedPostsStatsResponse.h" +#include "FastCommentsClient/model/GetGifLargeResponse.h" #include "FastCommentsClient/model/GetGifsSearchResponse.h" #include "FastCommentsClient/model/GetGifsTrendingResponse.h" -#include "FastCommentsClient/model/GetMyNotificationsResponse.h" -#include "FastCommentsClient/model/GetPublicPagesResponse.h" -#include "FastCommentsClient/model/GetTranslationsResponse.h" -#include "FastCommentsClient/model/GetUserNotificationCountResponse.h" -#include "FastCommentsClient/model/GetUserPresenceStatusesResponse.h" -#include "FastCommentsClient/model/GetV1PageLikes.h" -#include "FastCommentsClient/model/GetV2PageReactUsersResponse.h" -#include "FastCommentsClient/model/GetV2PageReacts.h" -#include "FastCommentsClient/model/GifGetLargeResponse.h" +#include "FastCommentsClient/model/GetGlobalEventLogResponse.h" +#include "FastCommentsClient/model/GetOfflineUsersResponse.h" +#include "FastCommentsClient/model/GetOnlineUsersResponse.h" +#include "FastCommentsClient/model/GetPagesPublicResponse.h" +#include "FastCommentsClient/model/GetTranslationsResponse_1.h" +#include "FastCommentsClient/model/GetUserNotificationCountResponse_1.h" +#include "FastCommentsClient/model/GetUserNotificationsResponse.h" +#include "FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h" +#include "FastCommentsClient/model/GetUserReactsPublicResponse.h" +#include "FastCommentsClient/model/GetUsersInfoResponse.h" +#include "FastCommentsClient/model/GetV1PageLikesResponse.h" +#include "FastCommentsClient/model/GetV2PageReactUsersResponse_1.h" +#include "FastCommentsClient/model/GetV2PageReactsResponse.h" #include "FastCommentsClient/HttpContent.h" -#include "FastCommentsClient/model/PageUsersInfoResponse.h" -#include "FastCommentsClient/model/PageUsersOfflineResponse.h" -#include "FastCommentsClient/model/PageUsersOnlineResponse.h" +#include "FastCommentsClient/model/LockCommentResponse.h" #include "FastCommentsClient/model/PagesSortBy.h" -#include "FastCommentsClient/model/PublicAPIDeleteCommentResponse.h" -#include "FastCommentsClient/model/PublicAPIGetCommentTextResponse.h" -#include "FastCommentsClient/model/PublicAPISetCommentTextResponse.h" +#include "FastCommentsClient/model/PinCommentResponse.h" #include "FastCommentsClient/model/PublicBlockFromCommentParams.h" -#include "FastCommentsClient/model/PublicFeedPostsResponse.h" #include "FastCommentsClient/model/ReactBodyParams.h" -#include "FastCommentsClient/model/ReactFeedPostResponse.h" -#include "FastCommentsClient/model/ResetUserNotificationsResponse.h" -#include "FastCommentsClient/model/SaveCommentsResponseWithPresence.h" -#include "FastCommentsClient/model/SearchUsersResult.h" +#include "FastCommentsClient/model/ReactFeedPostPublicResponse.h" +#include "FastCommentsClient/model/ResetUserNotificationCountResponse.h" +#include "FastCommentsClient/model/ResetUserNotificationsResponse_1.h" +#include "FastCommentsClient/model/SearchUsersResponse_1.h" +#include "FastCommentsClient/model/SetCommentTextResponse_1.h" #include "FastCommentsClient/model/SizePreset.h" #include "FastCommentsClient/model/SortDirections.h" -#include "FastCommentsClient/model/UnblockSuccess.h" +#include "FastCommentsClient/model/UnBlockCommentPublicResponse.h" +#include "FastCommentsClient/model/UnLockCommentResponse.h" +#include "FastCommentsClient/model/UnPinCommentResponse.h" #include "FastCommentsClient/model/UpdateFeedPostParams.h" +#include "FastCommentsClient/model/UpdateFeedPostPublicResponse.h" #include "FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h" #include "FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h" #include "FastCommentsClient/model/UpdateUserNotificationStatusResponse.h" #include "FastCommentsClient/model/UploadImageResponse.h" -#include "FastCommentsClient/model/UserReactsResponse.h" #include "FastCommentsClient/model/VoteBodyParams.h" -#include "FastCommentsClient/model/VoteDeleteResponse.h" -#include "FastCommentsClient/model/VoteResponse.h" +#include "FastCommentsClient/model/VoteCommentResponse.h" #include #include #include @@ -107,7 +117,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> blockFromCommentPublic( + pplx::task> blockFromCommentPublic( utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, @@ -122,7 +132,7 @@ class PublicApi /// /// A comma separated list of comment ids. /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> checkedCommentsForBlocked( + pplx::task> checkedCommentsForBlocked( utility::string_t tenantId, utility::string_t commentIds, boost::optional sso @@ -139,7 +149,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createCommentPublic( + pplx::task> createCommentPublic( utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, @@ -157,7 +167,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createFeedPostPublic( + pplx::task> createFeedPostPublic( utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, @@ -172,7 +182,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createV1PageReact( + pplx::task> createV1PageReact( utility::string_t tenantId, utility::string_t urlId, boost::optional title @@ -187,7 +197,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createV2PageReact( + pplx::task> createV2PageReact( utility::string_t tenantId, utility::string_t urlId, utility::string_t id, @@ -204,7 +214,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteCommentPublic( + pplx::task> deleteCommentPublic( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -224,7 +234,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteCommentVote( + pplx::task> deleteCommentVote( utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId, @@ -257,7 +267,7 @@ class PublicApi /// /// /// - pplx::task> deleteV1PageReact( + pplx::task> deleteV1PageReact( utility::string_t tenantId, utility::string_t urlId ) const; @@ -270,7 +280,7 @@ class PublicApi /// /// /// - pplx::task> deleteV2PageReact( + pplx::task> deleteV2PageReact( utility::string_t tenantId, utility::string_t urlId, utility::string_t id @@ -285,7 +295,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> flagCommentPublic( + pplx::task> flagCommentPublic( utility::string_t tenantId, utility::string_t commentId, bool isFlagged, @@ -301,7 +311,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentText( + pplx::task> getCommentText( utility::string_t tenantId, utility::string_t commentId, boost::optional editKey, @@ -317,7 +327,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentVoteUserNames( + pplx::task> getCommentVoteUserNames( utility::string_t tenantId, utility::string_t commentId, int32_t dir, @@ -336,7 +346,7 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - pplx::task> getCommentsForUser( + pplx::task> getCommentsForUser( boost::optional userId, boost::optional> direction, boost::optional repliesToUserId, @@ -379,7 +389,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentsPublic( + pplx::task> getCommentsPublic( utility::string_t tenantId, utility::string_t urlId, boost::optional page, @@ -420,7 +430,7 @@ class PublicApi /// /// /// (optional, default to 0L) - pplx::task> getEventLog( + pplx::task> getEventLog( utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, @@ -440,7 +450,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to false) - pplx::task> getFeedPostsPublic( + pplx::task> getFeedPostsPublic( utility::string_t tenantId, boost::optional afterId, boost::optional limit, @@ -458,7 +468,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getFeedPostsStats( + pplx::task> getFeedPostsStats( utility::string_t tenantId, std::vector postIds, boost::optional sso @@ -471,7 +481,7 @@ class PublicApi /// /// /// - pplx::task> getGifLarge( + pplx::task> getGifLarge( utility::string_t tenantId, utility::string_t largeInternalURLSanitized ) const; @@ -520,7 +530,7 @@ class PublicApi /// /// /// (optional, default to 0L) - pplx::task> getGlobalEventLog( + pplx::task> getGlobalEventLog( utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, @@ -537,7 +547,7 @@ class PublicApi /// Page URL identifier (cleaned server-side). /// Cursor: pass nextAfterName from the previous response. (optional, default to utility::conversions::to_string_t("")) /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional, default to utility::conversions::to_string_t("")) - pplx::task> getOfflineUsers( + pplx::task> getOfflineUsers( utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, @@ -553,7 +563,7 @@ class PublicApi /// Page URL identifier (cleaned server-side). /// Cursor: pass nextAfterName from the previous response. (optional, default to utility::conversions::to_string_t("")) /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional, default to utility::conversions::to_string_t("")) - pplx::task> getOnlineUsers( + pplx::task> getOnlineUsers( utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, @@ -571,7 +581,7 @@ class PublicApi /// Optional case-insensitive title prefix filter. (optional, default to utility::conversions::to_string_t("")) /// Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional, default to new PagesSortBy()) /// If true, only return pages with at least one comment. (optional, default to false) - pplx::task> getPagesPublic( + pplx::task> getPagesPublic( utility::string_t tenantId, boost::optional cursor, boost::optional limit, @@ -589,7 +599,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - pplx::task> getTranslations( + pplx::task> getTranslations( utility::string_t r_namespace, utility::string_t component, boost::optional locale, @@ -603,7 +613,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserNotificationCount( + pplx::task> getUserNotificationCount( utility::string_t tenantId, boost::optional sso ) const; @@ -625,7 +635,7 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserNotifications( + pplx::task> getUserNotifications( utility::string_t tenantId, boost::optional urlId, boost::optional pageSize, @@ -648,7 +658,7 @@ class PublicApi /// /// /// - pplx::task> getUserPresenceStatuses( + pplx::task> getUserPresenceStatuses( utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds @@ -662,7 +672,7 @@ class PublicApi /// /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserReactsPublic( + pplx::task> getUserReactsPublic( utility::string_t tenantId, boost::optional> postIds, boost::optional sso @@ -675,7 +685,7 @@ class PublicApi /// /// /// Comma-delimited userIds. - pplx::task> getUsersInfo( + pplx::task> getUsersInfo( utility::string_t tenantId, utility::string_t ids ) const; @@ -687,7 +697,7 @@ class PublicApi /// /// /// - pplx::task> getV1PageLikes( + pplx::task> getV1PageLikes( utility::string_t tenantId, utility::string_t urlId ) const; @@ -700,7 +710,7 @@ class PublicApi /// /// /// - pplx::task> getV2PageReactUsers( + pplx::task> getV2PageReactUsers( utility::string_t tenantId, utility::string_t urlId, utility::string_t id @@ -713,7 +723,7 @@ class PublicApi /// /// /// - pplx::task> getV2PageReacts( + pplx::task> getV2PageReacts( utility::string_t tenantId, utility::string_t urlId ) const; @@ -727,7 +737,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> lockComment( + pplx::task> lockComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -751,7 +761,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> pinComment( + pplx::task> pinComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -769,7 +779,7 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> reactFeedPostPublic( + pplx::task> reactFeedPostPublic( utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams, @@ -785,7 +795,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> resetUserNotificationCount( + pplx::task> resetUserNotificationCount( utility::string_t tenantId, boost::optional sso ) const; @@ -802,7 +812,7 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> resetUserNotifications( + pplx::task> resetUserNotifications( utility::string_t tenantId, boost::optional afterId, boost::optional afterCreatedAt, @@ -823,7 +833,7 @@ class PublicApi /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> searchUsers( + pplx::task> searchUsers( utility::string_t tenantId, utility::string_t urlId, boost::optional usernameStartsWith, @@ -843,7 +853,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> setCommentText( + pplx::task> setCommentText( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -861,7 +871,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unBlockCommentPublic( + pplx::task> unBlockCommentPublic( utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, @@ -877,7 +887,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unLockComment( + pplx::task> unLockComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -893,7 +903,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unPinComment( + pplx::task> unPinComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -910,7 +920,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateFeedPostPublic( + pplx::task> updateFeedPostPublic( utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams, @@ -1000,7 +1010,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> voteComment( + pplx::task> voteComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t urlId, diff --git a/client/include/FastCommentsClient/model/AddHashTagResponse.h b/client/include/FastCommentsClient/model/AddHashTagResponse.h new file mode 100644 index 0000000..3930c2a --- /dev/null +++ b/client/include/FastCommentsClient/model/AddHashTagResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * AddHashTagResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/TenantHashTag.h" +#include "FastCommentsClient/model/CreateHashTagResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class TenantHashTag; +class CustomConfigParameters; + + +class AddHashTagResponse + : public ModelBase +{ +public: + AddHashTagResponse(); + virtual ~AddHashTagResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// AddHashTagResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getHashTag() const; + bool hashTagIsSet() const; + void unsetHashTag(); + void setHashTag(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_HashTag; + bool m_HashTagIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/AddHashTagsBulkResponse.h b/client/include/FastCommentsClient/model/AddHashTagsBulkResponse.h new file mode 100644 index 0000000..8545bbf --- /dev/null +++ b/client/include/FastCommentsClient/model/AddHashTagsBulkResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * AddHashTagsBulkResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagsBulkResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagsBulkResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/BulkCreateHashTagsResponse.h" +#include "FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class BulkCreateHashTagsResponse_results_inner; +class CustomConfigParameters; + + +class AddHashTagsBulkResponse + : public ModelBase +{ +public: + AddHashTagsBulkResponse(); + virtual ~AddHashTagsBulkResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// AddHashTagsBulkResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getResults() const; + bool resultsIsSet() const; + void unsetResults(); + void setResults(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_Results; + bool m_ResultsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagsBulkResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse_1.h b/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse_1.h new file mode 100644 index 0000000..48d3ddd --- /dev/null +++ b/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * AggregateQuestionResultsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResultsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResultsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/QuestionResultAggregationOverall.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/AggregateQuestionResultsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class QuestionResultAggregationOverall; +class CustomConfigParameters; + + +class AggregateQuestionResultsResponse_1 + : public ModelBase +{ +public: + AggregateQuestionResultsResponse_1(); + virtual ~AggregateQuestionResultsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// AggregateQuestionResultsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getData() const; + bool dataIsSet() const; + void unsetData(); + void setData(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Data; + bool m_DataIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResultsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/BlockFromCommentPublicResponse.h b/client/include/FastCommentsClient/model/BlockFromCommentPublicResponse.h new file mode 100644 index 0000000..148159d --- /dev/null +++ b/client/include/FastCommentsClient/model/BlockFromCommentPublicResponse.h @@ -0,0 +1,149 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BlockFromCommentPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/BlockSuccess.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class BlockFromCommentPublicResponse + : public ModelBase +{ +public: + BlockFromCommentPublicResponse(); + virtual ~BlockFromCommentPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// BlockFromCommentPublicResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map getCommentStatuses() const; + bool commentStatusesIsSet() const; + void unsetCommentStatuses(); + void setCommentStatuses(std::map value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::map m_CommentStatuses; + bool m_CommentStatusesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/BlockUserFromCommentResponse.h b/client/include/FastCommentsClient/model/BlockUserFromCommentResponse.h new file mode 100644 index 0000000..4b6ff6f --- /dev/null +++ b/client/include/FastCommentsClient/model/BlockUserFromCommentResponse.h @@ -0,0 +1,149 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BlockUserFromCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BlockUserFromCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BlockUserFromCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/BlockSuccess.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class BlockUserFromCommentResponse + : public ModelBase +{ +public: + BlockUserFromCommentResponse(); + virtual ~BlockUserFromCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// BlockUserFromCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map getCommentStatuses() const; + bool commentStatusesIsSet() const; + void unsetCommentStatuses(); + void setCommentStatuses(std::map value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::map m_CommentStatuses; + bool m_CommentStatusesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BlockUserFromCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h new file mode 100644 index 0000000..51560f4 --- /dev/null +++ b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * BulkAggregateQuestionResultsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/QuestionResultAggregationOverall.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class QuestionResultAggregationOverall; +class CustomConfigParameters; + + +class BulkAggregateQuestionResultsResponse_1 + : public ModelBase +{ +public: + BulkAggregateQuestionResultsResponse_1(); + virtual ~BulkAggregateQuestionResultsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// BulkAggregateQuestionResultsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map> getData() const; + bool dataIsSet() const; + void unsetData(); + void setData(const std::map>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::map> m_Data; + bool m_DataIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/ChangeTicketStateResponse_1.h b/client/include/FastCommentsClient/model/ChangeTicketStateResponse_1.h new file mode 100644 index 0000000..9b3e8f1 --- /dev/null +++ b/client/include/FastCommentsClient/model/ChangeTicketStateResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ChangeTicketStateResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APITicket.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/ChangeTicketStateResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APITicket; +class CustomConfigParameters; + + +class ChangeTicketStateResponse_1 + : public ModelBase +{ +public: + ChangeTicketStateResponse_1(); + virtual ~ChangeTicketStateResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ChangeTicketStateResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTicket() const; + bool ticketIsSet() const; + void unsetTicket(); + void setTicket(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Ticket; + bool m_TicketIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CheckedCommentsForBlockedResponse.h b/client/include/FastCommentsClient/model/CheckedCommentsForBlockedResponse.h new file mode 100644 index 0000000..bff34f8 --- /dev/null +++ b/client/include/FastCommentsClient/model/CheckedCommentsForBlockedResponse.h @@ -0,0 +1,149 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CheckedCommentsForBlockedResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CheckedCommentsForBlockedResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CheckedCommentsForBlockedResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/CheckBlockedCommentsResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class CheckedCommentsForBlockedResponse + : public ModelBase +{ +public: + CheckedCommentsForBlockedResponse(); + virtual ~CheckedCommentsForBlockedResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CheckedCommentsForBlockedResponse members + + + /// + /// Construct a type with a set of properties K of type T + /// + std::map getCommentStatuses() const; + bool commentStatusesIsSet() const; + void unsetCommentStatuses(); + void setCommentStatuses(std::map value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::map m_CommentStatuses; + bool m_CommentStatusesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CheckedCommentsForBlockedResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h b/client/include/FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h new file mode 100644 index 0000000..c66e7a9 --- /dev/null +++ b/client/include/FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CombineCommentsWithQuestionResultsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CombineCommentsWithQuestionResultsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CombineCommentsWithQuestionResultsResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/FindCommentsByRangeResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class FindCommentsByRangeResponse; +class CustomConfigParameters; + + +class CombineCommentsWithQuestionResultsResponse + : public ModelBase +{ +public: + CombineCommentsWithQuestionResultsResponse(); + virtual ~CombineCommentsWithQuestionResultsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CombineCommentsWithQuestionResultsResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getData() const; + bool dataIsSet() const; + void unsetData(); + void setData(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Data; + bool m_DataIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CombineCommentsWithQuestionResultsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateCommentPublicResponse.h b/client/include/FastCommentsClient/model/CreateCommentPublicResponse.h new file mode 100644 index 0000000..55ffbae --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateCommentPublicResponse.h @@ -0,0 +1,177 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateCommentPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UserSessionInfo.h" +#include "FastCommentsClient/model/PublicComment.h" +#include "FastCommentsClient/model/SaveCommentsResponseWithPresence.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/Object.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PublicComment; +class UserSessionInfo; +class CustomConfigParameters; + + +class CreateCommentPublicResponse + : public ModelBase +{ +public: + CreateCommentPublicResponse(); + virtual ~CreateCommentPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateCommentPublicResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getComment() const; + bool commentIsSet() const; + void unsetComment(); + void setComment(const std::shared_ptr& value); + + std::shared_ptr getUser() const; + bool userIsSet() const; + void unsetUser(); + void setUser(const std::shared_ptr& value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map> getModuleData() const; + bool moduleDataIsSet() const; + void unsetModuleData(); + void setModuleData(const std::map>& value); + + utility::string_t getUserIdWS() const; + bool userIdWSIsSet() const; + void unsetUserIdWS(); + void setUserIdWS(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Comment; + bool m_CommentIsSet; + + boost::optional> m_User; + + std::map> m_ModuleData; + bool m_ModuleDataIsSet; + + utility::string_t m_UserIdWS; + bool m_UserIdWSIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateEmailTemplateResponse_1.h b/client/include/FastCommentsClient/model/CreateEmailTemplateResponse_1.h new file mode 100644 index 0000000..c4b8e2e --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateEmailTemplateResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateEmailTemplateResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CreateEmailTemplateResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/CustomEmailTemplate.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomEmailTemplate; +class CustomConfigParameters; + + +class CreateEmailTemplateResponse_1 + : public ModelBase +{ +public: + CreateEmailTemplateResponse_1(); + virtual ~CreateEmailTemplateResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateEmailTemplateResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getEmailTemplate() const; + bool emailTemplateIsSet() const; + void unsetEmailTemplate(); + void setEmailTemplate(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_EmailTemplate; + bool m_EmailTemplateIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateFeedPostPublicResponse.h b/client/include/FastCommentsClient/model/CreateFeedPostPublicResponse.h new file mode 100644 index 0000000..d023836 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateFeedPostPublicResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateFeedPostPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CreateFeedPostResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/FeedPost.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class FeedPost; +class CustomConfigParameters; + + +class CreateFeedPostPublicResponse + : public ModelBase +{ +public: + CreateFeedPostPublicResponse(); + virtual ~CreateFeedPostPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateFeedPostPublicResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getFeedPost() const; + bool feedPostIsSet() const; + void unsetFeedPost(); + void setFeedPost(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_FeedPost; + bool m_FeedPostIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateFeedPostResponse_1.h b/client/include/FastCommentsClient/model/CreateFeedPostResponse_1.h new file mode 100644 index 0000000..7fafe35 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateFeedPostResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateFeedPostResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CreateFeedPostsResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/FeedPost.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class FeedPost; +class CustomConfigParameters; + + +class CreateFeedPostResponse_1 + : public ModelBase +{ +public: + CreateFeedPostResponse_1(); + virtual ~CreateFeedPostResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateFeedPostResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getFeedPost() const; + bool feedPostIsSet() const; + void unsetFeedPost(); + void setFeedPost(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_FeedPost; + bool m_FeedPostIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateModeratorResponse_1.h b/client/include/FastCommentsClient/model/CreateModeratorResponse_1.h new file mode 100644 index 0000000..5a7ef30 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateModeratorResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateModeratorResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/Moderator.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/CreateModeratorResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class Moderator; +class CustomConfigParameters; + + +class CreateModeratorResponse_1 + : public ModelBase +{ +public: + CreateModeratorResponse_1(); + virtual ~CreateModeratorResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateModeratorResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getModerator() const; + bool moderatorIsSet() const; + void unsetModerator(); + void setModerator(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Moderator; + bool m_ModeratorIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateQuestionConfigResponse_1.h b/client/include/FastCommentsClient/model/CreateQuestionConfigResponse_1.h new file mode 100644 index 0000000..3a4ff87 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateQuestionConfigResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateQuestionConfigResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CreateQuestionConfigResponse.h" +#include "FastCommentsClient/model/QuestionConfig.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class QuestionConfig; +class CustomConfigParameters; + + +class CreateQuestionConfigResponse_1 + : public ModelBase +{ +public: + CreateQuestionConfigResponse_1(); + virtual ~CreateQuestionConfigResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateQuestionConfigResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getQuestionConfig() const; + bool questionConfigIsSet() const; + void unsetQuestionConfig(); + void setQuestionConfig(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_QuestionConfig; + bool m_QuestionConfigIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateQuestionResultResponse_1.h b/client/include/FastCommentsClient/model/CreateQuestionResultResponse_1.h new file mode 100644 index 0000000..2e74048 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateQuestionResultResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateQuestionResultResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/CreateQuestionResultResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/QuestionResult.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class QuestionResult; +class CustomConfigParameters; + + +class CreateQuestionResultResponse_1 + : public ModelBase +{ +public: + CreateQuestionResultResponse_1(); + virtual ~CreateQuestionResultResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateQuestionResultResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getQuestionResult() const; + bool questionResultIsSet() const; + void unsetQuestionResult(); + void setQuestionResult(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_QuestionResult; + bool m_QuestionResultIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTenantPackageResponse_1.h b/client/include/FastCommentsClient/model/CreateTenantPackageResponse_1.h new file mode 100644 index 0000000..2126551 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateTenantPackageResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateTenantPackageResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/TenantPackage.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/CreateTenantPackageResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class TenantPackage; +class CustomConfigParameters; + + +class CreateTenantPackageResponse_1 + : public ModelBase +{ +public: + CreateTenantPackageResponse_1(); + virtual ~CreateTenantPackageResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateTenantPackageResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTenantPackage() const; + bool tenantPackageIsSet() const; + void unsetTenantPackage(); + void setTenantPackage(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_TenantPackage; + bool m_TenantPackageIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTenantResponse_1.h b/client/include/FastCommentsClient/model/CreateTenantResponse_1.h new file mode 100644 index 0000000..dcb1de1 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateTenantResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateTenantResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APITenant.h" +#include "FastCommentsClient/model/CreateTenantResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APITenant; +class CustomConfigParameters; + + +class CreateTenantResponse_1 + : public ModelBase +{ +public: + CreateTenantResponse_1(); + virtual ~CreateTenantResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateTenantResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTenant() const; + bool tenantIsSet() const; + void unsetTenant(); + void setTenant(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Tenant; + bool m_TenantIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTenantUserResponse_1.h b/client/include/FastCommentsClient/model/CreateTenantUserResponse_1.h new file mode 100644 index 0000000..3cde809 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateTenantUserResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateTenantUserResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/User.h" +#include +#include "FastCommentsClient/model/CreateTenantUserResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class User; +class CustomConfigParameters; + + +class CreateTenantUserResponse_1 + : public ModelBase +{ +public: + CreateTenantUserResponse_1(); + virtual ~CreateTenantUserResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateTenantUserResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTenantUser() const; + bool tenantUserIsSet() const; + void unsetTenantUser(); + void setTenantUser(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_TenantUser; + bool m_TenantUserIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTicketResponse_1.h b/client/include/FastCommentsClient/model/CreateTicketResponse_1.h new file mode 100644 index 0000000..a059c87 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateTicketResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateTicketResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APITicket.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/CreateTicketResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APITicket; +class CustomConfigParameters; + + +class CreateTicketResponse_1 + : public ModelBase +{ +public: + CreateTicketResponse_1(); + virtual ~CreateTicketResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateTicketResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTicket() const; + bool ticketIsSet() const; + void unsetTicket(); + void setTicket(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Ticket; + bool m_TicketIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateUserBadgeResponse.h b/client/include/FastCommentsClient/model/CreateUserBadgeResponse.h new file mode 100644 index 0000000..9fabc67 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateUserBadgeResponse.h @@ -0,0 +1,156 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateUserBadgeResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadgeResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadgeResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UserBadge.h" +#include "FastCommentsClient/model/APICreateUserBadgeResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserBadge; +class CustomConfigParameters; + + +class CreateUserBadgeResponse + : public ModelBase +{ +public: + CreateUserBadgeResponse(); + virtual ~CreateUserBadgeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateUserBadgeResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getUserBadge() const; + bool userBadgeIsSet() const; + void unsetUserBadge(); + void setUserBadge(const std::shared_ptr& value); + + std::vector getNotes() const; + bool notesIsSet() const; + void unsetNotes(); + void setNotes(const std::vector& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_UserBadge; + bool m_UserBadgeIsSet; + + std::vector m_Notes; + bool m_NotesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateV1PageReactResponse.h b/client/include/FastCommentsClient/model/CreateV1PageReactResponse.h new file mode 100644 index 0000000..0bf1e9c --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateV1PageReactResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateV1PageReactResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV1PageReactResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV1PageReactResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/CreateV1PageReact.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class CreateV1PageReactResponse + : public ModelBase +{ +public: + CreateV1PageReactResponse(); + virtual ~CreateV1PageReactResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateV1PageReactResponse members + + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + utility::string_t m_Code; + bool m_CodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV1PageReactResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateV2PageReactResponse.h b/client/include/FastCommentsClient/model/CreateV2PageReactResponse.h new file mode 100644 index 0000000..6216012 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateV2PageReactResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateV2PageReactResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV2PageReactResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV2PageReactResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/CreateV1PageReact.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class CreateV2PageReactResponse + : public ModelBase +{ +public: + CreateV2PageReactResponse(); + virtual ~CreateV2PageReactResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateV2PageReactResponse members + + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + utility::string_t m_Code; + bool m_CodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV2PageReactResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateVoteResponse.h b/client/include/FastCommentsClient/model/CreateVoteResponse.h new file mode 100644 index 0000000..580a603 --- /dev/null +++ b/client/include/FastCommentsClient/model/CreateVoteResponse.h @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * CreateVoteResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateVoteResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateVoteResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/VoteResponseUser.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/VoteResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class VoteResponseUser; +class CustomConfigParameters; + + +class CreateVoteResponse + : public ModelBase +{ +public: + CreateVoteResponse(); + virtual ~CreateVoteResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// CreateVoteResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getVoteId() const; + bool voteIdIsSet() const; + void unsetVoteId(); + void setVoteId(const utility::string_t& value); + + bool isIsVerified() const; + bool isVerifiedIsSet() const; + void unsetIsVerified(); + void setIsVerified(bool value); + + std::shared_ptr getUser() const; + bool userIsSet() const; + void unsetUser(); + void setUser(const std::shared_ptr& value); + + utility::string_t getEditKey() const; + bool editKeyIsSet() const; + void unsetEditKey(); + void setEditKey(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_VoteId; + bool m_VoteIdIsSet; + + bool m_IsVerified; + bool m_IsVerifiedIsSet; + + std::shared_ptr m_User; + bool m_UserIsSet; + + utility::string_t m_EditKey; + bool m_EditKeyIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateVoteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteCommentPublicResponse.h b/client/include/FastCommentsClient/model/DeleteCommentPublicResponse.h new file mode 100644 index 0000000..826d3a3 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteCommentPublicResponse.h @@ -0,0 +1,155 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteCommentPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/DeletedCommentResultComment.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/PublicAPIDeleteCommentResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class DeletedCommentResultComment; +class CustomConfigParameters; + + +class DeleteCommentPublicResponse + : public ModelBase +{ +public: + DeleteCommentPublicResponse(); + virtual ~DeleteCommentPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteCommentPublicResponse members + + + std::shared_ptr getComment() const; + bool commentIsSet() const; + void unsetComment(); + void setComment(const std::shared_ptr& value); + + bool isHardRemoved() const; + bool hardRemovedIsSet() const; + void unsetHardRemoved(); + void setHardRemoved(bool value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Comment; + bool m_CommentIsSet; + + bool m_HardRemoved; + bool m_HardRemovedIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteCommentResponse.h b/client/include/FastCommentsClient/model/DeleteCommentResponse.h new file mode 100644 index 0000000..f660bb1 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteCommentResponse.h @@ -0,0 +1,146 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/DeleteCommentAction.h" +#include "FastCommentsClient/model/DeleteCommentResult.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteCommentResponse + : public ModelBase +{ +public: + DeleteCommentResponse(); + virtual ~DeleteCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteCommentResponse members + + + std::shared_ptr getAction() const; + bool actionIsSet() const; + void unsetAction(); + void setAction(const std::shared_ptr& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Action; + bool m_ActionIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteCommentVoteResponse.h b/client/include/FastCommentsClient/model/DeleteCommentVoteResponse.h new file mode 100644 index 0000000..a66cc67 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteCommentVoteResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteCommentVoteResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentVoteResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentVoteResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/VoteDeleteResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteCommentVoteResponse + : public ModelBase +{ +public: + DeleteCommentVoteResponse(); + virtual ~DeleteCommentVoteResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteCommentVoteResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + bool isWasPendingVote() const; + bool wasPendingVoteIsSet() const; + void unsetWasPendingVote(); + void setWasPendingVote(bool value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + bool m_WasPendingVote; + bool m_WasPendingVoteIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentVoteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h b/client/include/FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h new file mode 100644 index 0000000..073e069 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteEmailTemplateRenderErrorResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateRenderErrorResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateRenderErrorResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteEmailTemplateRenderErrorResponse + : public ModelBase +{ +public: + DeleteEmailTemplateRenderErrorResponse(); + virtual ~DeleteEmailTemplateRenderErrorResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteEmailTemplateRenderErrorResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateRenderErrorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteEmailTemplateResponse.h b/client/include/FastCommentsClient/model/DeleteEmailTemplateResponse.h new file mode 100644 index 0000000..6e1ddce --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteEmailTemplateResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteEmailTemplateResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteEmailTemplateResponse + : public ModelBase +{ +public: + DeleteEmailTemplateResponse(); + virtual ~DeleteEmailTemplateResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteEmailTemplateResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h index f22f15a..028175d 100644 --- a/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h +++ b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h @@ -23,6 +23,10 @@ #include "FastCommentsClient/ModelBase.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h" #include "FastCommentsClient/model/APIStatus.h" namespace org { @@ -30,6 +34,7 @@ namespace openapitools { namespace client { namespace model { +class CustomConfigParameters; class DeleteFeedPostPublicResponse @@ -60,11 +65,67 @@ class DeleteFeedPostPublicResponse void unsetStatus(); void setStatus(const std::shared_ptr& value); + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + protected: std::shared_ptr m_Status; bool m_StatusIsSet; + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + }; diff --git a/client/include/FastCommentsClient/model/GetTrending_200_response.h b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h similarity index 53% rename from client/include/FastCommentsClient/model/GetTrending_200_response.h rename to client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h index 015fc2e..d5174ea 100644 --- a/client/include/FastCommentsClient/model/GetTrending_200_response.h +++ b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h @@ -10,24 +10,19 @@ */ /* - * GetTrending_200_response.h + * DeleteFeedPostPublicResponse_anyOf.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrending_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrending_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublicResponse_anyOf_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublicResponse_anyOf_H_ #include #include #include "FastCommentsClient/ModelBase.h" -#include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" -#include "FastCommentsClient/model/GifSearchResponse.h" -#include "FastCommentsClient/model/GifSearchInternalError.h" -#include -#include #include "FastCommentsClient/model/APIStatus.h" namespace org { @@ -37,12 +32,12 @@ namespace model { -class GetTrending_200_response +class DeleteFeedPostPublicResponse_anyOf : public ModelBase { public: - GetTrending_200_response(); - virtual ~GetTrending_200_response(); + DeleteFeedPostPublicResponse_anyOf(); + virtual ~DeleteFeedPostPublicResponse_anyOf(); ///////////////////////////////////////////// /// ModelBase overrides @@ -57,35 +52,19 @@ class GetTrending_200_response ///////////////////////////////////////////// - /// GetTrending_200_response members + /// DeleteFeedPostPublicResponse_anyOf members - std::vector>> getImages() const; - bool imagesIsSet() const; - void unsetImages(); - void setImages(const std::vector>>& value); - std::shared_ptr getStatus() const; bool statusIsSet() const; void unsetStatus(); void setStatus(const std::shared_ptr& value); - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - protected: - std::vector>> m_Images; - bool m_ImagesIsSet; - std::shared_ptr m_Status; bool m_StatusIsSet; - utility::string_t m_Code; - bool m_CodeIsSet; - }; @@ -94,4 +73,4 @@ class GetTrending_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrending_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublicResponse_anyOf_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteHashTagResponse.h b/client/include/FastCommentsClient/model/DeleteHashTagResponse.h new file mode 100644 index 0000000..091810a --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteHashTagResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteHashTagResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteHashTagResponse + : public ModelBase +{ +public: + DeleteHashTagResponse(); + virtual ~DeleteHashTagResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteHashTagResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteModerationVoteResponse.h b/client/include/FastCommentsClient/model/DeleteModerationVoteResponse.h new file mode 100644 index 0000000..947a473 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteModerationVoteResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteModerationVoteResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModerationVoteResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModerationVoteResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/VoteDeleteResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteModerationVoteResponse + : public ModelBase +{ +public: + DeleteModerationVoteResponse(); + virtual ~DeleteModerationVoteResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteModerationVoteResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + bool isWasPendingVote() const; + bool wasPendingVoteIsSet() const; + void unsetWasPendingVote(); + void setWasPendingVote(bool value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + bool m_WasPendingVote; + bool m_WasPendingVoteIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModerationVoteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteModeratorResponse.h b/client/include/FastCommentsClient/model/DeleteModeratorResponse.h new file mode 100644 index 0000000..a261677 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteModeratorResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteModeratorResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModeratorResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModeratorResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteModeratorResponse + : public ModelBase +{ +public: + DeleteModeratorResponse(); + virtual ~DeleteModeratorResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteModeratorResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModeratorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteNotificationCountResponse.h b/client/include/FastCommentsClient/model/DeleteNotificationCountResponse.h new file mode 100644 index 0000000..acbb6f2 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteNotificationCountResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteNotificationCountResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteNotificationCountResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteNotificationCountResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteNotificationCountResponse + : public ModelBase +{ +public: + DeleteNotificationCountResponse(); + virtual ~DeleteNotificationCountResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteNotificationCountResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteNotificationCountResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeletePendingWebhookEventResponse.h b/client/include/FastCommentsClient/model/DeletePendingWebhookEventResponse.h new file mode 100644 index 0000000..4bcb168 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeletePendingWebhookEventResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeletePendingWebhookEventResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeletePendingWebhookEventResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeletePendingWebhookEventResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeletePendingWebhookEventResponse + : public ModelBase +{ +public: + DeletePendingWebhookEventResponse(); + virtual ~DeletePendingWebhookEventResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeletePendingWebhookEventResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeletePendingWebhookEventResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteQuestionConfigResponse.h b/client/include/FastCommentsClient/model/DeleteQuestionConfigResponse.h new file mode 100644 index 0000000..f62c580 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteQuestionConfigResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteQuestionConfigResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionConfigResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionConfigResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteQuestionConfigResponse + : public ModelBase +{ +public: + DeleteQuestionConfigResponse(); + virtual ~DeleteQuestionConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteQuestionConfigResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionConfigResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteQuestionResultResponse.h b/client/include/FastCommentsClient/model/DeleteQuestionResultResponse.h new file mode 100644 index 0000000..111b1c9 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteQuestionResultResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteQuestionResultResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionResultResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionResultResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteQuestionResultResponse + : public ModelBase +{ +public: + DeleteQuestionResultResponse(); + virtual ~DeleteQuestionResultResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteQuestionResultResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionResultResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteTenantPackageResponse.h b/client/include/FastCommentsClient/model/DeleteTenantPackageResponse.h new file mode 100644 index 0000000..ed32f40 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteTenantPackageResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteTenantPackageResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantPackageResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantPackageResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteTenantPackageResponse + : public ModelBase +{ +public: + DeleteTenantPackageResponse(); + virtual ~DeleteTenantPackageResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteTenantPackageResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantPackageResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteTenantResponse.h b/client/include/FastCommentsClient/model/DeleteTenantResponse.h new file mode 100644 index 0000000..608d766 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteTenantResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteTenantResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteTenantResponse + : public ModelBase +{ +public: + DeleteTenantResponse(); + virtual ~DeleteTenantResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteTenantResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteTenantUserResponse.h b/client/include/FastCommentsClient/model/DeleteTenantUserResponse.h new file mode 100644 index 0000000..28e7bc4 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteTenantUserResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteTenantUserResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantUserResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantUserResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteTenantUserResponse + : public ModelBase +{ +public: + DeleteTenantUserResponse(); + virtual ~DeleteTenantUserResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteTenantUserResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantUserResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteUserBadgeResponse.h b/client/include/FastCommentsClient/model/DeleteUserBadgeResponse.h new file mode 100644 index 0000000..13874d9 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteUserBadgeResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteUserBadgeResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteUserBadgeResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteUserBadgeResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptySuccessResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteUserBadgeResponse + : public ModelBase +{ +public: + DeleteUserBadgeResponse(); + virtual ~DeleteUserBadgeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteUserBadgeResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteUserBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteV1PageReactResponse.h b/client/include/FastCommentsClient/model/DeleteV1PageReactResponse.h new file mode 100644 index 0000000..a95c441 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteV1PageReactResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteV1PageReactResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV1PageReactResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV1PageReactResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/CreateV1PageReact.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteV1PageReactResponse + : public ModelBase +{ +public: + DeleteV1PageReactResponse(); + virtual ~DeleteV1PageReactResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteV1PageReactResponse members + + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + utility::string_t m_Code; + bool m_CodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV1PageReactResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteV2PageReactResponse.h b/client/include/FastCommentsClient/model/DeleteV2PageReactResponse.h new file mode 100644 index 0000000..a30a1b4 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteV2PageReactResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteV2PageReactResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV2PageReactResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV2PageReactResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/CreateV1PageReact.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteV2PageReactResponse + : public ModelBase +{ +public: + DeleteV2PageReactResponse(); + virtual ~DeleteV2PageReactResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteV2PageReactResponse members + + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + utility::string_t m_Code; + bool m_CodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV2PageReactResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteVoteResponse.h b/client/include/FastCommentsClient/model/DeleteVoteResponse.h new file mode 100644 index 0000000..4c48b97 --- /dev/null +++ b/client/include/FastCommentsClient/model/DeleteVoteResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * DeleteVoteResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteVoteResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteVoteResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/VoteDeleteResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class DeleteVoteResponse + : public ModelBase +{ +public: + DeleteVoteResponse(); + virtual ~DeleteVoteResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// DeleteVoteResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + bool isWasPendingVote() const; + bool wasPendingVoteIsSet() const; + void unsetWasPendingVote(); + void setWasPendingVote(bool value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + bool m_WasPendingVote; + bool m_WasPendingVoteIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteVoteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/FlagCommentPublicResponse.h b/client/include/FastCommentsClient/model/FlagCommentPublicResponse.h new file mode 100644 index 0000000..e9c5892 --- /dev/null +++ b/client/include/FastCommentsClient/model/FlagCommentPublicResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * FlagCommentPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class FlagCommentPublicResponse + : public ModelBase +{ +public: + FlagCommentPublicResponse(); + virtual ~FlagCommentPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// FlagCommentPublicResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/FlagCommentResponse_1.h b/client/include/FastCommentsClient/model/FlagCommentResponse_1.h new file mode 100644 index 0000000..3f15b68 --- /dev/null +++ b/client/include/FastCommentsClient/model/FlagCommentResponse_1.h @@ -0,0 +1,153 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * FlagCommentResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/FlagCommentResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class FlagCommentResponse_1 + : public ModelBase +{ +public: + FlagCommentResponse_1(); + virtual ~FlagCommentResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// FlagCommentResponse_1 members + + + int32_t getStatusCode() const; + bool statusCodeIsSet() const; + void unsetStatusCode(); + void setStatusCode(int32_t value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + bool isWasUnapproved() const; + bool wasUnapprovedIsSet() const; + void unsetWasUnapproved(); + void setWasUnapproved(bool value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + int32_t m_StatusCode; + bool m_StatusCodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + bool m_WasUnapproved; + bool m_WasUnapprovedIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetApiCommentsResponse.h b/client/include/FastCommentsClient/model/GetApiCommentsResponse.h new file mode 100644 index 0000000..eea70c5 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetApiCommentsResponse.h @@ -0,0 +1,167 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetApiCommentsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiCommentsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiCommentsResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationAPIGetCommentsResponse.h" +#include "FastCommentsClient/model/ModerationAPIComment.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/ModerationFilter.h" +#include "FastCommentsClient/Object.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationAPIComment; +class ModerationFilter; +class CustomConfigParameters; + + +class GetApiCommentsResponse + : public ModelBase +{ +public: + GetApiCommentsResponse(); + virtual ~GetApiCommentsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetApiCommentsResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTranslations() const; + bool translationsIsSet() const; + void unsetTranslations(); + void setTranslations(const std::shared_ptr& value); + + std::vector> getComments() const; + bool commentsIsSet() const; + void unsetComments(); + void setComments(const std::vector>& value); + + std::shared_ptr getModerationFilter() const; + bool moderationFilterIsSet() const; + void unsetModerationFilter(); + void setModerationFilter(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Translations; + bool m_TranslationsIsSet; + + std::vector> m_Comments; + bool m_CommentsIsSet; + + std::shared_ptr m_ModerationFilter; + bool m_ModerationFilterIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiCommentsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetApiExportStatusResponse.h b/client/include/FastCommentsClient/model/GetApiExportStatusResponse.h new file mode 100644 index 0000000..2d2a2b5 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetApiExportStatusResponse.h @@ -0,0 +1,161 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetApiExportStatusResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiExportStatusResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiExportStatusResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationExportStatusResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetApiExportStatusResponse + : public ModelBase +{ +public: + GetApiExportStatusResponse(); + virtual ~GetApiExportStatusResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetApiExportStatusResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getJobStatus() const; + bool jobStatusIsSet() const; + void unsetJobStatus(); + void setJobStatus(const utility::string_t& value); + + int32_t getRecordCount() const; + bool recordCountIsSet() const; + void unsetRecordCount(); + void setRecordCount(int32_t value); + + utility::string_t getDownloadUrl() const; + bool downloadUrlIsSet() const; + void unsetDownloadUrl(); + void setDownloadUrl(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_JobStatus; + bool m_JobStatusIsSet; + + int32_t m_RecordCount; + bool m_RecordCountIsSet; + + utility::string_t m_DownloadUrl; + bool m_DownloadUrlIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiExportStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetApiIdsResponse.h b/client/include/FastCommentsClient/model/GetApiIdsResponse.h new file mode 100644 index 0000000..94d668f --- /dev/null +++ b/client/include/FastCommentsClient/model/GetApiIdsResponse.h @@ -0,0 +1,154 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetApiIdsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiIdsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiIdsResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetApiIdsResponse + : public ModelBase +{ +public: + GetApiIdsResponse(); + virtual ~GetApiIdsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetApiIdsResponse members + + + std::vector getIds() const; + bool idsIsSet() const; + void unsetIds(); + void setIds(const std::vector& value); + + bool isHasMore() const; + bool hasMoreIsSet() const; + void unsetHasMore(); + void setHasMore(bool value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector m_Ids; + bool m_IdsIsSet; + + bool m_HasMore; + bool m_HasMoreIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiIdsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetAuditLogsResponse_1.h b/client/include/FastCommentsClient/model/GetAuditLogsResponse_1.h new file mode 100644 index 0000000..236c374 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetAuditLogsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetAuditLogsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/APIAuditLog.h" +#include "FastCommentsClient/model/GetAuditLogsResponse.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIAuditLog; +class CustomConfigParameters; + + +class GetAuditLogsResponse_1 + : public ModelBase +{ +public: + GetAuditLogsResponse_1(); + virtual ~GetAuditLogsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetAuditLogsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getAuditLogs() const; + bool auditLogsIsSet() const; + void unsetAuditLogs(); + void setAuditLogs(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_AuditLogs; + bool m_AuditLogsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetBanUsersFromCommentResponse.h b/client/include/FastCommentsClient/model/GetBanUsersFromCommentResponse.h new file mode 100644 index 0000000..d1b1ced --- /dev/null +++ b/client/include/FastCommentsClient/model/GetBanUsersFromCommentResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetBanUsersFromCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetBanUsersFromCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetBanUsersFromCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetBannedUsersFromCommentResponse.h" +#include "FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIBannedUserWithMultiMatchInfo; +class CustomConfigParameters; + + +class GetBanUsersFromCommentResponse + : public ModelBase +{ +public: + GetBanUsersFromCommentResponse(); + virtual ~GetBanUsersFromCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetBanUsersFromCommentResponse members + + + std::vector> getBannedUsers() const; + bool bannedUsersIsSet() const; + void unsetBannedUsers(); + void setBannedUsers(const std::vector>& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_BannedUsers; + bool m_BannedUsersIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetBanUsersFromCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse_1.h b/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse_1.h new file mode 100644 index 0000000..a7d2286 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCachedNotificationCountResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCountResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCountResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetCachedNotificationCountResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/UserNotificationCount.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserNotificationCount; +class CustomConfigParameters; + + +class GetCachedNotificationCountResponse_1 + : public ModelBase +{ +public: + GetCachedNotificationCountResponse_1(); + virtual ~GetCachedNotificationCountResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCachedNotificationCountResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getData() const; + bool dataIsSet() const; + void unsetData(); + void setData(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Data; + bool m_DataIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCountResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentBanStatusResponse_1.h b/client/include/FastCommentsClient/model/GetCommentBanStatusResponse_1.h new file mode 100644 index 0000000..c70e601 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentBanStatusResponse_1.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCommentBanStatusResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/GetCommentBanStatusResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetCommentBanStatusResponse_1 + : public ModelBase +{ +public: + GetCommentBanStatusResponse_1(); + virtual ~GetCommentBanStatusResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCommentBanStatusResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getEmailDomain() const; + bool emailDomainIsSet() const; + void unsetEmailDomain(); + void setEmailDomain(const utility::string_t& value); + + bool isCanIPBan() const; + bool canIPBanIsSet() const; + void unsetCanIPBan(); + void setCanIPBan(bool value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + boost::optional m_EmailDomain; + + boost::optional m_CanIPBan; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentChildrenResponse.h b/client/include/FastCommentsClient/model/GetCommentChildrenResponse.h new file mode 100644 index 0000000..2dcdaf5 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentChildrenResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCommentChildrenResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentChildrenResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentChildrenResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationAPIComment.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/ModerationAPIChildCommentsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationAPIComment; +class CustomConfigParameters; + + +class GetCommentChildrenResponse + : public ModelBase +{ +public: + GetCommentChildrenResponse(); + virtual ~GetCommentChildrenResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCommentChildrenResponse members + + + std::vector> getComments() const; + bool commentsIsSet() const; + void unsetComments(); + void setComments(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Comments; + bool m_CommentsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentChildrenResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentResponse.h b/client/include/FastCommentsClient/model/GetCommentResponse.h new file mode 100644 index 0000000..c6aaa8e --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIComment.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/APIGetCommentResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIComment; +class CustomConfigParameters; + + +class GetCommentResponse + : public ModelBase +{ +public: + GetCommentResponse(); + virtual ~GetCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getComment() const; + bool commentIsSet() const; + void unsetComment(); + void setComment(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Comment; + bool m_CommentIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentTextResponse_1.h b/client/include/FastCommentsClient/model/GetCommentTextResponse_1.h new file mode 100644 index 0000000..db5e4e1 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentTextResponse_1.h @@ -0,0 +1,153 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCommentTextResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentTextResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentTextResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/PublicAPIGetCommentTextResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetCommentTextResponse_1 + : public ModelBase +{ +public: + GetCommentTextResponse_1(); + virtual ~GetCommentTextResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCommentTextResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getCommentText() const; + bool commentTextIsSet() const; + void unsetCommentText(); + void setCommentText(const utility::string_t& value); + + utility::string_t getSanitizedCommentText() const; + bool sanitizedCommentTextIsSet() const; + void unsetSanitizedCommentText(); + void setSanitizedCommentText(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_CommentText; + bool m_CommentTextIsSet; + + utility::string_t m_SanitizedCommentText; + bool m_SanitizedCommentTextIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentTextResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentVoteUserNamesResponse.h b/client/include/FastCommentsClient/model/GetCommentVoteUserNamesResponse.h new file mode 100644 index 0000000..34fa013 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentVoteUserNamesResponse.h @@ -0,0 +1,154 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCommentVoteUserNamesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNamesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNamesResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetCommentVoteUserNamesResponse + : public ModelBase +{ +public: + GetCommentVoteUserNamesResponse(); + virtual ~GetCommentVoteUserNamesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCommentVoteUserNamesResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector getVoteUserNames() const; + bool voteUserNamesIsSet() const; + void unsetVoteUserNames(); + void setVoteUserNames(const std::vector& value); + + bool isHasMore() const; + bool hasMoreIsSet() const; + void unsetHasMore(); + void setHasMore(bool value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector m_VoteUserNames; + bool m_VoteUserNamesIsSet; + + bool m_HasMore; + bool m_HasMoreIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNamesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentsForUserResponse_1.h b/client/include/FastCommentsClient/model/GetCommentsForUserResponse_1.h new file mode 100644 index 0000000..eedc225 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentsForUserResponse_1.h @@ -0,0 +1,146 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCommentsForUserResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetCommentsForUserResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetCommentsForUserResponse_1 + : public ModelBase +{ +public: + GetCommentsForUserResponse_1(); + virtual ~GetCommentsForUserResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCommentsForUserResponse_1 members + + + std::vector getModeratingTenantIds() const; + bool moderatingTenantIdsIsSet() const; + void unsetModeratingTenantIds(); + void setModeratingTenantIds(const std::vector& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector m_ModeratingTenantIds; + bool m_ModeratingTenantIdsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentsPublicResponse.h b/client/include/FastCommentsClient/model/GetCommentsPublicResponse.h new file mode 100644 index 0000000..0da8b2b --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCommentsPublicResponse.h @@ -0,0 +1,329 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCommentsPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UserSessionInfo.h" +#include "FastCommentsClient/model/PublicComment.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h" +#include +#include "FastCommentsClient/Object.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PublicComment; +class UserSessionInfo; +class CustomConfigParameters; + + +class GetCommentsPublicResponse + : public ModelBase +{ +public: + GetCommentsPublicResponse(); + virtual ~GetCommentsPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCommentsPublicResponse members + + + int32_t getStatusCode() const; + bool statusCodeIsSet() const; + void unsetStatusCode(); + void setStatusCode(int32_t value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getTranslatedWarning() const; + bool translatedWarningIsSet() const; + void unsetTranslatedWarning(); + void setTranslatedWarning(const utility::string_t& value); + + std::vector> getComments() const; + bool commentsIsSet() const; + void unsetComments(); + void setComments(const std::vector>& value); + + std::shared_ptr getUser() const; + bool userIsSet() const; + void unsetUser(); + void setUser(const std::shared_ptr& value); + + utility::string_t getUrlIdClean() const; + bool urlIdCleanIsSet() const; + void unsetUrlIdClean(); + void setUrlIdClean(const utility::string_t& value); + + int64_t getLastGenDate() const; + bool lastGenDateIsSet() const; + void unsetLastGenDate(); + void setLastGenDate(int64_t value); + + bool isIncludesPastPages() const; + bool includesPastPagesIsSet() const; + void unsetIncludesPastPages(); + void setIncludesPastPages(bool value); + + bool isIsDemo() const; + bool isDemoIsSet() const; + void unsetIsDemo(); + void setIsDemo(bool value); + + int32_t getCommentCount() const; + bool commentCountIsSet() const; + void unsetCommentCount(); + void setCommentCount(int32_t value); + + bool isIsSiteAdmin() const; + bool isSiteAdminIsSet() const; + void unsetIsSiteAdmin(); + void setIsSiteAdmin(bool value); + + bool isHasBillingIssue() const; + bool hasBillingIssueIsSet() const; + void unsetHasBillingIssue(); + void setHasBillingIssue(bool value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map> getModuleData() const; + bool moduleDataIsSet() const; + void unsetModuleData(); + void setModuleData(const std::map>& value); + + int32_t getPageNumber() const; + bool pageNumberIsSet() const; + void unsetPageNumber(); + void setPageNumber(int32_t value); + + bool isIsWhiteLabeled() const; + bool isWhiteLabeledIsSet() const; + void unsetIsWhiteLabeled(); + void setIsWhiteLabeled(bool value); + + bool isIsProd() const; + bool isProdIsSet() const; + void unsetIsProd(); + void setIsProd(bool value); + + bool isIsCrawler() const; + bool isCrawlerIsSet() const; + void unsetIsCrawler(); + void setIsCrawler(bool value); + + int32_t getNotificationCount() const; + bool notificationCountIsSet() const; + void unsetNotificationCount(); + void setNotificationCount(int32_t value); + + bool isHasMore() const; + bool hasMoreIsSet() const; + void unsetHasMore(); + void setHasMore(bool value); + + bool isIsClosed() const; + bool isClosedIsSet() const; + void unsetIsClosed(); + void setIsClosed(bool value); + + int32_t getPresencePollState() const; + bool presencePollStateIsSet() const; + void unsetPresencePollState(); + void setPresencePollState(int32_t value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + utility::string_t getUrlIdWS() const; + bool urlIdWSIsSet() const; + void unsetUrlIdWS(); + void setUrlIdWS(const utility::string_t& value); + + utility::string_t getUserIdWS() const; + bool userIdWSIsSet() const; + void unsetUserIdWS(); + void setUserIdWS(const utility::string_t& value); + + utility::string_t getTenantIdWS() const; + bool tenantIdWSIsSet() const; + void unsetTenantIdWS(); + void setTenantIdWS(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + +protected: + int32_t m_StatusCode; + bool m_StatusCodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_TranslatedWarning; + bool m_TranslatedWarningIsSet; + + std::vector> m_Comments; + bool m_CommentsIsSet; + + boost::optional> m_User; + + utility::string_t m_UrlIdClean; + bool m_UrlIdCleanIsSet; + + boost::optional m_LastGenDate; + + bool m_IncludesPastPages; + bool m_IncludesPastPagesIsSet; + + bool m_IsDemo; + bool m_IsDemoIsSet; + + int32_t m_CommentCount; + bool m_CommentCountIsSet; + + bool m_IsSiteAdmin; + bool m_IsSiteAdminIsSet; + + bool m_HasBillingIssue; + bool m_HasBillingIssueIsSet; + + std::map> m_ModuleData; + bool m_ModuleDataIsSet; + + int32_t m_PageNumber; + bool m_PageNumberIsSet; + + bool m_IsWhiteLabeled; + bool m_IsWhiteLabeledIsSet; + + bool m_IsProd; + bool m_IsProdIsSet; + + bool m_IsCrawler; + bool m_IsCrawlerIsSet; + + int32_t m_NotificationCount; + bool m_NotificationCountIsSet; + + bool m_HasMore; + bool m_HasMoreIsSet; + + bool m_IsClosed; + bool m_IsClosedIsSet; + + int32_t m_PresencePollState; + bool m_PresencePollStateIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + + utility::string_t m_UrlIdWS; + bool m_UrlIdWSIsSet; + + utility::string_t m_UserIdWS; + bool m_UserIdWSIsSet; + + utility::string_t m_TenantIdWS; + bool m_TenantIdWSIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/Search_200_response.h b/client/include/FastCommentsClient/model/GetCommentsResponse.h similarity index 77% rename from client/include/FastCommentsClient/model/Search_200_response.h rename to client/include/FastCommentsClient/model/GetCommentsResponse.h index 98079a6..cb5857f 100644 --- a/client/include/FastCommentsClient/model/Search_200_response.h +++ b/client/include/FastCommentsClient/model/GetCommentsResponse.h @@ -10,24 +10,23 @@ */ /* - * Search_200_response.h + * GetCommentsResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_Search_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_Search_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponse_H_ #include #include #include "FastCommentsClient/ModelBase.h" -#include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" -#include "FastCommentsClient/model/GifSearchResponse.h" +#include "FastCommentsClient/model/APIComment.h" #include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GifSearchInternalError.h" #include +#include "FastCommentsClient/model/APIGetCommentsResponse.h" #include #include "FastCommentsClient/model/APIError.h" #include "FastCommentsClient/model/APIStatus.h" @@ -37,15 +36,16 @@ namespace openapitools { namespace client { namespace model { +class APIComment; class CustomConfigParameters; -class Search_200_response +class GetCommentsResponse : public ModelBase { public: - Search_200_response(); - virtual ~Search_200_response(); + GetCommentsResponse(); + virtual ~GetCommentsResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -60,29 +60,29 @@ class Search_200_response ///////////////////////////////////////////// - /// Search_200_response members + /// GetCommentsResponse members - std::vector>> getImages() const; - bool imagesIsSet() const; - void unsetImages(); - void setImages(const std::vector>>& value); - std::shared_ptr getStatus() const; bool statusIsSet() const; void unsetStatus(); void setStatus(const std::shared_ptr& value); - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); + std::vector> getComments() const; + bool commentsIsSet() const; + void unsetComments(); + void setComments(const std::vector>& value); utility::string_t getReason() const; bool reasonIsSet() const; void unsetReason(); void setReason(const utility::string_t& value); + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + utility::string_t getSecondaryCode() const; bool secondaryCodeIsSet() const; void unsetSecondaryCode(); @@ -110,18 +110,18 @@ class Search_200_response protected: - std::vector>> m_Images; - bool m_ImagesIsSet; - std::shared_ptr m_Status; bool m_StatusIsSet; - utility::string_t m_Code; - bool m_CodeIsSet; + std::vector> m_Comments; + bool m_CommentsIsSet; utility::string_t m_Reason; bool m_ReasonIsSet; + utility::string_t m_Code; + bool m_CodeIsSet; + utility::string_t m_SecondaryCode; bool m_SecondaryCodeIsSet; @@ -145,4 +145,4 @@ class Search_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_Search_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCountResponse.h b/client/include/FastCommentsClient/model/GetCountResponse.h new file mode 100644 index 0000000..b3d0658 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCountResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCountResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationAPICountCommentsResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetCountResponse + : public ModelBase +{ +public: + GetCountResponse(); + virtual ~GetCountResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCountResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + double getCount() const; + bool countIsSet() const; + void unsetCount(); + void setCount(double value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + double m_Count; + bool m_CountIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCountsResponse.h b/client/include/FastCommentsClient/model/GetCountsResponse.h new file mode 100644 index 0000000..ec1be4b --- /dev/null +++ b/client/include/FastCommentsClient/model/GetCountsResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetCountsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountsResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetBannedUsersCountResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetCountsResponse + : public ModelBase +{ +public: + GetCountsResponse(); + virtual ~GetCountsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetCountsResponse members + + + double getTotalCount() const; + bool totalCountIsSet() const; + void unsetTotalCount(); + void setTotalCount(double value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + double m_TotalCount; + bool m_TotalCountIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h b/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h new file mode 100644 index 0000000..bc4144e --- /dev/null +++ b/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetEmailTemplateDefinitionsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitionsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitionsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h" +#include "FastCommentsClient/model/EmailTemplateDefinition.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class EmailTemplateDefinition; +class CustomConfigParameters; + + +class GetEmailTemplateDefinitionsResponse_1 + : public ModelBase +{ +public: + GetEmailTemplateDefinitionsResponse_1(); + virtual ~GetEmailTemplateDefinitionsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetEmailTemplateDefinitionsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getDefinitions() const; + bool definitionsIsSet() const; + void unsetDefinitions(); + void setDefinitions(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_Definitions; + bool m_DefinitionsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitionsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h b/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h new file mode 100644 index 0000000..d2ddda3 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetEmailTemplateRenderErrorsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrorsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrorsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/EmailTemplateRenderErrorResponse.h" +#include "FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class EmailTemplateRenderErrorResponse; +class CustomConfigParameters; + + +class GetEmailTemplateRenderErrorsResponse_1 + : public ModelBase +{ +public: + GetEmailTemplateRenderErrorsResponse_1(); + virtual ~GetEmailTemplateRenderErrorsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetEmailTemplateRenderErrorsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getRenderErrors() const; + bool renderErrorsIsSet() const; + void unsetRenderErrors(); + void setRenderErrors(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_RenderErrors; + bool m_RenderErrorsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrorsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateResponse_1.h b/client/include/FastCommentsClient/model/GetEmailTemplateResponse_1.h new file mode 100644 index 0000000..093bcd8 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetEmailTemplateResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetEmailTemplateResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetEmailTemplateResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/CustomEmailTemplate.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomEmailTemplate; +class CustomConfigParameters; + + +class GetEmailTemplateResponse_1 + : public ModelBase +{ +public: + GetEmailTemplateResponse_1(); + virtual ~GetEmailTemplateResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetEmailTemplateResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getEmailTemplate() const; + bool emailTemplateIsSet() const; + void unsetEmailTemplate(); + void setEmailTemplate(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_EmailTemplate; + bool m_EmailTemplateIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplatesResponse_1.h b/client/include/FastCommentsClient/model/GetEmailTemplatesResponse_1.h new file mode 100644 index 0000000..674c212 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetEmailTemplatesResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetEmailTemplatesResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplatesResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplatesResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetEmailTemplatesResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/CustomEmailTemplate.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomEmailTemplate; +class CustomConfigParameters; + + +class GetEmailTemplatesResponse_1 + : public ModelBase +{ +public: + GetEmailTemplatesResponse_1(); + virtual ~GetEmailTemplatesResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetEmailTemplatesResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getEmailTemplates() const; + bool emailTemplatesIsSet() const; + void unsetEmailTemplates(); + void setEmailTemplates(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_EmailTemplates; + bool m_EmailTemplatesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplatesResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEventLogResponse_1.h b/client/include/FastCommentsClient/model/GetEventLogResponse_1.h new file mode 100644 index 0000000..ba3ab5a --- /dev/null +++ b/client/include/FastCommentsClient/model/GetEventLogResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetEventLogResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLogResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLogResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/EventLogEntry.h" +#include "FastCommentsClient/model/GetEventLogResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class EventLogEntry; +class CustomConfigParameters; + + +class GetEventLogResponse_1 + : public ModelBase +{ +public: + GetEventLogResponse_1(); + virtual ~GetEventLogResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetEventLogResponse_1 members + + + std::vector> getEvents() const; + bool eventsIsSet() const; + void unsetEvents(); + void setEvents(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Events; + bool m_EventsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLogResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetFeedPostsPublicResponse.h b/client/include/FastCommentsClient/model/GetFeedPostsPublicResponse.h new file mode 100644 index 0000000..5f2a3c1 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetFeedPostsPublicResponse.h @@ -0,0 +1,190 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetFeedPostsPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UserSessionInfo.h" +#include "FastCommentsClient/model/PublicFeedPostsResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/FeedPost.h" +#include +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class FeedPost; +class UserSessionInfo; +class CustomConfigParameters; + + +class GetFeedPostsPublicResponse + : public ModelBase +{ +public: + GetFeedPostsPublicResponse(); + virtual ~GetFeedPostsPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetFeedPostsPublicResponse members + + + std::map> getMyReacts() const; + bool myReactsIsSet() const; + void unsetMyReacts(); + void setMyReacts(const std::map>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getFeedPosts() const; + bool feedPostsIsSet() const; + void unsetFeedPosts(); + void setFeedPosts(const std::vector>& value); + + std::shared_ptr getUser() const; + bool userIsSet() const; + void unsetUser(); + void setUser(const std::shared_ptr& value); + + utility::string_t getUrlIdWS() const; + bool urlIdWSIsSet() const; + void unsetUrlIdWS(); + void setUrlIdWS(const utility::string_t& value); + + utility::string_t getUserIdWS() const; + bool userIdWSIsSet() const; + void unsetUserIdWS(); + void setUserIdWS(const utility::string_t& value); + + utility::string_t getTenantIdWS() const; + bool tenantIdWSIsSet() const; + void unsetTenantIdWS(); + void setTenantIdWS(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::map> m_MyReacts; + bool m_MyReactsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_FeedPosts; + bool m_FeedPostsIsSet; + + boost::optional> m_User; + + utility::string_t m_UrlIdWS; + bool m_UrlIdWSIsSet; + + utility::string_t m_UserIdWS; + bool m_UserIdWSIsSet; + + utility::string_t m_TenantIdWS; + bool m_TenantIdWSIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetFeedPostsResponse_1.h b/client/include/FastCommentsClient/model/GetFeedPostsResponse_1.h new file mode 100644 index 0000000..2faa350 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetFeedPostsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetFeedPostsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/FeedPost.h" +#include +#include "FastCommentsClient/model/GetFeedPostsResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class FeedPost; +class CustomConfigParameters; + + +class GetFeedPostsResponse_1 + : public ModelBase +{ +public: + GetFeedPostsResponse_1(); + virtual ~GetFeedPostsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetFeedPostsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getFeedPosts() const; + bool feedPostsIsSet() const; + void unsetFeedPosts(); + void setFeedPosts(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_FeedPosts; + bool m_FeedPostsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetFeedPostsStatsResponse.h b/client/include/FastCommentsClient/model/GetFeedPostsStatsResponse.h new file mode 100644 index 0000000..82372aa --- /dev/null +++ b/client/include/FastCommentsClient/model/GetFeedPostsStatsResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetFeedPostsStatsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsStatsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsStatsResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/FeedPostsStatsResponse.h" +#include +#include "FastCommentsClient/model/FeedPostStats.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class FeedPostStats; +class CustomConfigParameters; + + +class GetFeedPostsStatsResponse + : public ModelBase +{ +public: + GetFeedPostsStatsResponse(); + virtual ~GetFeedPostsStatsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetFeedPostsStatsResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::map> getStats() const; + bool statsIsSet() const; + void unsetStats(); + void setStats(const std::map>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::map> m_Stats; + bool m_StatsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsStatsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetLarge_200_response.h b/client/include/FastCommentsClient/model/GetGifLargeResponse.h similarity index 90% rename from client/include/FastCommentsClient/model/GetLarge_200_response.h rename to client/include/FastCommentsClient/model/GetGifLargeResponse.h index 9a52d22..273a9fa 100644 --- a/client/include/FastCommentsClient/model/GetLarge_200_response.h +++ b/client/include/FastCommentsClient/model/GetGifLargeResponse.h @@ -10,13 +10,13 @@ */ /* - * GetLarge_200_response.h + * GetGifLargeResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetLarge_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetLarge_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifLargeResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifLargeResponse_H_ #include #include @@ -37,12 +37,12 @@ namespace model { class CustomConfigParameters; -class GetLarge_200_response +class GetGifLargeResponse : public ModelBase { public: - GetLarge_200_response(); - virtual ~GetLarge_200_response(); + GetGifLargeResponse(); + virtual ~GetGifLargeResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -57,7 +57,7 @@ class GetLarge_200_response ///////////////////////////////////////////// - /// GetLarge_200_response members + /// GetGifLargeResponse members utility::string_t getSrc() const; @@ -142,4 +142,4 @@ class GetLarge_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetLarge_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifLargeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetGifsSearchResponse.h b/client/include/FastCommentsClient/model/GetGifsSearchResponse.h index 8f2f253..d1934c5 100644 --- a/client/include/FastCommentsClient/model/GetGifsSearchResponse.h +++ b/client/include/FastCommentsClient/model/GetGifsSearchResponse.h @@ -25,9 +25,11 @@ #include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" #include "FastCommentsClient/model/GifSearchResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" #include "FastCommentsClient/model/GifSearchInternalError.h" #include #include +#include "FastCommentsClient/model/APIError.h" #include "FastCommentsClient/model/APIStatus.h" namespace org { @@ -35,6 +37,7 @@ namespace openapitools { namespace client { namespace model { +class CustomConfigParameters; class GetGifsSearchResponse @@ -75,6 +78,36 @@ class GetGifsSearchResponse void unsetCode(); void setCode(const utility::string_t& value); + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + protected: std::vector>> m_Images; @@ -86,6 +119,24 @@ class GetGifsSearchResponse utility::string_t m_Code; bool m_CodeIsSet; + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + }; diff --git a/client/include/FastCommentsClient/model/GetGlobalEventLogResponse.h b/client/include/FastCommentsClient/model/GetGlobalEventLogResponse.h new file mode 100644 index 0000000..d1d12e2 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetGlobalEventLogResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetGlobalEventLogResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetGlobalEventLogResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetGlobalEventLogResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/EventLogEntry.h" +#include "FastCommentsClient/model/GetEventLogResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class EventLogEntry; +class CustomConfigParameters; + + +class GetGlobalEventLogResponse + : public ModelBase +{ +public: + GetGlobalEventLogResponse(); + virtual ~GetGlobalEventLogResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetGlobalEventLogResponse members + + + std::vector> getEvents() const; + bool eventsIsSet() const; + void unsetEvents(); + void setEvents(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Events; + bool m_EventsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetGlobalEventLogResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetHashTagsResponse_1.h b/client/include/FastCommentsClient/model/GetHashTagsResponse_1.h new file mode 100644 index 0000000..3d7fc9e --- /dev/null +++ b/client/include/FastCommentsClient/model/GetHashTagsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetHashTagsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTagsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTagsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/TenantHashTag.h" +#include "FastCommentsClient/model/GetHashTagsResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class TenantHashTag; +class CustomConfigParameters; + + +class GetHashTagsResponse_1 + : public ModelBase +{ +public: + GetHashTagsResponse_1(); + virtual ~GetHashTagsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetHashTagsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getHashTags() const; + bool hashTagsIsSet() const; + void unsetHashTags(); + void setHashTags(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_HashTags; + bool m_HashTagsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTagsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetLogsResponse.h b/client/include/FastCommentsClient/model/GetLogsResponse.h new file mode 100644 index 0000000..4a3649d --- /dev/null +++ b/client/include/FastCommentsClient/model/GetLogsResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetLogsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetLogsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetLogsResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/ModerationAPICommentLog.h" +#include +#include "FastCommentsClient/model/ModerationAPIGetLogsResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationAPICommentLog; +class CustomConfigParameters; + + +class GetLogsResponse + : public ModelBase +{ +public: + GetLogsResponse(); + virtual ~GetLogsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetLogsResponse members + + + std::vector> getLogs() const; + bool logsIsSet() const; + void unsetLogs(); + void setLogs(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Logs; + bool m_LogsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetLogsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetManualBadgesForUserResponse.h b/client/include/FastCommentsClient/model/GetManualBadgesForUserResponse.h new file mode 100644 index 0000000..9196f40 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetManualBadgesForUserResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetManualBadgesForUserResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesForUserResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesForUserResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UserBadge.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetUserManualBadgesResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserBadge; +class CustomConfigParameters; + + +class GetManualBadgesForUserResponse + : public ModelBase +{ +public: + GetManualBadgesForUserResponse(); + virtual ~GetManualBadgesForUserResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetManualBadgesForUserResponse members + + + std::vector> getBadges() const; + bool badgesIsSet() const; + void unsetBadges(); + void setBadges(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Badges; + bool m_BadgesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesForUserResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetManualBadgesResponse.h b/client/include/FastCommentsClient/model/GetManualBadgesResponse.h new file mode 100644 index 0000000..a072e72 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetManualBadgesResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetManualBadgesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/GetTenantManualBadgesResponse.h" +#include "FastCommentsClient/model/TenantBadge.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class TenantBadge; +class CustomConfigParameters; + + +class GetManualBadgesResponse + : public ModelBase +{ +public: + GetManualBadgesResponse(); + virtual ~GetManualBadgesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetManualBadgesResponse members + + + std::vector> getBadges() const; + bool badgesIsSet() const; + void unsetBadges(); + void setBadges(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Badges; + bool m_BadgesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetModerationCommentResponse.h b/client/include/FastCommentsClient/model/GetModerationCommentResponse.h new file mode 100644 index 0000000..83117b3 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetModerationCommentResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetModerationCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationAPIComment.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/ModerationAPICommentResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationAPIComment; +class CustomConfigParameters; + + +class GetModerationCommentResponse + : public ModelBase +{ +public: + GetModerationCommentResponse(); + virtual ~GetModerationCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetModerationCommentResponse members + + + std::shared_ptr getComment() const; + bool commentIsSet() const; + void unsetComment(); + void setComment(const std::shared_ptr& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Comment; + bool m_CommentIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetModerationCommentTextResponse.h b/client/include/FastCommentsClient/model/GetModerationCommentTextResponse.h new file mode 100644 index 0000000..c66a30b --- /dev/null +++ b/client/include/FastCommentsClient/model/GetModerationCommentTextResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetModerationCommentTextResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentTextResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentTextResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetCommentTextResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetModerationCommentTextResponse + : public ModelBase +{ +public: + GetModerationCommentTextResponse(); + virtual ~GetModerationCommentTextResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetModerationCommentTextResponse members + + + utility::string_t getComment() const; + bool commentIsSet() const; + void unsetComment(); + void setComment(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + boost::optional m_Comment; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentTextResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetModeratorResponse_1.h b/client/include/FastCommentsClient/model/GetModeratorResponse_1.h new file mode 100644 index 0000000..66a2fdd --- /dev/null +++ b/client/include/FastCommentsClient/model/GetModeratorResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetModeratorResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetModeratorResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/Moderator.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class Moderator; +class CustomConfigParameters; + + +class GetModeratorResponse_1 + : public ModelBase +{ +public: + GetModeratorResponse_1(); + virtual ~GetModeratorResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetModeratorResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getModerator() const; + bool moderatorIsSet() const; + void unsetModerator(); + void setModerator(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Moderator; + bool m_ModeratorIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetModeratorsResponse_1.h b/client/include/FastCommentsClient/model/GetModeratorsResponse_1.h new file mode 100644 index 0000000..db595d3 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetModeratorsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetModeratorsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/GetModeratorsResponse.h" +#include +#include "FastCommentsClient/model/Moderator.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class Moderator; +class CustomConfigParameters; + + +class GetModeratorsResponse_1 + : public ModelBase +{ +public: + GetModeratorsResponse_1(); + virtual ~GetModeratorsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetModeratorsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getModerators() const; + bool moderatorsIsSet() const; + void unsetModerators(); + void setModerators(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_Moderators; + bool m_ModeratorsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetNotificationCountResponse_1.h b/client/include/FastCommentsClient/model/GetNotificationCountResponse_1.h new file mode 100644 index 0000000..278332f --- /dev/null +++ b/client/include/FastCommentsClient/model/GetNotificationCountResponse_1.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetNotificationCountResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCountResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCountResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetNotificationCountResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetNotificationCountResponse_1 + : public ModelBase +{ +public: + GetNotificationCountResponse_1(); + virtual ~GetNotificationCountResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetNotificationCountResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + double getCount() const; + bool countIsSet() const; + void unsetCount(); + void setCount(double value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + double m_Count; + bool m_CountIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCountResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetNotificationsResponse_1.h b/client/include/FastCommentsClient/model/GetNotificationsResponse_1.h new file mode 100644 index 0000000..0295e68 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetNotificationsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetNotificationsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetNotificationsResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/UserNotification.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserNotification; +class CustomConfigParameters; + + +class GetNotificationsResponse_1 + : public ModelBase +{ +public: + GetNotificationsResponse_1(); + virtual ~GetNotificationsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetNotificationsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getNotifications() const; + bool notificationsIsSet() const; + void unsetNotifications(); + void setNotifications(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_Notifications; + bool m_NotificationsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetOfflineUsersResponse.h b/client/include/FastCommentsClient/model/GetOfflineUsersResponse.h new file mode 100644 index 0000000..6b80ef4 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetOfflineUsersResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetOfflineUsersResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetOfflineUsersResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetOfflineUsersResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/PageUsersOfflineResponse.h" +#include "FastCommentsClient/model/PageUserEntry.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PageUserEntry; +class CustomConfigParameters; + + +class GetOfflineUsersResponse + : public ModelBase +{ +public: + GetOfflineUsersResponse(); + virtual ~GetOfflineUsersResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetOfflineUsersResponse members + + + utility::string_t getNextAfterUserId() const; + bool nextAfterUserIdIsSet() const; + void unsetNextAfterUserId(); + void setNextAfterUserId(const utility::string_t& value); + + utility::string_t getNextAfterName() const; + bool nextAfterNameIsSet() const; + void unsetNextAfterName(); + void setNextAfterName(const utility::string_t& value); + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + boost::optional m_NextAfterUserId; + + boost::optional m_NextAfterName; + + std::vector> m_Users; + bool m_UsersIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetOfflineUsersResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetOnlineUsersResponse.h b/client/include/FastCommentsClient/model/GetOnlineUsersResponse.h new file mode 100644 index 0000000..b2a8da4 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetOnlineUsersResponse.h @@ -0,0 +1,178 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetOnlineUsersResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetOnlineUsersResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetOnlineUsersResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/PageUsersOnlineResponse.h" +#include "FastCommentsClient/model/PageUserEntry.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PageUserEntry; +class CustomConfigParameters; + + +class GetOnlineUsersResponse + : public ModelBase +{ +public: + GetOnlineUsersResponse(); + virtual ~GetOnlineUsersResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetOnlineUsersResponse members + + + utility::string_t getNextAfterUserId() const; + bool nextAfterUserIdIsSet() const; + void unsetNextAfterUserId(); + void setNextAfterUserId(const utility::string_t& value); + + utility::string_t getNextAfterName() const; + bool nextAfterNameIsSet() const; + void unsetNextAfterName(); + void setNextAfterName(const utility::string_t& value); + + double getTotalCount() const; + bool totalCountIsSet() const; + void unsetTotalCount(); + void setTotalCount(double value); + + double getAnonCount() const; + bool anonCountIsSet() const; + void unsetAnonCount(); + void setAnonCount(double value); + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + boost::optional m_NextAfterUserId; + + boost::optional m_NextAfterName; + + double m_TotalCount; + bool m_TotalCountIsSet; + + double m_AnonCount; + bool m_AnonCountIsSet; + + std::vector> m_Users; + bool m_UsersIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetOnlineUsersResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPagesPublic_200_response.h b/client/include/FastCommentsClient/model/GetPagesPublicResponse.h similarity index 90% rename from client/include/FastCommentsClient/model/GetPagesPublic_200_response.h rename to client/include/FastCommentsClient/model/GetPagesPublicResponse.h index 58fb419..7ca19d0 100644 --- a/client/include/FastCommentsClient/model/GetPagesPublic_200_response.h +++ b/client/include/FastCommentsClient/model/GetPagesPublicResponse.h @@ -10,13 +10,13 @@ */ /* - * GetPagesPublic_200_response.h + * GetPagesPublicResponse.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublic_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublicResponse_H_ #include #include @@ -40,12 +40,12 @@ class PublicPage; class CustomConfigParameters; -class GetPagesPublic_200_response +class GetPagesPublicResponse : public ModelBase { public: - GetPagesPublic_200_response(); - virtual ~GetPagesPublic_200_response(); + GetPagesPublicResponse(); + virtual ~GetPagesPublicResponse(); ///////////////////////////////////////////// /// ModelBase overrides @@ -60,7 +60,7 @@ class GetPagesPublic_200_response ///////////////////////////////////////////// - /// GetPagesPublic_200_response members + /// GetPagesPublicResponse members utility::string_t getNextCursor() const; @@ -152,4 +152,4 @@ class GetPagesPublic_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublic_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h new file mode 100644 index 0000000..2c937a6 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetPendingWebhookEventCountResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCountResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCountResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetPendingWebhookEventCountResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetPendingWebhookEventCountResponse_1 + : public ModelBase +{ +public: + GetPendingWebhookEventCountResponse_1(); + virtual ~GetPendingWebhookEventCountResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetPendingWebhookEventCountResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + double getCount() const; + bool countIsSet() const; + void unsetCount(); + void setCount(double value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + double m_Count; + bool m_CountIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCountResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h new file mode 100644 index 0000000..4431d1a --- /dev/null +++ b/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetPendingWebhookEventsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/PendingCommentToSyncOutbound.h" +#include "FastCommentsClient/model/GetPendingWebhookEventsResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PendingCommentToSyncOutbound; +class CustomConfigParameters; + + +class GetPendingWebhookEventsResponse_1 + : public ModelBase +{ +public: + GetPendingWebhookEventsResponse_1(); + virtual ~GetPendingWebhookEventsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetPendingWebhookEventsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getPendingWebhookEvents() const; + bool pendingWebhookEventsIsSet() const; + void unsetPendingWebhookEvents(); + void setPendingWebhookEvents(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_PendingWebhookEvents; + bool m_PendingWebhookEventsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPreBanSummaryResponse.h b/client/include/FastCommentsClient/model/GetPreBanSummaryResponse.h new file mode 100644 index 0000000..5507cb2 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetPreBanSummaryResponse.h @@ -0,0 +1,154 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetPreBanSummaryResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPreBanSummaryResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPreBanSummaryResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/PreBanSummary.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetPreBanSummaryResponse + : public ModelBase +{ +public: + GetPreBanSummaryResponse(); + virtual ~GetPreBanSummaryResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetPreBanSummaryResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector getUsernames() const; + bool usernamesIsSet() const; + void unsetUsernames(); + void setUsernames(const std::vector& value); + + double getCount() const; + bool countIsSet() const; + void unsetCount(); + void setCount(double value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector m_Usernames; + bool m_UsernamesIsSet; + + double m_Count; + bool m_CountIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPreBanSummaryResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigResponse_1.h b/client/include/FastCommentsClient/model/GetQuestionConfigResponse_1.h new file mode 100644 index 0000000..c963dfd --- /dev/null +++ b/client/include/FastCommentsClient/model/GetQuestionConfigResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetQuestionConfigResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/QuestionConfig.h" +#include "FastCommentsClient/model/GetQuestionConfigResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class QuestionConfig; +class CustomConfigParameters; + + +class GetQuestionConfigResponse_1 + : public ModelBase +{ +public: + GetQuestionConfigResponse_1(); + virtual ~GetQuestionConfigResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetQuestionConfigResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getQuestionConfig() const; + bool questionConfigIsSet() const; + void unsetQuestionConfig(); + void setQuestionConfig(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_QuestionConfig; + bool m_QuestionConfigIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigsResponse_1.h b/client/include/FastCommentsClient/model/GetQuestionConfigsResponse_1.h new file mode 100644 index 0000000..e747a54 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetQuestionConfigsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetQuestionConfigsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/QuestionConfig.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/GetQuestionConfigsResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class QuestionConfig; +class CustomConfigParameters; + + +class GetQuestionConfigsResponse_1 + : public ModelBase +{ +public: + GetQuestionConfigsResponse_1(); + virtual ~GetQuestionConfigsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetQuestionConfigsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getQuestionConfigs() const; + bool questionConfigsIsSet() const; + void unsetQuestionConfigs(); + void setQuestionConfigs(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_QuestionConfigs; + bool m_QuestionConfigsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionResultResponse_1.h b/client/include/FastCommentsClient/model/GetQuestionResultResponse_1.h new file mode 100644 index 0000000..a250059 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetQuestionResultResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetQuestionResultResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetQuestionResultResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/QuestionResult.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class QuestionResult; +class CustomConfigParameters; + + +class GetQuestionResultResponse_1 + : public ModelBase +{ +public: + GetQuestionResultResponse_1(); + virtual ~GetQuestionResultResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetQuestionResultResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getQuestionResult() const; + bool questionResultIsSet() const; + void unsetQuestionResult(); + void setQuestionResult(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_QuestionResult; + bool m_QuestionResultIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionResultsResponse_1.h b/client/include/FastCommentsClient/model/GetQuestionResultsResponse_1.h new file mode 100644 index 0000000..c733336 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetQuestionResultsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetQuestionResultsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetQuestionResultsResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/QuestionResult.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class QuestionResult; +class CustomConfigParameters; + + +class GetQuestionResultsResponse_1 + : public ModelBase +{ +public: + GetQuestionResultsResponse_1(); + virtual ~GetQuestionResultsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetQuestionResultsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getQuestionResults() const; + bool questionResultsIsSet() const; + void unsetQuestionResults(); + void setQuestionResults(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_QuestionResults; + bool m_QuestionResultsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSearchCommentsSummaryResponse.h b/client/include/FastCommentsClient/model/GetSearchCommentsSummaryResponse.h new file mode 100644 index 0000000..3bac150 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetSearchCommentsSummaryResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetSearchCommentsSummaryResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchCommentsSummaryResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchCommentsSummaryResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationCommentSearchResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetSearchCommentsSummaryResponse + : public ModelBase +{ +public: + GetSearchCommentsSummaryResponse(); + virtual ~GetSearchCommentsSummaryResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetSearchCommentsSummaryResponse members + + + int32_t getCommentCount() const; + bool commentCountIsSet() const; + void unsetCommentCount(); + void setCommentCount(int32_t value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + int32_t m_CommentCount; + bool m_CommentCountIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchCommentsSummaryResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSearchPagesResponse.h b/client/include/FastCommentsClient/model/GetSearchPagesResponse.h new file mode 100644 index 0000000..3c20941 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetSearchPagesResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetSearchPagesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchPagesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchPagesResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationPageSearchResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/ModerationPageSearchProjected.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationPageSearchProjected; +class CustomConfigParameters; + + +class GetSearchPagesResponse + : public ModelBase +{ +public: + GetSearchPagesResponse(); + virtual ~GetSearchPagesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetSearchPagesResponse members + + + std::vector> getPages() const; + bool pagesIsSet() const; + void unsetPages(); + void setPages(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Pages; + bool m_PagesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchPagesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSearchSitesResponse.h b/client/include/FastCommentsClient/model/GetSearchSitesResponse.h new file mode 100644 index 0000000..f47d439 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetSearchSitesResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetSearchSitesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSitesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSitesResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationSiteSearchProjected.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/ModerationSiteSearchResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationSiteSearchProjected; +class CustomConfigParameters; + + +class GetSearchSitesResponse + : public ModelBase +{ +public: + GetSearchSitesResponse(); + virtual ~GetSearchSitesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetSearchSitesResponse members + + + std::vector> getSites() const; + bool sitesIsSet() const; + void unsetSites(); + void setSites(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Sites; + bool m_SitesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSitesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSearchSuggestResponse.h b/client/include/FastCommentsClient/model/GetSearchSuggestResponse.h new file mode 100644 index 0000000..c05c765 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetSearchSuggestResponse.h @@ -0,0 +1,158 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetSearchSuggestResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSuggestResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSuggestResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationUserSearchProjected.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/ModerationSuggestResponse.h" +#include "FastCommentsClient/model/ModerationPageSearchProjected.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationPageSearchProjected; +class ModerationUserSearchProjected; +class CustomConfigParameters; + + +class GetSearchSuggestResponse + : public ModelBase +{ +public: + GetSearchSuggestResponse(); + virtual ~GetSearchSuggestResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetSearchSuggestResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getPages() const; + bool pagesIsSet() const; + void unsetPages(); + void setPages(const std::vector>& value); + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_Pages; + bool m_PagesIsSet; + + std::vector> m_Users; + bool m_UsersIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSuggestResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSearchUsersResponse.h b/client/include/FastCommentsClient/model/GetSearchUsersResponse.h new file mode 100644 index 0000000..f9ba3d7 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetSearchUsersResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetSearchUsersResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchUsersResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchUsersResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationUserSearchProjected.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/ModerationUserSearchResponse.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationUserSearchProjected; +class CustomConfigParameters; + + +class GetSearchUsersResponse + : public ModelBase +{ +public: + GetSearchUsersResponse(); + virtual ~GetSearchUsersResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetSearchUsersResponse members + + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Users; + bool m_UsersIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchUsersResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h b/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h new file mode 100644 index 0000000..ce44327 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTenantDailyUsagesResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsagesResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsagesResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/GetTenantDailyUsagesResponse.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APITenantDailyUsage.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APITenantDailyUsage; +class CustomConfigParameters; + + +class GetTenantDailyUsagesResponse_1 + : public ModelBase +{ +public: + GetTenantDailyUsagesResponse_1(); + virtual ~GetTenantDailyUsagesResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTenantDailyUsagesResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getTenantDailyUsages() const; + bool tenantDailyUsagesIsSet() const; + void unsetTenantDailyUsages(); + void setTenantDailyUsages(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_TenantDailyUsages; + bool m_TenantDailyUsagesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsagesResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantPackageResponse_1.h b/client/include/FastCommentsClient/model/GetTenantPackageResponse_1.h new file mode 100644 index 0000000..5a69aec --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTenantPackageResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTenantPackageResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackageResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackageResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetTenantPackageResponse.h" +#include "FastCommentsClient/model/TenantPackage.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class TenantPackage; +class CustomConfigParameters; + + +class GetTenantPackageResponse_1 + : public ModelBase +{ +public: + GetTenantPackageResponse_1(); + virtual ~GetTenantPackageResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTenantPackageResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTenantPackage() const; + bool tenantPackageIsSet() const; + void unsetTenantPackage(); + void setTenantPackage(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_TenantPackage; + bool m_TenantPackageIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackageResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantPackagesResponse_1.h b/client/include/FastCommentsClient/model/GetTenantPackagesResponse_1.h new file mode 100644 index 0000000..7395609 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTenantPackagesResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTenantPackagesResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackagesResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackagesResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/TenantPackage.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/GetTenantPackagesResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class TenantPackage; +class CustomConfigParameters; + + +class GetTenantPackagesResponse_1 + : public ModelBase +{ +public: + GetTenantPackagesResponse_1(); + virtual ~GetTenantPackagesResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTenantPackagesResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getTenantPackages() const; + bool tenantPackagesIsSet() const; + void unsetTenantPackages(); + void setTenantPackages(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_TenantPackages; + bool m_TenantPackagesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackagesResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantResponse_1.h b/client/include/FastCommentsClient/model/GetTenantResponse_1.h new file mode 100644 index 0000000..0b37c19 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTenantResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTenantResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APITenant.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/GetTenantResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APITenant; +class CustomConfigParameters; + + +class GetTenantResponse_1 + : public ModelBase +{ +public: + GetTenantResponse_1(); + virtual ~GetTenantResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTenantResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTenant() const; + bool tenantIsSet() const; + void unsetTenant(); + void setTenant(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Tenant; + bool m_TenantIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantUserResponse_1.h b/client/include/FastCommentsClient/model/GetTenantUserResponse_1.h new file mode 100644 index 0000000..72b7300 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTenantUserResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTenantUserResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUserResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUserResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/User.h" +#include +#include "FastCommentsClient/model/GetTenantUserResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class User; +class CustomConfigParameters; + + +class GetTenantUserResponse_1 + : public ModelBase +{ +public: + GetTenantUserResponse_1(); + virtual ~GetTenantUserResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTenantUserResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTenantUser() const; + bool tenantUserIsSet() const; + void unsetTenantUser(); + void setTenantUser(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_TenantUser; + bool m_TenantUserIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUserResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantUsersResponse_1.h b/client/include/FastCommentsClient/model/GetTenantUsersResponse_1.h new file mode 100644 index 0000000..eaf0d96 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTenantUsersResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTenantUsersResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsersResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsersResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/User.h" +#include +#include "FastCommentsClient/model/GetTenantUsersResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class User; +class CustomConfigParameters; + + +class GetTenantUsersResponse_1 + : public ModelBase +{ +public: + GetTenantUsersResponse_1(); + virtual ~GetTenantUsersResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTenantUsersResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getTenantUsers() const; + bool tenantUsersIsSet() const; + void unsetTenantUsers(); + void setTenantUsers(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_TenantUsers; + bool m_TenantUsersIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsersResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantsResponse_1.h b/client/include/FastCommentsClient/model/GetTenantsResponse_1.h new file mode 100644 index 0000000..420f0f3 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTenantsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTenantsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APITenant.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetTenantsResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APITenant; +class CustomConfigParameters; + + +class GetTenantsResponse_1 + : public ModelBase +{ +public: + GetTenantsResponse_1(); + virtual ~GetTenantsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTenantsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getTenants() const; + bool tenantsIsSet() const; + void unsetTenants(); + void setTenants(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_Tenants; + bool m_TenantsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTicketResponse_1.h b/client/include/FastCommentsClient/model/GetTicketResponse_1.h new file mode 100644 index 0000000..c4a9661 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTicketResponse_1.h @@ -0,0 +1,156 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTicketResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APITicketDetail.h" +#include "FastCommentsClient/model/GetTicketResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APITicketDetail; +class CustomConfigParameters; + + +class GetTicketResponse_1 + : public ModelBase +{ +public: + GetTicketResponse_1(); + virtual ~GetTicketResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTicketResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getTicket() const; + bool ticketIsSet() const; + void unsetTicket(); + void setTicket(const std::shared_ptr& value); + + std::vector getAvailableStates() const; + bool availableStatesIsSet() const; + void unsetAvailableStates(); + void setAvailableStates(std::vector value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Ticket; + bool m_TicketIsSet; + + std::vector m_AvailableStates; + bool m_AvailableStatesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTicketsResponse_1.h b/client/include/FastCommentsClient/model/GetTicketsResponse_1.h new file mode 100644 index 0000000..8367b53 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTicketsResponse_1.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTicketsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APITicket.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/GetTicketsResponse.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APITicket; +class CustomConfigParameters; + + +class GetTicketsResponse_1 + : public ModelBase +{ +public: + GetTicketsResponse_1(); + virtual ~GetTicketsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTicketsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getTickets() const; + bool ticketsIsSet() const; + void unsetTickets(); + void setTickets(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_Tickets; + bool m_TicketsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTranslations_200_response.h b/client/include/FastCommentsClient/model/GetTranslationsResponse_1.h similarity index 90% rename from client/include/FastCommentsClient/model/GetTranslations_200_response.h rename to client/include/FastCommentsClient/model/GetTranslationsResponse_1.h index 3326975..288357b 100644 --- a/client/include/FastCommentsClient/model/GetTranslations_200_response.h +++ b/client/include/FastCommentsClient/model/GetTranslationsResponse_1.h @@ -10,13 +10,13 @@ */ /* - * GetTranslations_200_response.h + * GetTranslationsResponse_1.h * * */ -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslations_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslations_200_response_H_ +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslationsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslationsResponse_1_H_ #include #include @@ -38,12 +38,12 @@ namespace model { class CustomConfigParameters; -class GetTranslations_200_response +class GetTranslationsResponse_1 : public ModelBase { public: - GetTranslations_200_response(); - virtual ~GetTranslations_200_response(); + GetTranslationsResponse_1(); + virtual ~GetTranslationsResponse_1(); ///////////////////////////////////////////// /// ModelBase overrides @@ -58,7 +58,7 @@ class GetTranslations_200_response ///////////////////////////////////////////// - /// GetTranslations_200_response members + /// GetTranslationsResponse_1 members /// @@ -146,4 +146,4 @@ class GetTranslations_200_response } } -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslations_200_response_H_ */ +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslationsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTrustFactorResponse.h b/client/include/FastCommentsClient/model/GetTrustFactorResponse.h new file mode 100644 index 0000000..15ad825 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetTrustFactorResponse.h @@ -0,0 +1,153 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetTrustFactorResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrustFactorResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrustFactorResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetUserTrustFactorResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetTrustFactorResponse + : public ModelBase +{ +public: + GetTrustFactorResponse(); + virtual ~GetTrustFactorResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetTrustFactorResponse members + + + double getManualTrustFactor() const; + bool manualTrustFactorIsSet() const; + void unsetManualTrustFactor(); + void setManualTrustFactor(double value); + + double getAutoTrustFactor() const; + bool autoTrustFactorIsSet() const; + void unsetAutoTrustFactor(); + void setAutoTrustFactor(double value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + double m_ManualTrustFactor; + bool m_ManualTrustFactorIsSet; + + double m_AutoTrustFactor; + bool m_AutoTrustFactorIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrustFactorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h b/client/include/FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h new file mode 100644 index 0000000..913a903 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserBadgeProgressByIdResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByIdResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByIdResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/UserBadgeProgress.h" +#include "FastCommentsClient/model/APIGetUserBadgeProgressResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserBadgeProgress; +class CustomConfigParameters; + + +class GetUserBadgeProgressByIdResponse + : public ModelBase +{ +public: + GetUserBadgeProgressByIdResponse(); + virtual ~GetUserBadgeProgressByIdResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserBadgeProgressByIdResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getUserBadgeProgress() const; + bool userBadgeProgressIsSet() const; + void unsetUserBadgeProgress(); + void setUserBadgeProgress(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_UserBadgeProgress; + bool m_UserBadgeProgressIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByIdResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h b/client/include/FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h new file mode 100644 index 0000000..104aa21 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserBadgeProgressByUserIdResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByUserIdResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByUserIdResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/UserBadgeProgress.h" +#include "FastCommentsClient/model/APIGetUserBadgeProgressResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserBadgeProgress; +class CustomConfigParameters; + + +class GetUserBadgeProgressByUserIdResponse + : public ModelBase +{ +public: + GetUserBadgeProgressByUserIdResponse(); + virtual ~GetUserBadgeProgressByUserIdResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserBadgeProgressByUserIdResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getUserBadgeProgress() const; + bool userBadgeProgressIsSet() const; + void unsetUserBadgeProgress(); + void setUserBadgeProgress(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_UserBadgeProgress; + bool m_UserBadgeProgressIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByUserIdResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgeProgressListResponse.h b/client/include/FastCommentsClient/model/GetUserBadgeProgressListResponse.h new file mode 100644 index 0000000..8f76075 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserBadgeProgressListResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserBadgeProgressListResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressListResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressListResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/UserBadgeProgress.h" +#include +#include "FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserBadgeProgress; +class CustomConfigParameters; + + +class GetUserBadgeProgressListResponse + : public ModelBase +{ +public: + GetUserBadgeProgressListResponse(); + virtual ~GetUserBadgeProgressListResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserBadgeProgressListResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getUserBadgeProgresses() const; + bool userBadgeProgressesIsSet() const; + void unsetUserBadgeProgresses(); + void setUserBadgeProgresses(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_UserBadgeProgresses; + bool m_UserBadgeProgressesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressListResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgeResponse.h b/client/include/FastCommentsClient/model/GetUserBadgeResponse.h new file mode 100644 index 0000000..e924ae9 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserBadgeResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserBadgeResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UserBadge.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIGetUserBadgeResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserBadge; +class CustomConfigParameters; + + +class GetUserBadgeResponse + : public ModelBase +{ +public: + GetUserBadgeResponse(); + virtual ~GetUserBadgeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserBadgeResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getUserBadge() const; + bool userBadgeIsSet() const; + void unsetUserBadge(); + void setUserBadge(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_UserBadge; + bool m_UserBadgeIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgesResponse.h b/client/include/FastCommentsClient/model/GetUserBadgesResponse.h new file mode 100644 index 0000000..cb6372e --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserBadgesResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserBadgesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgesResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UserBadge.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/APIGetUserBadgesResponse.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserBadge; +class CustomConfigParameters; + + +class GetUserBadgesResponse + : public ModelBase +{ +public: + GetUserBadgesResponse(); + virtual ~GetUserBadgesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserBadgesResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getUserBadges() const; + bool userBadgesIsSet() const; + void unsetUserBadges(); + void setUserBadges(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_UserBadges; + bool m_UserBadgesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBanPreferenceResponse.h b/client/include/FastCommentsClient/model/GetUserBanPreferenceResponse.h new file mode 100644 index 0000000..d8de0f3 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserBanPreferenceResponse.h @@ -0,0 +1,146 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserBanPreferenceResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBanPreferenceResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBanPreferenceResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIModerateUserBanPreferences.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIModerateUserBanPreferences; +class CustomConfigParameters; + + +class GetUserBanPreferenceResponse + : public ModelBase +{ +public: + GetUserBanPreferenceResponse(); + virtual ~GetUserBanPreferenceResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserBanPreferenceResponse members + + + std::shared_ptr getPreferences() const; + bool preferencesIsSet() const; + void unsetPreferences(); + void setPreferences(const std::shared_ptr& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + boost::optional> m_Preferences; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBanPreferenceResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_1.h b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_1.h new file mode 100644 index 0000000..41c47e0 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserInternalProfileResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetUserInternalProfileResponse.h" +#include "FastCommentsClient/model/GetUserInternalProfileResponse_profile.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class GetUserInternalProfileResponse_profile; +class CustomConfigParameters; + + +class GetUserInternalProfileResponse_1 + : public ModelBase +{ +public: + GetUserInternalProfileResponse_1(); + virtual ~GetUserInternalProfileResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserInternalProfileResponse_1 members + + + std::shared_ptr getProfile() const; + bool profileIsSet() const; + void unsetProfile(); + void setProfile(const std::shared_ptr& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Profile; + bool m_ProfileIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserNotificationCountResponse_1.h b/client/include/FastCommentsClient/model/GetUserNotificationCountResponse_1.h new file mode 100644 index 0000000..5af8504 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserNotificationCountResponse_1.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserNotificationCountResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCountResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCountResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/GetUserNotificationCountResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetUserNotificationCountResponse_1 + : public ModelBase +{ +public: + GetUserNotificationCountResponse_1(); + virtual ~GetUserNotificationCountResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserNotificationCountResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + int64_t getCount() const; + bool countIsSet() const; + void unsetCount(); + void setCount(int64_t value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + int64_t m_Count; + bool m_CountIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCountResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserNotificationsResponse.h b/client/include/FastCommentsClient/model/GetUserNotificationsResponse.h new file mode 100644 index 0000000..1b16112 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserNotificationsResponse.h @@ -0,0 +1,176 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserNotificationsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationsResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/GetMyNotificationsResponse.h" +#include +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/RenderableUserNotification.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class RenderableUserNotification; +class CustomConfigParameters; + + +class GetUserNotificationsResponse + : public ModelBase +{ +public: + GetUserNotificationsResponse(); + virtual ~GetUserNotificationsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserNotificationsResponse members + + + /// + /// Construct a type with a set of properties K of type T + /// + std::map getTranslations() const; + bool translationsIsSet() const; + void unsetTranslations(); + void setTranslations(const std::map& value); + + bool isIsSubscribed() const; + bool isSubscribedIsSet() const; + void unsetIsSubscribed(); + void setIsSubscribed(bool value); + + bool isHasMore() const; + bool hasMoreIsSet() const; + void unsetHasMore(); + void setHasMore(bool value); + + std::vector> getNotifications() const; + bool notificationsIsSet() const; + void unsetNotifications(); + void setNotifications(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::map m_Translations; + bool m_TranslationsIsSet; + + bool m_IsSubscribed; + bool m_IsSubscribedIsSet; + + bool m_HasMore; + bool m_HasMoreIsSet; + + std::vector> m_Notifications; + bool m_NotificationsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h b/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h new file mode 100644 index 0000000..b90cf1f --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h @@ -0,0 +1,149 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserPresenceStatusesResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatusesResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatusesResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/GetUserPresenceStatusesResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetUserPresenceStatusesResponse_1 + : public ModelBase +{ +public: + GetUserPresenceStatusesResponse_1(); + virtual ~GetUserPresenceStatusesResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserPresenceStatusesResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map getUserIdsOnline() const; + bool userIdsOnlineIsSet() const; + void unsetUserIdsOnline(); + void setUserIdsOnline(std::map value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::map m_UserIdsOnline; + bool m_UserIdsOnlineIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatusesResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserReactsPublicResponse.h b/client/include/FastCommentsClient/model/GetUserReactsPublicResponse.h new file mode 100644 index 0000000..74b843c --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserReactsPublicResponse.h @@ -0,0 +1,146 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserReactsPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserReactsPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserReactsPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/UserReactsResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetUserReactsPublicResponse + : public ModelBase +{ +public: + GetUserReactsPublicResponse(); + virtual ~GetUserReactsPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserReactsPublicResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::map> getReacts() const; + bool reactsIsSet() const; + void unsetReacts(); + void setReacts(const std::map>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::map> m_Reacts; + bool m_ReactsIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserReactsPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserResponse_1.h b/client/include/FastCommentsClient/model/GetUserResponse_1.h new file mode 100644 index 0000000..e4e2a58 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUserResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUserResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/User.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/GetUserResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class User; +class CustomConfigParameters; + + +class GetUserResponse_1 + : public ModelBase +{ +public: + GetUserResponse_1(); + virtual ~GetUserResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUserResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getUser() const; + bool userIsSet() const; + void unsetUser(); + void setUser(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_User; + bool m_UserIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUsersInfoResponse.h b/client/include/FastCommentsClient/model/GetUsersInfoResponse.h new file mode 100644 index 0000000..e61ba9b --- /dev/null +++ b/client/include/FastCommentsClient/model/GetUsersInfoResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetUsersInfoResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUsersInfoResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUsersInfoResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/PageUserEntry.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/PageUsersInfoResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PageUserEntry; +class CustomConfigParameters; + + +class GetUsersInfoResponse + : public ModelBase +{ +public: + GetUsersInfoResponse(); + virtual ~GetUsersInfoResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetUsersInfoResponse members + + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Users; + bool m_UsersIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUsersInfoResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetV1PageLikesResponse.h b/client/include/FastCommentsClient/model/GetV1PageLikesResponse.h new file mode 100644 index 0000000..d554551 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetV1PageLikesResponse.h @@ -0,0 +1,169 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetV1PageLikesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetV1PageLikesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV1PageLikesResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/GetV1PageLikes.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetV1PageLikesResponse + : public ModelBase +{ +public: + GetV1PageLikesResponse(); + virtual ~GetV1PageLikesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetV1PageLikesResponse members + + + utility::string_t getUrlIdWS() const; + bool urlIdWSIsSet() const; + void unsetUrlIdWS(); + void setUrlIdWS(const utility::string_t& value); + + bool isDidLike() const; + bool didLikeIsSet() const; + void unsetDidLike(); + void setDidLike(bool value); + + int32_t getCommentCount() const; + bool commentCountIsSet() const; + void unsetCommentCount(); + void setCommentCount(int32_t value); + + int32_t getLikeCount() const; + bool likeCountIsSet() const; + void unsetLikeCount(); + void setLikeCount(int32_t value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + utility::string_t m_UrlIdWS; + bool m_UrlIdWSIsSet; + + bool m_DidLike; + bool m_DidLikeIsSet; + + int32_t m_CommentCount; + bool m_CommentCountIsSet; + + int32_t m_LikeCount; + bool m_LikeCountIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetV1PageLikesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse_1.h b/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse_1.h new file mode 100644 index 0000000..7edb7ae --- /dev/null +++ b/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse_1.h @@ -0,0 +1,146 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetV2PageReactUsersResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactUsersResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactUsersResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetV2PageReactUsersResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetV2PageReactUsersResponse_1 + : public ModelBase +{ +public: + GetV2PageReactUsersResponse_1(); + virtual ~GetV2PageReactUsersResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetV2PageReactUsersResponse_1 members + + + std::vector getUserNames() const; + bool userNamesIsSet() const; + void unsetUserNames(); + void setUserNames(const std::vector& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector m_UserNames; + bool m_UserNamesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactUsersResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetV2PageReactsResponse.h b/client/include/FastCommentsClient/model/GetV2PageReactsResponse.h new file mode 100644 index 0000000..f5f43d5 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetV2PageReactsResponse.h @@ -0,0 +1,158 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetV2PageReactsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactsResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetV2PageReacts.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class GetV2PageReactsResponse + : public ModelBase +{ +public: + GetV2PageReactsResponse(); + virtual ~GetV2PageReactsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetV2PageReactsResponse members + + + std::vector getReactedIds() const; + bool reactedIdsIsSet() const; + void unsetReactedIds(); + void setReactedIds(const std::vector& value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map getCounts() const; + bool countsIsSet() const; + void unsetCounts(); + void setCounts(std::map value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector m_ReactedIds; + bool m_ReactedIdsIsSet; + + std::map m_Counts; + bool m_CountsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetVotesForUserResponse_1.h b/client/include/FastCommentsClient/model/GetVotesForUserResponse_1.h new file mode 100644 index 0000000..1bf4e79 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetVotesForUserResponse_1.h @@ -0,0 +1,164 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetVotesForUserResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUserResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUserResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/GetVotesForUserResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/PublicVote.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PublicVote; +class CustomConfigParameters; + + +class GetVotesForUserResponse_1 + : public ModelBase +{ +public: + GetVotesForUserResponse_1(); + virtual ~GetVotesForUserResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetVotesForUserResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getAppliedAuthorizedVotes() const; + bool appliedAuthorizedVotesIsSet() const; + void unsetAppliedAuthorizedVotes(); + void setAppliedAuthorizedVotes(const std::vector>& value); + + std::vector> getAppliedAnonymousVotes() const; + bool appliedAnonymousVotesIsSet() const; + void unsetAppliedAnonymousVotes(); + void setAppliedAnonymousVotes(const std::vector>& value); + + std::vector> getPendingVotes() const; + bool pendingVotesIsSet() const; + void unsetPendingVotes(); + void setPendingVotes(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_AppliedAuthorizedVotes; + bool m_AppliedAuthorizedVotesIsSet; + + std::vector> m_AppliedAnonymousVotes; + bool m_AppliedAnonymousVotesIsSet; + + std::vector> m_PendingVotes; + bool m_PendingVotesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUserResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetVotesResponse_1.h b/client/include/FastCommentsClient/model/GetVotesResponse_1.h new file mode 100644 index 0000000..ecee534 --- /dev/null +++ b/client/include/FastCommentsClient/model/GetVotesResponse_1.h @@ -0,0 +1,164 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * GetVotesResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/PublicVote.h" +#include +#include "FastCommentsClient/model/GetVotesResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class PublicVote; +class CustomConfigParameters; + + +class GetVotesResponse_1 + : public ModelBase +{ +public: + GetVotesResponse_1(); + virtual ~GetVotesResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// GetVotesResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getAppliedAuthorizedVotes() const; + bool appliedAuthorizedVotesIsSet() const; + void unsetAppliedAuthorizedVotes(); + void setAppliedAuthorizedVotes(const std::vector>& value); + + std::vector> getAppliedAnonymousVotes() const; + bool appliedAnonymousVotesIsSet() const; + void unsetAppliedAnonymousVotes(); + void setAppliedAnonymousVotes(const std::vector>& value); + + std::vector> getPendingVotes() const; + bool pendingVotesIsSet() const; + void unsetPendingVotes(); + void setPendingVotes(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_AppliedAuthorizedVotes; + bool m_AppliedAuthorizedVotesIsSet; + + std::vector> m_AppliedAnonymousVotes; + bool m_AppliedAnonymousVotesIsSet; + + std::vector> m_PendingVotes; + bool m_PendingVotesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/LockCommentResponse.h b/client/include/FastCommentsClient/model/LockCommentResponse.h new file mode 100644 index 0000000..be59d96 --- /dev/null +++ b/client/include/FastCommentsClient/model/LockCommentResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * LockCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_LockCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_LockCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class LockCommentResponse + : public ModelBase +{ +public: + LockCommentResponse(); + virtual ~LockCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// LockCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_LockCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PatchHashTagResponse.h b/client/include/FastCommentsClient/model/PatchHashTagResponse.h new file mode 100644 index 0000000..f7831c8 --- /dev/null +++ b/client/include/FastCommentsClient/model/PatchHashTagResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PatchHashTagResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchHashTagResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchHashTagResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/TenantHashTag.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/UpdateHashTagResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class TenantHashTag; +class CustomConfigParameters; + + +class PatchHashTagResponse + : public ModelBase +{ +public: + PatchHashTagResponse(); + virtual ~PatchHashTagResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PatchHashTagResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getHashTag() const; + bool hashTagIsSet() const; + void unsetHashTag(); + void setHashTag(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_HashTag; + bool m_HashTagIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PatchHashTagResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PinCommentResponse.h b/client/include/FastCommentsClient/model/PinCommentResponse.h new file mode 100644 index 0000000..238f999 --- /dev/null +++ b/client/include/FastCommentsClient/model/PinCommentResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PinCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PinCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PinCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/ChangeCommentPinStatusResponse.h" +#include "FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class Record_string__before_string_or_null__after_string_or_null___value; +class CustomConfigParameters; + + +class PinCommentResponse + : public ModelBase +{ +public: + PinCommentResponse(); + virtual ~PinCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PinCommentResponse members + + + /// + /// Construct a type with a set of properties K of type T + /// + std::map> getCommentPositions() const; + bool commentPositionsIsSet() const; + void unsetCommentPositions(); + void setCommentPositions(const std::map>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::map> m_CommentPositions; + bool m_CommentPositionsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PinCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostAdjustCommentVotesResponse.h b/client/include/FastCommentsClient/model/PostAdjustCommentVotesResponse.h new file mode 100644 index 0000000..177a9b4 --- /dev/null +++ b/client/include/FastCommentsClient/model/PostAdjustCommentVotesResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostAdjustCommentVotesResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostAdjustCommentVotesResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostAdjustCommentVotesResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/AdjustVotesResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostAdjustCommentVotesResponse + : public ModelBase +{ +public: + PostAdjustCommentVotesResponse(); + virtual ~PostAdjustCommentVotesResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostAdjustCommentVotesResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + int32_t getNewCommentVotes() const; + bool newCommentVotesIsSet() const; + void unsetNewCommentVotes(); + void setNewCommentVotes(int32_t value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + int32_t m_NewCommentVotes; + bool m_NewCommentVotesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostAdjustCommentVotesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostApiExportResponse.h b/client/include/FastCommentsClient/model/PostApiExportResponse.h new file mode 100644 index 0000000..711dfe2 --- /dev/null +++ b/client/include/FastCommentsClient/model/PostApiExportResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostApiExportResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostApiExportResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostApiExportResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/ModerationExportResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostApiExportResponse + : public ModelBase +{ +public: + PostApiExportResponse(); + virtual ~PostApiExportResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostApiExportResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getBatchJobId() const; + bool batchJobIdIsSet() const; + void unsetBatchJobId(); + void setBatchJobId(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_BatchJobId; + bool m_BatchJobIdIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostApiExportResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostBanUserFromCommentResponse.h b/client/include/FastCommentsClient/model/PostBanUserFromCommentResponse.h new file mode 100644 index 0000000..7da292d --- /dev/null +++ b/client/include/FastCommentsClient/model/PostBanUserFromCommentResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostBanUserFromCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserFromCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserFromCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/BanUserFromCommentResult.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIBanUserChangeLog.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIBanUserChangeLog; +class CustomConfigParameters; + + +class PostBanUserFromCommentResponse + : public ModelBase +{ +public: + PostBanUserFromCommentResponse(); + virtual ~PostBanUserFromCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostBanUserFromCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getChangelog() const; + bool changelogIsSet() const; + void unsetChangelog(); + void setChangelog(const std::shared_ptr& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Changelog; + bool m_ChangelogIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserFromCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostBanUserUndoResponse.h b/client/include/FastCommentsClient/model/PostBanUserUndoResponse.h new file mode 100644 index 0000000..1e90e6c --- /dev/null +++ b/client/include/FastCommentsClient/model/PostBanUserUndoResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostBanUserUndoResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserUndoResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserUndoResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostBanUserUndoResponse + : public ModelBase +{ +public: + PostBanUserUndoResponse(); + virtual ~PostBanUserUndoResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostBanUserUndoResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserUndoResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostBulkPreBanSummaryResponse.h b/client/include/FastCommentsClient/model/PostBulkPreBanSummaryResponse.h new file mode 100644 index 0000000..3e326b4 --- /dev/null +++ b/client/include/FastCommentsClient/model/PostBulkPreBanSummaryResponse.h @@ -0,0 +1,178 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostBulkPreBanSummaryResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostBulkPreBanSummaryResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostBulkPreBanSummaryResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/BulkPreBanSummary.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostBulkPreBanSummaryResponse + : public ModelBase +{ +public: + PostBulkPreBanSummaryResponse(); + virtual ~PostBulkPreBanSummaryResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostBulkPreBanSummaryResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + int32_t getTotalRelatedCommentCount() const; + bool totalRelatedCommentCountIsSet() const; + void unsetTotalRelatedCommentCount(); + void setTotalRelatedCommentCount(int32_t value); + + std::vector getEmailDomains() const; + bool emailDomainsIsSet() const; + void unsetEmailDomains(); + void setEmailDomains(const std::vector& value); + + std::vector getEmails() const; + bool emailsIsSet() const; + void unsetEmails(); + void setEmails(const std::vector& value); + + std::vector getUserIds() const; + bool userIdsIsSet() const; + void unsetUserIds(); + void setUserIds(const std::vector& value); + + std::vector getIpHashes() const; + bool ipHashesIsSet() const; + void unsetIpHashes(); + void setIpHashes(const std::vector& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + int32_t m_TotalRelatedCommentCount; + bool m_TotalRelatedCommentCountIsSet; + + std::vector m_EmailDomains; + bool m_EmailDomainsIsSet; + + std::vector m_Emails; + bool m_EmailsIsSet; + + std::vector m_UserIds; + bool m_UserIdsIsSet; + + std::vector m_IpHashes; + bool m_IpHashesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostBulkPreBanSummaryResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostCommentsByIdsResponse.h b/client/include/FastCommentsClient/model/PostCommentsByIdsResponse.h new file mode 100644 index 0000000..c297f51 --- /dev/null +++ b/client/include/FastCommentsClient/model/PostCommentsByIdsResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostCommentsByIdsResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostCommentsByIdsResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostCommentsByIdsResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ModerationAPIComment.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" +#include "FastCommentsClient/model/ModerationAPIChildCommentsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class ModerationAPIComment; +class CustomConfigParameters; + + +class PostCommentsByIdsResponse + : public ModelBase +{ +public: + PostCommentsByIdsResponse(); + virtual ~PostCommentsByIdsResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostCommentsByIdsResponse members + + + std::vector> getComments() const; + bool commentsIsSet() const; + void unsetComments(); + void setComments(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Comments; + bool m_CommentsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostCommentsByIdsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostFlagCommentResponse.h b/client/include/FastCommentsClient/model/PostFlagCommentResponse.h new file mode 100644 index 0000000..89bf4da --- /dev/null +++ b/client/include/FastCommentsClient/model/PostFlagCommentResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostFlagCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostFlagCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostFlagCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostFlagCommentResponse + : public ModelBase +{ +public: + PostFlagCommentResponse(); + virtual ~PostFlagCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostFlagCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostFlagCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h index 6f2d51c..5779b46 100644 --- a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h +++ b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h @@ -18,19 +18,24 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ +#include #include #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/DeleteCommentResult.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" #include "FastCommentsClient/model/RemoveCommentActionResponse.h" #include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" namespace org { namespace openapitools { namespace client { namespace model { +class CustomConfigParameters; class PostRemoveCommentResponse @@ -61,19 +66,75 @@ class PostRemoveCommentResponse void unsetAction(); void setAction(const utility::string_t& value); - utility::string_t getStatus() const; + std::shared_ptr getStatus() const; bool statusIsSet() const; void unsetStatus(); - void setStatus(const utility::string_t& value); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); protected: utility::string_t m_Action; bool m_ActionIsSet; - utility::string_t m_Status; + std::shared_ptr m_Status; bool m_StatusIsSet; + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + }; diff --git a/client/include/FastCommentsClient/model/PostRestoreDeletedCommentResponse.h b/client/include/FastCommentsClient/model/PostRestoreDeletedCommentResponse.h new file mode 100644 index 0000000..7f45c4e --- /dev/null +++ b/client/include/FastCommentsClient/model/PostRestoreDeletedCommentResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostRestoreDeletedCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostRestoreDeletedCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostRestoreDeletedCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostRestoreDeletedCommentResponse + : public ModelBase +{ +public: + PostRestoreDeletedCommentResponse(); + virtual ~PostRestoreDeletedCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostRestoreDeletedCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostRestoreDeletedCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h b/client/include/FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h new file mode 100644 index 0000000..8b19e75 --- /dev/null +++ b/client/include/FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostSetCommentApprovalStatusResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentApprovalStatusResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentApprovalStatusResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/SetCommentApprovedResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostSetCommentApprovalStatusResponse + : public ModelBase +{ +public: + PostSetCommentApprovalStatusResponse(); + virtual ~PostSetCommentApprovalStatusResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostSetCommentApprovalStatusResponse members + + + bool isDidResetFlaggedCount() const; + bool didResetFlaggedCountIsSet() const; + void unsetDidResetFlaggedCount(); + void setDidResetFlaggedCount(bool value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + bool m_DidResetFlaggedCount; + bool m_DidResetFlaggedCountIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentApprovalStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostSetCommentReviewStatusResponse.h b/client/include/FastCommentsClient/model/PostSetCommentReviewStatusResponse.h new file mode 100644 index 0000000..f15e32b --- /dev/null +++ b/client/include/FastCommentsClient/model/PostSetCommentReviewStatusResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostSetCommentReviewStatusResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentReviewStatusResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentReviewStatusResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostSetCommentReviewStatusResponse + : public ModelBase +{ +public: + PostSetCommentReviewStatusResponse(); + virtual ~PostSetCommentReviewStatusResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostSetCommentReviewStatusResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentReviewStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostSetCommentSpamStatusResponse.h b/client/include/FastCommentsClient/model/PostSetCommentSpamStatusResponse.h new file mode 100644 index 0000000..426aea0 --- /dev/null +++ b/client/include/FastCommentsClient/model/PostSetCommentSpamStatusResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostSetCommentSpamStatusResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentSpamStatusResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentSpamStatusResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostSetCommentSpamStatusResponse + : public ModelBase +{ +public: + PostSetCommentSpamStatusResponse(); + virtual ~PostSetCommentSpamStatusResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostSetCommentSpamStatusResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentSpamStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostSetCommentTextResponse.h b/client/include/FastCommentsClient/model/PostSetCommentTextResponse.h new file mode 100644 index 0000000..bd89ada --- /dev/null +++ b/client/include/FastCommentsClient/model/PostSetCommentTextResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostSetCommentTextResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentTextResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentTextResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/SetCommentTextResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostSetCommentTextResponse + : public ModelBase +{ +public: + PostSetCommentTextResponse(); + virtual ~PostSetCommentTextResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostSetCommentTextResponse members + + + utility::string_t getNewCommentTextHTML() const; + bool newCommentTextHTMLIsSet() const; + void unsetNewCommentTextHTML(); + void setNewCommentTextHTML(const utility::string_t& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + utility::string_t m_NewCommentTextHTML; + bool m_NewCommentTextHTMLIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentTextResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostUnFlagCommentResponse.h b/client/include/FastCommentsClient/model/PostUnFlagCommentResponse.h new file mode 100644 index 0000000..a07a7f1 --- /dev/null +++ b/client/include/FastCommentsClient/model/PostUnFlagCommentResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostUnFlagCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostUnFlagCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostUnFlagCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PostUnFlagCommentResponse + : public ModelBase +{ +public: + PostUnFlagCommentResponse(); + virtual ~PostUnFlagCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostUnFlagCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostUnFlagCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostVoteResponse.h b/client/include/FastCommentsClient/model/PostVoteResponse.h new file mode 100644 index 0000000..d1ff6f4 --- /dev/null +++ b/client/include/FastCommentsClient/model/PostVoteResponse.h @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PostVoteResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostVoteResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostVoteResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/VoteResponseUser.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/VoteResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class VoteResponseUser; +class CustomConfigParameters; + + +class PostVoteResponse + : public ModelBase +{ +public: + PostVoteResponse(); + virtual ~PostVoteResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PostVoteResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getVoteId() const; + bool voteIdIsSet() const; + void unsetVoteId(); + void setVoteId(const utility::string_t& value); + + bool isIsVerified() const; + bool isVerifiedIsSet() const; + void unsetIsVerified(); + void setIsVerified(bool value); + + std::shared_ptr getUser() const; + bool userIsSet() const; + void unsetUser(); + void setUser(const std::shared_ptr& value); + + utility::string_t getEditKey() const; + bool editKeyIsSet() const; + void unsetEditKey(); + void setEditKey(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_VoteId; + bool m_VoteIdIsSet; + + bool m_IsVerified; + bool m_IsVerifiedIsSet; + + std::shared_ptr m_User; + bool m_UserIsSet; + + utility::string_t m_EditKey; + bool m_EditKeyIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostVoteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PutAwardBadgeResponse.h b/client/include/FastCommentsClient/model/PutAwardBadgeResponse.h new file mode 100644 index 0000000..2bff695 --- /dev/null +++ b/client/include/FastCommentsClient/model/PutAwardBadgeResponse.h @@ -0,0 +1,156 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PutAwardBadgeResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutAwardBadgeResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PutAwardBadgeResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CommentUserBadgeInfo.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/AwardUserBadgeResponse.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CommentUserBadgeInfo; +class CustomConfigParameters; + + +class PutAwardBadgeResponse + : public ModelBase +{ +public: + PutAwardBadgeResponse(); + virtual ~PutAwardBadgeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PutAwardBadgeResponse members + + + std::vector getNotes() const; + bool notesIsSet() const; + void unsetNotes(); + void setNotes(const std::vector& value); + + std::vector> getBadges() const; + bool badgesIsSet() const; + void unsetBadges(); + void setBadges(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector m_Notes; + bool m_NotesIsSet; + + std::vector> m_Badges; + bool m_BadgesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PutAwardBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PutCloseThreadResponse.h b/client/include/FastCommentsClient/model/PutCloseThreadResponse.h new file mode 100644 index 0000000..a9105dd --- /dev/null +++ b/client/include/FastCommentsClient/model/PutCloseThreadResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PutCloseThreadResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutCloseThreadResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PutCloseThreadResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PutCloseThreadResponse + : public ModelBase +{ +public: + PutCloseThreadResponse(); + virtual ~PutCloseThreadResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PutCloseThreadResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PutCloseThreadResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PutRemoveBadgeResponse.h b/client/include/FastCommentsClient/model/PutRemoveBadgeResponse.h new file mode 100644 index 0000000..0a9d759 --- /dev/null +++ b/client/include/FastCommentsClient/model/PutRemoveBadgeResponse.h @@ -0,0 +1,148 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PutRemoveBadgeResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutRemoveBadgeResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PutRemoveBadgeResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CommentUserBadgeInfo.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/RemoveUserBadgeResponse.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CommentUserBadgeInfo; +class CustomConfigParameters; + + +class PutRemoveBadgeResponse + : public ModelBase +{ +public: + PutRemoveBadgeResponse(); + virtual ~PutRemoveBadgeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PutRemoveBadgeResponse members + + + std::vector> getBadges() const; + bool badgesIsSet() const; + void unsetBadges(); + void setBadges(const std::vector>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::vector> m_Badges; + bool m_BadgesIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PutRemoveBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PutReopenThreadResponse.h b/client/include/FastCommentsClient/model/PutReopenThreadResponse.h new file mode 100644 index 0000000..8a49506 --- /dev/null +++ b/client/include/FastCommentsClient/model/PutReopenThreadResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * PutReopenThreadResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutReopenThreadResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_PutReopenThreadResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class PutReopenThreadResponse + : public ModelBase +{ +public: + PutReopenThreadResponse(); + virtual ~PutReopenThreadResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// PutReopenThreadResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PutReopenThreadResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ReactFeedPostPublicResponse.h b/client/include/FastCommentsClient/model/ReactFeedPostPublicResponse.h new file mode 100644 index 0000000..1e26125 --- /dev/null +++ b/client/include/FastCommentsClient/model/ReactFeedPostPublicResponse.h @@ -0,0 +1,153 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ReactFeedPostPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/ReactFeedPostResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class ReactFeedPostPublicResponse + : public ModelBase +{ +public: + ReactFeedPostPublicResponse(); + virtual ~ReactFeedPostPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ReactFeedPostPublicResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReactType() const; + bool reactTypeIsSet() const; + void unsetReactType(); + void setReactType(const utility::string_t& value); + + bool isIsUndo() const; + bool isUndoIsSet() const; + void unsetIsUndo(); + void setIsUndo(bool value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_ReactType; + bool m_ReactTypeIsSet; + + bool m_IsUndo; + bool m_IsUndoIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/RenderEmailTemplateResponse_1.h b/client/include/FastCommentsClient/model/RenderEmailTemplateResponse_1.h new file mode 100644 index 0000000..7c2defb --- /dev/null +++ b/client/include/FastCommentsClient/model/RenderEmailTemplateResponse_1.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * RenderEmailTemplateResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/RenderEmailTemplateResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class RenderEmailTemplateResponse_1 + : public ModelBase +{ +public: + RenderEmailTemplateResponse_1(); + virtual ~RenderEmailTemplateResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// RenderEmailTemplateResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getHtml() const; + bool htmlIsSet() const; + void unsetHtml(); + void setHtml(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Html; + bool m_HtmlIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/ReplaceTenantPackageResponse.h b/client/include/FastCommentsClient/model/ReplaceTenantPackageResponse.h new file mode 100644 index 0000000..56a8cc0 --- /dev/null +++ b/client/include/FastCommentsClient/model/ReplaceTenantPackageResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ReplaceTenantPackageResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantPackageResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantPackageResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class ReplaceTenantPackageResponse + : public ModelBase +{ +public: + ReplaceTenantPackageResponse(); + virtual ~ReplaceTenantPackageResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ReplaceTenantPackageResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantPackageResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ReplaceTenantUserResponse.h b/client/include/FastCommentsClient/model/ReplaceTenantUserResponse.h new file mode 100644 index 0000000..a2f288a --- /dev/null +++ b/client/include/FastCommentsClient/model/ReplaceTenantUserResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ReplaceTenantUserResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantUserResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantUserResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class ReplaceTenantUserResponse + : public ModelBase +{ +public: + ReplaceTenantUserResponse(); + virtual ~ReplaceTenantUserResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ReplaceTenantUserResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantUserResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ResetUserNotificationCountResponse.h b/client/include/FastCommentsClient/model/ResetUserNotificationCountResponse.h new file mode 100644 index 0000000..dfe860d --- /dev/null +++ b/client/include/FastCommentsClient/model/ResetUserNotificationCountResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ResetUserNotificationCountResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationCountResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationCountResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/ResetUserNotificationsResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class ResetUserNotificationCountResponse + : public ModelBase +{ +public: + ResetUserNotificationCountResponse(); + virtual ~ResetUserNotificationCountResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ResetUserNotificationCountResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationCountResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ResetUserNotificationsResponse_1.h b/client/include/FastCommentsClient/model/ResetUserNotificationsResponse_1.h new file mode 100644 index 0000000..bcf2eb1 --- /dev/null +++ b/client/include/FastCommentsClient/model/ResetUserNotificationsResponse_1.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * ResetUserNotificationsResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationsResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationsResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/ResetUserNotificationsResponse.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class ResetUserNotificationsResponse_1 + : public ModelBase +{ +public: + ResetUserNotificationsResponse_1(); + virtual ~ResetUserNotificationsResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// ResetUserNotificationsResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/SaveCommentResponse.h b/client/include/FastCommentsClient/model/SaveCommentResponse.h new file mode 100644 index 0000000..df20791 --- /dev/null +++ b/client/include/FastCommentsClient/model/SaveCommentResponse.h @@ -0,0 +1,169 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SaveCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIComment.h" +#include "FastCommentsClient/model/UserSessionInfo.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/APISaveCommentResponse.h" +#include +#include "FastCommentsClient/Object.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class APIComment; +class UserSessionInfo; +class CustomConfigParameters; + + +class SaveCommentResponse + : public ModelBase +{ +public: + SaveCommentResponse(); + virtual ~SaveCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SaveCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getComment() const; + bool commentIsSet() const; + void unsetComment(); + void setComment(const std::shared_ptr& value); + + std::shared_ptr getUser() const; + bool userIsSet() const; + void unsetUser(); + void setUser(const std::shared_ptr& value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map> getModuleData() const; + bool moduleDataIsSet() const; + void unsetModuleData(); + void setModuleData(const std::map>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_Comment; + bool m_CommentIsSet; + + boost::optional> m_User; + + std::map> m_ModuleData; + bool m_ModuleDataIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/SearchUsersResponse_1.h b/client/include/FastCommentsClient/model/SearchUsersResponse_1.h new file mode 100644 index 0000000..2422071 --- /dev/null +++ b/client/include/FastCommentsClient/model/SearchUsersResponse_1.h @@ -0,0 +1,158 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SearchUsersResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/SearchUsersResult.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/UserSearchSectionResult.h" +#include +#include "FastCommentsClient/model/UserSearchResult.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class UserSearchSectionResult; +class UserSearchResult; +class CustomConfigParameters; + + +class SearchUsersResponse_1 + : public ModelBase +{ +public: + SearchUsersResponse_1(); + virtual ~SearchUsersResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SearchUsersResponse_1 members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::vector> getSections() const; + bool sectionsIsSet() const; + void unsetSections(); + void setSections(const std::vector>& value); + + std::vector> getUsers() const; + bool usersIsSet() const; + void unsetUsers(); + void setUsers(const std::vector>& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::vector> m_Sections; + bool m_SectionsIsSet; + + std::vector> m_Users; + bool m_UsersIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/SendInviteResponse.h b/client/include/FastCommentsClient/model/SendInviteResponse.h new file mode 100644 index 0000000..96a5eb8 --- /dev/null +++ b/client/include/FastCommentsClient/model/SendInviteResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SendInviteResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SendInviteResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SendInviteResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class SendInviteResponse + : public ModelBase +{ +public: + SendInviteResponse(); + virtual ~SendInviteResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SendInviteResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SendInviteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/SendLoginLinkResponse.h b/client/include/FastCommentsClient/model/SendLoginLinkResponse.h new file mode 100644 index 0000000..88981a0 --- /dev/null +++ b/client/include/FastCommentsClient/model/SendLoginLinkResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SendLoginLinkResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SendLoginLinkResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SendLoginLinkResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class SendLoginLinkResponse + : public ModelBase +{ +public: + SendLoginLinkResponse(); + virtual ~SendLoginLinkResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SendLoginLinkResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SendLoginLinkResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/SetCommentTextResponse_1.h b/client/include/FastCommentsClient/model/SetCommentTextResponse_1.h new file mode 100644 index 0000000..72d086c --- /dev/null +++ b/client/include/FastCommentsClient/model/SetCommentTextResponse_1.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SetCommentTextResponse_1.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResponse_1_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResponse_1_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/PublicAPISetCommentTextResponse.h" +#include "FastCommentsClient/model/SetCommentTextResult.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class SetCommentTextResult; +class CustomConfigParameters; + + +class SetCommentTextResponse_1 + : public ModelBase +{ +public: + SetCommentTextResponse_1(); + virtual ~SetCommentTextResponse_1(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SetCommentTextResponse_1 members + + + std::shared_ptr getComment() const; + bool commentIsSet() const; + void unsetComment(); + void setComment(const std::shared_ptr& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Comment; + bool m_CommentIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/SetTrustFactorResponse.h b/client/include/FastCommentsClient/model/SetTrustFactorResponse.h new file mode 100644 index 0000000..46f354d --- /dev/null +++ b/client/include/FastCommentsClient/model/SetTrustFactorResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * SetTrustFactorResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetTrustFactorResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_SetTrustFactorResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/SetUserTrustFactorResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class SetTrustFactorResponse + : public ModelBase +{ +public: + SetTrustFactorResponse(); + virtual ~SetTrustFactorResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// SetTrustFactorResponse members + + + double getPreviousManualTrustFactor() const; + bool previousManualTrustFactorIsSet() const; + void unsetPreviousManualTrustFactor(); + void setPreviousManualTrustFactor(double value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + double m_PreviousManualTrustFactor; + bool m_PreviousManualTrustFactorIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SetTrustFactorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UnBlockCommentPublicResponse.h b/client/include/FastCommentsClient/model/UnBlockCommentPublicResponse.h new file mode 100644 index 0000000..65312ea --- /dev/null +++ b/client/include/FastCommentsClient/model/UnBlockCommentPublicResponse.h @@ -0,0 +1,149 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UnBlockCommentPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockCommentPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockCommentPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UnblockSuccess.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UnBlockCommentPublicResponse + : public ModelBase +{ +public: + UnBlockCommentPublicResponse(); + virtual ~UnBlockCommentPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UnBlockCommentPublicResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map getCommentStatuses() const; + bool commentStatusesIsSet() const; + void unsetCommentStatuses(); + void setCommentStatuses(std::map value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::map m_CommentStatuses; + bool m_CommentStatusesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockCommentPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UnBlockUserFromCommentResponse.h b/client/include/FastCommentsClient/model/UnBlockUserFromCommentResponse.h new file mode 100644 index 0000000..9630505 --- /dev/null +++ b/client/include/FastCommentsClient/model/UnBlockUserFromCommentResponse.h @@ -0,0 +1,149 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UnBlockUserFromCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockUserFromCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockUserFromCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/UnblockSuccess.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UnBlockUserFromCommentResponse + : public ModelBase +{ +public: + UnBlockUserFromCommentResponse(); + virtual ~UnBlockUserFromCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UnBlockUserFromCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + /// + /// Construct a type with a set of properties K of type T + /// + std::map getCommentStatuses() const; + bool commentStatusesIsSet() const; + void unsetCommentStatuses(); + void setCommentStatuses(std::map value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::map m_CommentStatuses; + bool m_CommentStatusesIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockUserFromCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UnFlagCommentResponse.h b/client/include/FastCommentsClient/model/UnFlagCommentResponse.h new file mode 100644 index 0000000..151df4c --- /dev/null +++ b/client/include/FastCommentsClient/model/UnFlagCommentResponse.h @@ -0,0 +1,153 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UnFlagCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnFlagCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnFlagCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/FlagCommentResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UnFlagCommentResponse + : public ModelBase +{ +public: + UnFlagCommentResponse(); + virtual ~UnFlagCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UnFlagCommentResponse members + + + int32_t getStatusCode() const; + bool statusCodeIsSet() const; + void unsetStatusCode(); + void setStatusCode(int32_t value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + bool isWasUnapproved() const; + bool wasUnapprovedIsSet() const; + void unsetWasUnapproved(); + void setWasUnapproved(bool value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + int32_t m_StatusCode; + bool m_StatusCodeIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + bool m_WasUnapproved; + bool m_WasUnapprovedIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnFlagCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UnLockCommentResponse.h b/client/include/FastCommentsClient/model/UnLockCommentResponse.h new file mode 100644 index 0000000..a5d5362 --- /dev/null +++ b/client/include/FastCommentsClient/model/UnLockCommentResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UnLockCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnLockCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnLockCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UnLockCommentResponse + : public ModelBase +{ +public: + UnLockCommentResponse(); + virtual ~UnLockCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UnLockCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnLockCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UnPinCommentResponse.h b/client/include/FastCommentsClient/model/UnPinCommentResponse.h new file mode 100644 index 0000000..58b3078 --- /dev/null +++ b/client/include/FastCommentsClient/model/UnPinCommentResponse.h @@ -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 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UnPinCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnPinCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnPinCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/ChangeCommentPinStatusResponse.h" +#include "FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h" +#include +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class Record_string__before_string_or_null__after_string_or_null___value; +class CustomConfigParameters; + + +class UnPinCommentResponse + : public ModelBase +{ +public: + UnPinCommentResponse(); + virtual ~UnPinCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UnPinCommentResponse members + + + /// + /// Construct a type with a set of properties K of type T + /// + std::map> getCommentPositions() const; + bool commentPositionsIsSet() const; + void unsetCommentPositions(); + void setCommentPositions(const std::map>& value); + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::map> m_CommentPositions; + bool m_CommentPositionsIsSet; + + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnPinCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateCommentResponse.h b/client/include/FastCommentsClient/model/UpdateCommentResponse.h new file mode 100644 index 0000000..7522c23 --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateCommentResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateCommentResponse + : public ModelBase +{ +public: + UpdateCommentResponse(); + virtual ~UpdateCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateEmailTemplateResponse.h b/client/include/FastCommentsClient/model/UpdateEmailTemplateResponse.h new file mode 100644 index 0000000..6a85b6a --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateEmailTemplateResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateEmailTemplateResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateEmailTemplateResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateEmailTemplateResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateEmailTemplateResponse + : public ModelBase +{ +public: + UpdateEmailTemplateResponse(); + virtual ~UpdateEmailTemplateResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateEmailTemplateResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateEmailTemplateResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateFeedPostPublicResponse.h b/client/include/FastCommentsClient/model/UpdateFeedPostPublicResponse.h new file mode 100644 index 0000000..a7342b8 --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateFeedPostPublicResponse.h @@ -0,0 +1,147 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateFeedPostPublicResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostPublicResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostPublicResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/CreateFeedPostResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include "FastCommentsClient/model/FeedPost.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class FeedPost; +class CustomConfigParameters; + + +class UpdateFeedPostPublicResponse + : public ModelBase +{ +public: + UpdateFeedPostPublicResponse(); + virtual ~UpdateFeedPostPublicResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateFeedPostPublicResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + std::shared_ptr getFeedPost() const; + bool feedPostIsSet() const; + void unsetFeedPost(); + void setFeedPost(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + std::shared_ptr m_FeedPost; + bool m_FeedPostIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateFeedPostResponse.h b/client/include/FastCommentsClient/model/UpdateFeedPostResponse.h new file mode 100644 index 0000000..d271678 --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateFeedPostResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateFeedPostResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateFeedPostResponse + : public ModelBase +{ +public: + UpdateFeedPostResponse(); + virtual ~UpdateFeedPostResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateFeedPostResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateModeratorResponse.h b/client/include/FastCommentsClient/model/UpdateModeratorResponse.h new file mode 100644 index 0000000..88375b3 --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateModeratorResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateModeratorResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateModeratorResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateModeratorResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateModeratorResponse + : public ModelBase +{ +public: + UpdateModeratorResponse(); + virtual ~UpdateModeratorResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateModeratorResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateModeratorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateNotificationResponse.h b/client/include/FastCommentsClient/model/UpdateNotificationResponse.h new file mode 100644 index 0000000..ed37c05 --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateNotificationResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateNotificationResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateNotificationResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateNotificationResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateNotificationResponse + : public ModelBase +{ +public: + UpdateNotificationResponse(); + virtual ~UpdateNotificationResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateNotificationResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateNotificationResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateQuestionConfigResponse.h b/client/include/FastCommentsClient/model/UpdateQuestionConfigResponse.h new file mode 100644 index 0000000..55e668f --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateQuestionConfigResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateQuestionConfigResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionConfigResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionConfigResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateQuestionConfigResponse + : public ModelBase +{ +public: + UpdateQuestionConfigResponse(); + virtual ~UpdateQuestionConfigResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateQuestionConfigResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionConfigResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateQuestionResultResponse.h b/client/include/FastCommentsClient/model/UpdateQuestionResultResponse.h new file mode 100644 index 0000000..aeea017 --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateQuestionResultResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateQuestionResultResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionResultResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionResultResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateQuestionResultResponse + : public ModelBase +{ +public: + UpdateQuestionResultResponse(); + virtual ~UpdateQuestionResultResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateQuestionResultResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionResultResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateTenantPackageResponse.h b/client/include/FastCommentsClient/model/UpdateTenantPackageResponse.h new file mode 100644 index 0000000..f7dc71b --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateTenantPackageResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateTenantPackageResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantPackageResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantPackageResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateTenantPackageResponse + : public ModelBase +{ +public: + UpdateTenantPackageResponse(); + virtual ~UpdateTenantPackageResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateTenantPackageResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantPackageResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateTenantResponse.h b/client/include/FastCommentsClient/model/UpdateTenantResponse.h new file mode 100644 index 0000000..fe68e63 --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateTenantResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateTenantResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateTenantResponse + : public ModelBase +{ +public: + UpdateTenantResponse(); + virtual ~UpdateTenantResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateTenantResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateTenantUserResponse.h b/client/include/FastCommentsClient/model/UpdateTenantUserResponse.h new file mode 100644 index 0000000..a619c8c --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateTenantUserResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateTenantUserResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantUserResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantUserResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateTenantUserResponse + : public ModelBase +{ +public: + UpdateTenantUserResponse(); + virtual ~UpdateTenantUserResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateTenantUserResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantUserResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateUserBadgeResponse.h b/client/include/FastCommentsClient/model/UpdateUserBadgeResponse.h new file mode 100644 index 0000000..2426918 --- /dev/null +++ b/client/include/FastCommentsClient/model/UpdateUserBadgeResponse.h @@ -0,0 +1,137 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * UpdateUserBadgeResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadgeResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadgeResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/APIEmptySuccessResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class CustomConfigParameters; + + +class UpdateUserBadgeResponse + : public ModelBase +{ +public: + UpdateUserBadgeResponse(); + virtual ~UpdateUserBadgeResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// UpdateUserBadgeResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h index d3d8b8b..b779ca7 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h @@ -24,7 +24,9 @@ #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/UserNotificationWriteResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" #include +#include "FastCommentsClient/model/APIError.h" #include "FastCommentsClient/model/APIStatus.h" #include "FastCommentsClient/model/IgnoredResponse.h" @@ -33,6 +35,7 @@ namespace openapitools { namespace client { namespace model { +class CustomConfigParameters; class UpdateUserNotificationCommentSubscriptionStatusResponse @@ -87,6 +90,41 @@ class UpdateUserNotificationCommentSubscriptionStatusResponse void unsetNote(); void setNote(const NoteEnum value); + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + protected: std::shared_ptr m_Status; @@ -101,6 +139,27 @@ class UpdateUserNotificationCommentSubscriptionStatusResponse NoteEnum m_Note; bool m_NoteIsSet; + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + }; diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h index 322bc45..0b7e26d 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h @@ -24,7 +24,9 @@ #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/UserNotificationWriteResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" #include +#include "FastCommentsClient/model/APIError.h" #include "FastCommentsClient/model/APIStatus.h" #include "FastCommentsClient/model/IgnoredResponse.h" @@ -33,6 +35,7 @@ namespace openapitools { namespace client { namespace model { +class CustomConfigParameters; class UpdateUserNotificationPageSubscriptionStatusResponse @@ -87,6 +90,41 @@ class UpdateUserNotificationPageSubscriptionStatusResponse void unsetNote(); void setNote(const NoteEnum value); + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + protected: std::shared_ptr m_Status; @@ -101,6 +139,27 @@ class UpdateUserNotificationPageSubscriptionStatusResponse NoteEnum m_Note; bool m_NoteIsSet; + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + }; diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h index 32868fd..3c2c808 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h @@ -24,7 +24,9 @@ #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/UserNotificationWriteResponse.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" #include +#include "FastCommentsClient/model/APIError.h" #include "FastCommentsClient/model/APIStatus.h" #include "FastCommentsClient/model/IgnoredResponse.h" @@ -33,6 +35,7 @@ namespace openapitools { namespace client { namespace model { +class CustomConfigParameters; class UpdateUserNotificationStatusResponse @@ -87,6 +90,41 @@ class UpdateUserNotificationStatusResponse void unsetNote(); void setNote(const NoteEnum value); + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + protected: std::shared_ptr m_Status; @@ -101,6 +139,27 @@ class UpdateUserNotificationStatusResponse NoteEnum m_Note; bool m_NoteIsSet; + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + }; diff --git a/client/include/FastCommentsClient/model/VoteCommentResponse.h b/client/include/FastCommentsClient/model/VoteCommentResponse.h new file mode 100644 index 0000000..ef44dde --- /dev/null +++ b/client/include/FastCommentsClient/model/VoteCommentResponse.h @@ -0,0 +1,171 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/* + * VoteCommentResponse.h + * + * + */ + +#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteCommentResponse_H_ +#define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteCommentResponse_H_ + +#include +#include + +#include "FastCommentsClient/ModelBase.h" + +#include "FastCommentsClient/model/VoteResponseUser.h" +#include "FastCommentsClient/model/CustomConfigParameters.h" +#include +#include "FastCommentsClient/model/VoteResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIStatus.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +class VoteResponseUser; +class CustomConfigParameters; + + +class VoteCommentResponse + : public ModelBase +{ +public: + VoteCommentResponse(); + virtual ~VoteCommentResponse(); + + ///////////////////////////////////////////// + /// ModelBase overrides + + void validate() override; + + web::json::value toJson() const override; + bool fromJson(const web::json::value& json) override; + + void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; + bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; + + + ///////////////////////////////////////////// + /// VoteCommentResponse members + + + std::shared_ptr getStatus() const; + bool statusIsSet() const; + void unsetStatus(); + void setStatus(const std::shared_ptr& value); + + utility::string_t getVoteId() const; + bool voteIdIsSet() const; + void unsetVoteId(); + void setVoteId(const utility::string_t& value); + + bool isIsVerified() const; + bool isVerifiedIsSet() const; + void unsetIsVerified(); + void setIsVerified(bool value); + + std::shared_ptr getUser() const; + bool userIsSet() const; + void unsetUser(); + void setUser(const std::shared_ptr& value); + + utility::string_t getEditKey() const; + bool editKeyIsSet() const; + void unsetEditKey(); + void setEditKey(const utility::string_t& value); + + utility::string_t getReason() const; + bool reasonIsSet() const; + void unsetReason(); + void setReason(const utility::string_t& value); + + utility::string_t getCode() const; + bool codeIsSet() const; + void unsetCode(); + void setCode(const utility::string_t& value); + + utility::string_t getSecondaryCode() const; + bool secondaryCodeIsSet() const; + void unsetSecondaryCode(); + void setSecondaryCode(const utility::string_t& value); + + int64_t getBannedUntil() const; + bool bannedUntilIsSet() const; + void unsetBannedUntil(); + void setBannedUntil(int64_t value); + + int32_t getMaxCharacterLength() const; + bool maxCharacterLengthIsSet() const; + void unsetMaxCharacterLength(); + void setMaxCharacterLength(int32_t value); + + utility::string_t getTranslatedError() const; + bool translatedErrorIsSet() const; + void unsetTranslatedError(); + void setTranslatedError(const utility::string_t& value); + + std::shared_ptr getCustomConfig() const; + bool customConfigIsSet() const; + void unsetCustomConfig(); + void setCustomConfig(const std::shared_ptr& value); + + +protected: + std::shared_ptr m_Status; + bool m_StatusIsSet; + + utility::string_t m_VoteId; + bool m_VoteIdIsSet; + + bool m_IsVerified; + bool m_IsVerifiedIsSet; + + std::shared_ptr m_User; + bool m_UserIsSet; + + utility::string_t m_EditKey; + bool m_EditKeyIsSet; + + utility::string_t m_Reason; + bool m_ReasonIsSet; + + utility::string_t m_Code; + bool m_CodeIsSet; + + utility::string_t m_SecondaryCode; + bool m_SecondaryCodeIsSet; + + int64_t m_BannedUntil; + bool m_BannedUntilIsSet; + + int32_t m_MaxCharacterLength; + bool m_MaxCharacterLengthIsSet; + + utility::string_t m_TranslatedError; + bool m_TranslatedErrorIsSet; + + std::shared_ptr m_CustomConfig; + bool m_CustomConfigIsSet; + +}; + + +} +} +} +} + +#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_VoteCommentResponse_H_ */ diff --git a/client/src/api/DefaultApi.cpp b/client/src/api/DefaultApi.cpp index 561388f..9e94bbb 100644 --- a/client/src/api/DefaultApi.cpp +++ b/client/src/api/DefaultApi.cpp @@ -191,7 +191,7 @@ pplx::task> DefaultApi::addDomainConfig return localVarResult; }); } -pplx::task> DefaultApi::addHashTag(boost::optional tenantId, boost::optional> createHashTagBody) const +pplx::task> DefaultApi::addHashTag(boost::optional tenantId, boost::optional> createHashTagBody) const { @@ -321,7 +321,7 @@ pplx::task> DefaultApi::addHashTag(boost: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateHashTagResponse()); + std::shared_ptr localVarResult(new AddHashTagResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -342,7 +342,7 @@ pplx::task> DefaultApi::addHashTag(boost: return localVarResult; }); } -pplx::task> DefaultApi::addHashTagsBulk(boost::optional tenantId, boost::optional> bulkCreateHashTagsBody) const +pplx::task> DefaultApi::addHashTagsBulk(boost::optional tenantId, boost::optional> bulkCreateHashTagsBody) const { @@ -472,7 +472,7 @@ pplx::task> DefaultApi::addHashTagsB }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BulkCreateHashTagsResponse()); + std::shared_ptr localVarResult(new AddHashTagsBulkResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -969,7 +969,7 @@ pplx::task> DefaultApi::aggregate(utility::st return localVarResult; }); } -pplx::task> DefaultApi::aggregateQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional> timeBucket, boost::optional startDate, boost::optional forceRecalculate) const +pplx::task> DefaultApi::aggregateQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional> timeBucket, boost::optional startDate, boost::optional forceRecalculate) const { @@ -1105,7 +1105,7 @@ pplx::task> DefaultApi::aggreg }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AggregateQuestionResultsResponse()); + std::shared_ptr localVarResult(new AggregateQuestionResultsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1126,7 +1126,7 @@ pplx::task> DefaultApi::aggreg return localVarResult; }); } -pplx::task> DefaultApi::blockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::blockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams, boost::optional userId, boost::optional anonUserId) const { // verify the required parameter 'blockFromCommentParams' is set @@ -1270,7 +1270,7 @@ pplx::task> DefaultApi::blockUserFromComment(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BlockSuccess()); + std::shared_ptr localVarResult(new BlockUserFromCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1291,7 +1291,7 @@ pplx::task> DefaultApi::blockUserFromComment(utili return localVarResult; }); } -pplx::task> DefaultApi::bulkAggregateQuestionResults(utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest, boost::optional forceRecalculate) const +pplx::task> DefaultApi::bulkAggregateQuestionResults(utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest, boost::optional forceRecalculate) const { // verify the required parameter 'bulkAggregateQuestionResultsRequest' is set @@ -1430,7 +1430,7 @@ pplx::task> DefaultApi::bu }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BulkAggregateQuestionResultsResponse()); + std::shared_ptr localVarResult(new BulkAggregateQuestionResultsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1451,7 +1451,7 @@ pplx::task> DefaultApi::bu return localVarResult; }); } -pplx::task> DefaultApi::changeTicketState(utility::string_t tenantId, utility::string_t userId, utility::string_t id, std::shared_ptr changeTicketStateBody) const +pplx::task> DefaultApi::changeTicketState(utility::string_t tenantId, utility::string_t userId, utility::string_t id, std::shared_ptr changeTicketStateBody) const { // verify the required parameter 'changeTicketStateBody' is set @@ -1590,7 +1590,7 @@ pplx::task> DefaultApi::changeTicketS }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ChangeTicketStateResponse()); + std::shared_ptr localVarResult(new ChangeTicketStateResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1611,7 +1611,7 @@ pplx::task> DefaultApi::changeTicketS return localVarResult; }); } -pplx::task> DefaultApi::combineCommentsWithQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional startDate, boost::optional forceRecalculate, boost::optional minValue, boost::optional maxValue, boost::optional limit) const +pplx::task> DefaultApi::combineCommentsWithQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional startDate, boost::optional forceRecalculate, boost::optional minValue, boost::optional maxValue, boost::optional limit) const { @@ -1755,7 +1755,7 @@ pplx::task> DefaultA }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CombineQuestionResultsWithCommentsResponse()); + std::shared_ptr localVarResult(new CombineCommentsWithQuestionResultsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1776,7 +1776,7 @@ pplx::task> DefaultA return localVarResult; }); } -pplx::task> DefaultApi::createEmailTemplate(utility::string_t tenantId, std::shared_ptr createEmailTemplateBody) const +pplx::task> DefaultApi::createEmailTemplate(utility::string_t tenantId, std::shared_ptr createEmailTemplateBody) const { // verify the required parameter 'createEmailTemplateBody' is set @@ -1911,7 +1911,7 @@ pplx::task> DefaultApi::createEmail }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateEmailTemplateResponse()); + std::shared_ptr localVarResult(new CreateEmailTemplateResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1932,7 +1932,7 @@ pplx::task> DefaultApi::createEmail return localVarResult; }); } -pplx::task> DefaultApi::createFeedPost(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional isLive, boost::optional doSpamCheck, boost::optional skipDupCheck) const +pplx::task> DefaultApi::createFeedPost(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional isLive, boost::optional doSpamCheck, boost::optional skipDupCheck) const { // verify the required parameter 'createFeedPostParams' is set @@ -2083,7 +2083,7 @@ pplx::task> DefaultApi::createFeedPost( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateFeedPostsResponse()); + std::shared_ptr localVarResult(new CreateFeedPostResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2104,7 +2104,7 @@ pplx::task> DefaultApi::createFeedPost( return localVarResult; }); } -pplx::task> DefaultApi::createModerator(utility::string_t tenantId, std::shared_ptr createModeratorBody) const +pplx::task> DefaultApi::createModerator(utility::string_t tenantId, std::shared_ptr createModeratorBody) const { // verify the required parameter 'createModeratorBody' is set @@ -2239,7 +2239,7 @@ pplx::task> DefaultApi::createModerator }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateModeratorResponse()); + std::shared_ptr localVarResult(new CreateModeratorResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2260,7 +2260,7 @@ pplx::task> DefaultApi::createModerator return localVarResult; }); } -pplx::task> DefaultApi::createQuestionConfig(utility::string_t tenantId, std::shared_ptr createQuestionConfigBody) const +pplx::task> DefaultApi::createQuestionConfig(utility::string_t tenantId, std::shared_ptr createQuestionConfigBody) const { // verify the required parameter 'createQuestionConfigBody' is set @@ -2395,7 +2395,7 @@ pplx::task> DefaultApi::createQues }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateQuestionConfigResponse()); + std::shared_ptr localVarResult(new CreateQuestionConfigResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2416,7 +2416,7 @@ pplx::task> DefaultApi::createQues return localVarResult; }); } -pplx::task> DefaultApi::createQuestionResult(utility::string_t tenantId, std::shared_ptr createQuestionResultBody) const +pplx::task> DefaultApi::createQuestionResult(utility::string_t tenantId, std::shared_ptr createQuestionResultBody) const { // verify the required parameter 'createQuestionResultBody' is set @@ -2551,7 +2551,7 @@ pplx::task> DefaultApi::createQues }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateQuestionResultResponse()); + std::shared_ptr localVarResult(new CreateQuestionResultResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2728,7 +2728,7 @@ pplx::task> DefaultApi::createSub return localVarResult; }); } -pplx::task> DefaultApi::createTenant(utility::string_t tenantId, std::shared_ptr createTenantBody) const +pplx::task> DefaultApi::createTenant(utility::string_t tenantId, std::shared_ptr createTenantBody) const { // verify the required parameter 'createTenantBody' is set @@ -2863,7 +2863,7 @@ pplx::task> DefaultApi::createTenant(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTenantResponse()); + std::shared_ptr localVarResult(new CreateTenantResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2884,7 +2884,7 @@ pplx::task> DefaultApi::createTenant(utili return localVarResult; }); } -pplx::task> DefaultApi::createTenantPackage(utility::string_t tenantId, std::shared_ptr createTenantPackageBody) const +pplx::task> DefaultApi::createTenantPackage(utility::string_t tenantId, std::shared_ptr createTenantPackageBody) const { // verify the required parameter 'createTenantPackageBody' is set @@ -3019,7 +3019,7 @@ pplx::task> DefaultApi::createTenan }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTenantPackageResponse()); + std::shared_ptr localVarResult(new CreateTenantPackageResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3040,7 +3040,7 @@ pplx::task> DefaultApi::createTenan return localVarResult; }); } -pplx::task> DefaultApi::createTenantUser(utility::string_t tenantId, std::shared_ptr createTenantUserBody) const +pplx::task> DefaultApi::createTenantUser(utility::string_t tenantId, std::shared_ptr createTenantUserBody) const { // verify the required parameter 'createTenantUserBody' is set @@ -3175,7 +3175,7 @@ pplx::task> DefaultApi::createTenantUs }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTenantUserResponse()); + std::shared_ptr localVarResult(new CreateTenantUserResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3196,7 +3196,7 @@ pplx::task> DefaultApi::createTenantUs return localVarResult; }); } -pplx::task> DefaultApi::createTicket(utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody) const +pplx::task> DefaultApi::createTicket(utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody) const { // verify the required parameter 'createTicketBody' is set @@ -3334,7 +3334,7 @@ pplx::task> DefaultApi::createTicket(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTicketResponse()); + std::shared_ptr localVarResult(new CreateTicketResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3355,7 +3355,7 @@ pplx::task> DefaultApi::createTicket(utili return localVarResult; }); } -pplx::task> DefaultApi::createUserBadge(utility::string_t tenantId, std::shared_ptr createUserBadgeParams) const +pplx::task> DefaultApi::createUserBadge(utility::string_t tenantId, std::shared_ptr createUserBadgeParams) const { // verify the required parameter 'createUserBadgeParams' is set @@ -3490,7 +3490,7 @@ pplx::task> DefaultApi::createUserBa }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APICreateUserBadgeResponse()); + std::shared_ptr localVarResult(new CreateUserBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3511,7 +3511,7 @@ pplx::task> DefaultApi::createUserBa return localVarResult; }); } -pplx::task> DefaultApi::createVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t direction, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::createVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t direction, boost::optional userId, boost::optional anonUserId) const { @@ -3637,7 +3637,7 @@ pplx::task> DefaultApi::createVote(utility::string }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new VoteResponse()); + std::shared_ptr localVarResult(new CreateVoteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3658,7 +3658,7 @@ pplx::task> DefaultApi::createVote(utility::string return localVarResult; }); } -pplx::task> DefaultApi::deleteComment(utility::string_t tenantId, utility::string_t id, boost::optional contextUserId, boost::optional isLive) const +pplx::task> DefaultApi::deleteComment(utility::string_t tenantId, utility::string_t id, boost::optional contextUserId, boost::optional isLive) const { @@ -3779,7 +3779,7 @@ pplx::task> DefaultApi::deleteComment(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteCommentResult()); + std::shared_ptr localVarResult(new DeleteCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3934,7 +3934,7 @@ pplx::task> DefaultApi::deleteDomain return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplate(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteEmailTemplate(utility::string_t tenantId, utility::string_t id) const { @@ -4047,7 +4047,7 @@ pplx::task> DefaultApi::deleteEmailTemplate(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeleteEmailTemplateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4068,7 +4068,7 @@ pplx::task> DefaultApi::deleteEmailTemplate(ut return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplateRenderError(utility::string_t tenantId, utility::string_t id, utility::string_t errorId) const +pplx::task> DefaultApi::deleteEmailTemplateRenderError(utility::string_t tenantId, utility::string_t id, utility::string_t errorId) const { @@ -4182,7 +4182,7 @@ pplx::task> DefaultApi::deleteEmailTemplateRen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeleteEmailTemplateRenderErrorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4203,7 +4203,7 @@ pplx::task> DefaultApi::deleteEmailTemplateRen return localVarResult; }); } -pplx::task> DefaultApi::deleteHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> deleteHashTagRequestBody) const +pplx::task> DefaultApi::deleteHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> deleteHashTagRequestBody) const { @@ -4334,7 +4334,7 @@ pplx::task> DefaultApi::deleteHashTag(utility: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeleteHashTagResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4355,7 +4355,7 @@ pplx::task> DefaultApi::deleteHashTag(utility: return localVarResult; }); } -pplx::task> DefaultApi::deleteModerator(utility::string_t tenantId, utility::string_t id, boost::optional sendEmail) const +pplx::task> DefaultApi::deleteModerator(utility::string_t tenantId, utility::string_t id, boost::optional sendEmail) const { @@ -4472,7 +4472,7 @@ pplx::task> DefaultApi::deleteModerator(utilit }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeleteModeratorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4493,7 +4493,7 @@ pplx::task> DefaultApi::deleteModerator(utilit return localVarResult; }); } -pplx::task> DefaultApi::deleteNotificationCount(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteNotificationCount(utility::string_t tenantId, utility::string_t id) const { @@ -4606,7 +4606,7 @@ pplx::task> DefaultApi::deleteNotificationCoun }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeleteNotificationCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4761,7 +4761,7 @@ pplx::task> DefaultApi::deletePage(utilit return localVarResult; }); } -pplx::task> DefaultApi::deletePendingWebhookEvent(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deletePendingWebhookEvent(utility::string_t tenantId, utility::string_t id) const { @@ -4874,7 +4874,7 @@ pplx::task> DefaultApi::deletePendingWebhookEv }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeletePendingWebhookEventResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4895,7 +4895,7 @@ pplx::task> DefaultApi::deletePendingWebhookEv return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionConfig(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteQuestionConfig(utility::string_t tenantId, utility::string_t id) const { @@ -5008,7 +5008,7 @@ pplx::task> DefaultApi::deleteQuestionConfig(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeleteQuestionConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5029,7 +5029,7 @@ pplx::task> DefaultApi::deleteQuestionConfig(u return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionResult(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteQuestionResult(utility::string_t tenantId, utility::string_t id) const { @@ -5142,7 +5142,7 @@ pplx::task> DefaultApi::deleteQuestionResult(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeleteQuestionResultResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5443,7 +5443,7 @@ pplx::task> DefaultApi::deleteSub return localVarResult; }); } -pplx::task> DefaultApi::deleteTenant(utility::string_t tenantId, utility::string_t id, boost::optional sure) const +pplx::task> DefaultApi::deleteTenant(utility::string_t tenantId, utility::string_t id, boost::optional sure) const { @@ -5560,7 +5560,7 @@ pplx::task> DefaultApi::deleteTenant(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeleteTenantResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5581,7 +5581,7 @@ pplx::task> DefaultApi::deleteTenant(utility:: return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantPackage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteTenantPackage(utility::string_t tenantId, utility::string_t id) const { @@ -5694,7 +5694,7 @@ pplx::task> DefaultApi::deleteTenantPackage(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeleteTenantPackageResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5715,7 +5715,7 @@ pplx::task> DefaultApi::deleteTenantPackage(ut return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantUser(utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, boost::optional commentDeleteMode) const +pplx::task> DefaultApi::deleteTenantUser(utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, boost::optional commentDeleteMode) const { @@ -5836,7 +5836,7 @@ pplx::task> DefaultApi::deleteTenantUser(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new DeleteTenantUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5857,7 +5857,7 @@ pplx::task> DefaultApi::deleteTenantUser(utili return localVarResult; }); } -pplx::task> DefaultApi::deleteUserBadge(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteUserBadge(utility::string_t tenantId, utility::string_t id) const { @@ -5970,7 +5970,7 @@ pplx::task> DefaultApi::deleteUserBadge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptySuccessResponse()); + std::shared_ptr localVarResult(new DeleteUserBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5991,7 +5991,7 @@ pplx::task> DefaultApi::deleteUserBadge return localVarResult; }); } -pplx::task> DefaultApi::deleteVote(utility::string_t tenantId, utility::string_t id, boost::optional editKey) const +pplx::task> DefaultApi::deleteVote(utility::string_t tenantId, utility::string_t id, boost::optional editKey) const { @@ -6108,7 +6108,7 @@ pplx::task> DefaultApi::deleteVote(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new VoteDeleteResponse()); + std::shared_ptr localVarResult(new DeleteVoteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6129,7 +6129,7 @@ pplx::task> DefaultApi::deleteVote(utility:: return localVarResult; }); } -pplx::task> DefaultApi::flagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::flagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const { @@ -6250,7 +6250,7 @@ pplx::task> DefaultApi::flagComment(utility }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentResponse()); + std::shared_ptr localVarResult(new FlagCommentResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6271,7 +6271,7 @@ pplx::task> DefaultApi::flagComment(utility return localVarResult; }); } -pplx::task> DefaultApi::getAuditLogs(utility::string_t tenantId, boost::optional limit, boost::optional skip, boost::optional> order, boost::optional after, boost::optional before) const +pplx::task> DefaultApi::getAuditLogs(utility::string_t tenantId, boost::optional limit, boost::optional skip, boost::optional> order, boost::optional after, boost::optional before) const { @@ -6403,7 +6403,7 @@ pplx::task> DefaultApi::getAuditLogs(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetAuditLogsResponse()); + std::shared_ptr localVarResult(new GetAuditLogsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6424,7 +6424,7 @@ pplx::task> DefaultApi::getAuditLogs(utili return localVarResult; }); } -pplx::task> DefaultApi::getCachedNotificationCount(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getCachedNotificationCount(utility::string_t tenantId, utility::string_t id) const { @@ -6537,7 +6537,7 @@ pplx::task> DefaultApi::getC }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCachedNotificationCountResponse()); + std::shared_ptr localVarResult(new GetCachedNotificationCountResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6558,7 +6558,7 @@ pplx::task> DefaultApi::getC return localVarResult; }); } -pplx::task> DefaultApi::getComment(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getComment(utility::string_t tenantId, utility::string_t id) const { @@ -6671,7 +6671,7 @@ pplx::task> DefaultApi::getComment(utilit }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIGetCommentResponse()); + std::shared_ptr localVarResult(new GetCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6692,7 +6692,7 @@ pplx::task> DefaultApi::getComment(utilit return localVarResult; }); } -pplx::task> DefaultApi::getComments(utility::string_t tenantId, boost::optional page, boost::optional limit, boost::optional skip, boost::optional asTree, boost::optional skipChildren, boost::optional limitChildren, boost::optional maxTreeDepth, boost::optional urlId, boost::optional userId, boost::optional anonUserId, boost::optional contextUserId, boost::optional hashTag, boost::optional parentId, boost::optional> direction, boost::optional fromDate, boost::optional toDate) const +pplx::task> DefaultApi::getComments(utility::string_t tenantId, boost::optional page, boost::optional limit, boost::optional skip, boost::optional asTree, boost::optional skipChildren, boost::optional limitChildren, boost::optional maxTreeDepth, boost::optional urlId, boost::optional userId, boost::optional anonUserId, boost::optional contextUserId, boost::optional hashTag, boost::optional parentId, boost::optional> direction, boost::optional fromDate, boost::optional toDate) const { @@ -6868,7 +6868,7 @@ pplx::task> DefaultApi::getComments(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIGetCommentsResponse()); + std::shared_ptr localVarResult(new GetCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7156,7 +7156,7 @@ pplx::task> DefaultApi::getDomainConfi return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplate(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getEmailTemplate(utility::string_t tenantId, utility::string_t id) const { @@ -7269,7 +7269,7 @@ pplx::task> DefaultApi::getEmailTempla }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplateResponse()); + std::shared_ptr localVarResult(new GetEmailTemplateResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7290,7 +7290,7 @@ pplx::task> DefaultApi::getEmailTempla return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateDefinitions(utility::string_t tenantId) const +pplx::task> DefaultApi::getEmailTemplateDefinitions(utility::string_t tenantId) const { @@ -7402,7 +7402,7 @@ pplx::task> DefaultApi::get }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplateDefinitionsResponse()); + std::shared_ptr localVarResult(new GetEmailTemplateDefinitionsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7423,7 +7423,7 @@ pplx::task> DefaultApi::get return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateRenderErrors(utility::string_t tenantId, utility::string_t id, boost::optional skip) const +pplx::task> DefaultApi::getEmailTemplateRenderErrors(utility::string_t tenantId, utility::string_t id, boost::optional skip) const { @@ -7540,7 +7540,7 @@ pplx::task> DefaultApi::ge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplateRenderErrorsResponse()); + std::shared_ptr localVarResult(new GetEmailTemplateRenderErrorsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7561,7 +7561,7 @@ pplx::task> DefaultApi::ge return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplates(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getEmailTemplates(utility::string_t tenantId, boost::optional skip) const { @@ -7677,7 +7677,7 @@ pplx::task> DefaultApi::getEmailTempl }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplatesResponse()); + std::shared_ptr localVarResult(new GetEmailTemplatesResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7698,7 +7698,7 @@ pplx::task> DefaultApi::getEmailTempl return localVarResult; }); } -pplx::task> DefaultApi::getFeedPosts(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags) const +pplx::task> DefaultApi::getFeedPosts(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags) const { @@ -7822,7 +7822,7 @@ pplx::task> DefaultApi::getFeedPosts(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetFeedPostsResponse()); + std::shared_ptr localVarResult(new GetFeedPostsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7843,7 +7843,7 @@ pplx::task> DefaultApi::getFeedPosts(utili return localVarResult; }); } -pplx::task> DefaultApi::getHashTags(utility::string_t tenantId, boost::optional page) const +pplx::task> DefaultApi::getHashTags(utility::string_t tenantId, boost::optional page) const { @@ -7959,7 +7959,7 @@ pplx::task> DefaultApi::getHashTags(utility }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetHashTagsResponse()); + std::shared_ptr localVarResult(new GetHashTagsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7980,7 +7980,7 @@ pplx::task> DefaultApi::getHashTags(utility return localVarResult; }); } -pplx::task> DefaultApi::getModerator(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getModerator(utility::string_t tenantId, utility::string_t id) const { @@ -8093,7 +8093,7 @@ pplx::task> DefaultApi::getModerator(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetModeratorResponse()); + std::shared_ptr localVarResult(new GetModeratorResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8114,7 +8114,7 @@ pplx::task> DefaultApi::getModerator(utili return localVarResult; }); } -pplx::task> DefaultApi::getModerators(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getModerators(utility::string_t tenantId, boost::optional skip) const { @@ -8230,7 +8230,7 @@ pplx::task> DefaultApi::getModerators(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetModeratorsResponse()); + std::shared_ptr localVarResult(new GetModeratorsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8251,7 +8251,7 @@ pplx::task> DefaultApi::getModerators(uti return localVarResult; }); } -pplx::task> DefaultApi::getNotificationCount(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type) const +pplx::task> DefaultApi::getNotificationCount(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type) const { @@ -8383,7 +8383,7 @@ pplx::task> DefaultApi::getNotific }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetNotificationCountResponse()); + std::shared_ptr localVarResult(new GetNotificationCountResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8404,7 +8404,7 @@ pplx::task> DefaultApi::getNotific return localVarResult; }); } -pplx::task> DefaultApi::getNotifications(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type, boost::optional skip) const +pplx::task> DefaultApi::getNotifications(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type, boost::optional skip) const { @@ -8540,7 +8540,7 @@ pplx::task> DefaultApi::getNotificatio }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetNotificationsResponse()); + std::shared_ptr localVarResult(new GetNotificationsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8830,7 +8830,7 @@ pplx::task> DefaultApi::getPages(utility::s return localVarResult; }); } -pplx::task> DefaultApi::getPendingWebhookEventCount(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT) const +pplx::task> DefaultApi::getPendingWebhookEventCount(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT) const { @@ -8966,7 +8966,7 @@ pplx::task> DefaultApi::get }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetPendingWebhookEventCountResponse()); + std::shared_ptr localVarResult(new GetPendingWebhookEventCountResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8987,7 +8987,7 @@ pplx::task> DefaultApi::get return localVarResult; }); } -pplx::task> DefaultApi::getPendingWebhookEvents(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT, boost::optional skip) const +pplx::task> DefaultApi::getPendingWebhookEvents(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT, boost::optional skip) const { @@ -9127,7 +9127,7 @@ pplx::task> DefaultApi::getPend }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetPendingWebhookEventsResponse()); + std::shared_ptr localVarResult(new GetPendingWebhookEventsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9148,7 +9148,7 @@ pplx::task> DefaultApi::getPend return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfig(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getQuestionConfig(utility::string_t tenantId, utility::string_t id) const { @@ -9261,7 +9261,7 @@ pplx::task> DefaultApi::getQuestionCo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionConfigResponse()); + std::shared_ptr localVarResult(new GetQuestionConfigResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9282,7 +9282,7 @@ pplx::task> DefaultApi::getQuestionCo return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfigs(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getQuestionConfigs(utility::string_t tenantId, boost::optional skip) const { @@ -9398,7 +9398,7 @@ pplx::task> DefaultApi::getQuestionC }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionConfigsResponse()); + std::shared_ptr localVarResult(new GetQuestionConfigsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9419,7 +9419,7 @@ pplx::task> DefaultApi::getQuestionC return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResult(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getQuestionResult(utility::string_t tenantId, utility::string_t id) const { @@ -9532,7 +9532,7 @@ pplx::task> DefaultApi::getQuestionRe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionResultResponse()); + std::shared_ptr localVarResult(new GetQuestionResultResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9553,7 +9553,7 @@ pplx::task> DefaultApi::getQuestionRe return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResults(utility::string_t tenantId, boost::optional urlId, boost::optional userId, boost::optional startDate, boost::optional questionId, boost::optional questionIds, boost::optional skip) const +pplx::task> DefaultApi::getQuestionResults(utility::string_t tenantId, boost::optional urlId, boost::optional userId, boost::optional startDate, boost::optional questionId, boost::optional questionIds, boost::optional skip) const { @@ -9689,7 +9689,7 @@ pplx::task> DefaultApi::getQuestionR }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionResultsResponse()); + std::shared_ptr localVarResult(new GetQuestionResultsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10252,7 +10252,7 @@ pplx::task> DefaultApi::getSubscrip return localVarResult; }); } -pplx::task> DefaultApi::getTenant(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenant(utility::string_t tenantId, utility::string_t id) const { @@ -10365,7 +10365,7 @@ pplx::task> DefaultApi::getTenant(utility::st }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantResponse()); + std::shared_ptr localVarResult(new GetTenantResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10386,7 +10386,7 @@ pplx::task> DefaultApi::getTenant(utility::st return localVarResult; }); } -pplx::task> DefaultApi::getTenantDailyUsages(utility::string_t tenantId, boost::optional yearNumber, boost::optional monthNumber, boost::optional dayNumber, boost::optional skip) const +pplx::task> DefaultApi::getTenantDailyUsages(utility::string_t tenantId, boost::optional yearNumber, boost::optional monthNumber, boost::optional dayNumber, boost::optional skip) const { @@ -10514,7 +10514,7 @@ pplx::task> DefaultApi::getTenantD }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantDailyUsagesResponse()); + std::shared_ptr localVarResult(new GetTenantDailyUsagesResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10535,7 +10535,7 @@ pplx::task> DefaultApi::getTenantD return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenantPackage(utility::string_t tenantId, utility::string_t id) const { @@ -10648,7 +10648,7 @@ pplx::task> DefaultApi::getTenantPacka }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantPackageResponse()); + std::shared_ptr localVarResult(new GetTenantPackageResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10669,7 +10669,7 @@ pplx::task> DefaultApi::getTenantPacka return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackages(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getTenantPackages(utility::string_t tenantId, boost::optional skip) const { @@ -10785,7 +10785,7 @@ pplx::task> DefaultApi::getTenantPack }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantPackagesResponse()); + std::shared_ptr localVarResult(new GetTenantPackagesResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10806,7 +10806,7 @@ pplx::task> DefaultApi::getTenantPack return localVarResult; }); } -pplx::task> DefaultApi::getTenantUser(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenantUser(utility::string_t tenantId, utility::string_t id) const { @@ -10919,7 +10919,7 @@ pplx::task> DefaultApi::getTenantUser(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantUserResponse()); + std::shared_ptr localVarResult(new GetTenantUserResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10940,7 +10940,7 @@ pplx::task> DefaultApi::getTenantUser(uti return localVarResult; }); } -pplx::task> DefaultApi::getTenantUsers(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getTenantUsers(utility::string_t tenantId, boost::optional skip) const { @@ -11056,7 +11056,7 @@ pplx::task> DefaultApi::getTenantUsers(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantUsersResponse()); + std::shared_ptr localVarResult(new GetTenantUsersResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11077,7 +11077,7 @@ pplx::task> DefaultApi::getTenantUsers(u return localVarResult; }); } -pplx::task> DefaultApi::getTenants(utility::string_t tenantId, boost::optional meta, boost::optional skip) const +pplx::task> DefaultApi::getTenants(utility::string_t tenantId, boost::optional meta, boost::optional skip) const { @@ -11197,7 +11197,7 @@ pplx::task> DefaultApi::getTenants(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantsResponse()); + std::shared_ptr localVarResult(new GetTenantsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11218,7 +11218,7 @@ pplx::task> DefaultApi::getTenants(utility:: return localVarResult; }); } -pplx::task> DefaultApi::getTicket(utility::string_t tenantId, utility::string_t id, boost::optional userId) const +pplx::task> DefaultApi::getTicket(utility::string_t tenantId, utility::string_t id, boost::optional userId) const { @@ -11335,7 +11335,7 @@ pplx::task> DefaultApi::getTicket(utility::st }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTicketResponse()); + std::shared_ptr localVarResult(new GetTicketResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11356,7 +11356,7 @@ pplx::task> DefaultApi::getTicket(utility::st return localVarResult; }); } -pplx::task> DefaultApi::getTickets(utility::string_t tenantId, boost::optional userId, boost::optional state, boost::optional skip, boost::optional limit) const +pplx::task> DefaultApi::getTickets(utility::string_t tenantId, boost::optional userId, boost::optional state, boost::optional skip, boost::optional limit) const { @@ -11484,7 +11484,7 @@ pplx::task> DefaultApi::getTickets(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTicketsResponse()); + std::shared_ptr localVarResult(new GetTicketsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11505,7 +11505,7 @@ pplx::task> DefaultApi::getTickets(utility:: return localVarResult; }); } -pplx::task> DefaultApi::getUser(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUser(utility::string_t tenantId, utility::string_t id) const { @@ -11618,7 +11618,7 @@ pplx::task> DefaultApi::getUser(utility::string }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserResponse()); + std::shared_ptr localVarResult(new GetUserResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11639,7 +11639,7 @@ pplx::task> DefaultApi::getUser(utility::string return localVarResult; }); } -pplx::task> DefaultApi::getUserBadge(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUserBadge(utility::string_t tenantId, utility::string_t id) const { @@ -11752,7 +11752,7 @@ pplx::task> DefaultApi::getUserBadge(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIGetUserBadgeResponse()); + std::shared_ptr localVarResult(new GetUserBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11773,7 +11773,7 @@ pplx::task> DefaultApi::getUserBadge(ut return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressById(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUserBadgeProgressById(utility::string_t tenantId, utility::string_t id) const { @@ -11886,7 +11886,7 @@ pplx::task> DefaultApi::getUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIGetUserBadgeProgressResponse()); + std::shared_ptr localVarResult(new GetUserBadgeProgressByIdResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11907,7 +11907,7 @@ pplx::task> DefaultApi::getUser return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressByUserId(utility::string_t tenantId, utility::string_t userId) const +pplx::task> DefaultApi::getUserBadgeProgressByUserId(utility::string_t tenantId, utility::string_t userId) const { @@ -12020,7 +12020,7 @@ pplx::task> DefaultApi::getUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIGetUserBadgeProgressResponse()); + std::shared_ptr localVarResult(new GetUserBadgeProgressByUserIdResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12041,7 +12041,7 @@ pplx::task> DefaultApi::getUser return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressList(utility::string_t tenantId, boost::optional userId, boost::optional limit, boost::optional skip) const +pplx::task> DefaultApi::getUserBadgeProgressList(utility::string_t tenantId, boost::optional userId, boost::optional limit, boost::optional skip) const { @@ -12165,7 +12165,7 @@ pplx::task> DefaultApi::get }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIGetUserBadgeProgressListResponse()); + std::shared_ptr localVarResult(new GetUserBadgeProgressListResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12186,7 +12186,7 @@ pplx::task> DefaultApi::get return localVarResult; }); } -pplx::task> DefaultApi::getUserBadges(utility::string_t tenantId, boost::optional userId, boost::optional badgeId, boost::optional type, boost::optional displayedOnComments, boost::optional limit, boost::optional skip) const +pplx::task> DefaultApi::getUserBadges(utility::string_t tenantId, boost::optional userId, boost::optional badgeId, boost::optional type, boost::optional displayedOnComments, boost::optional limit, boost::optional skip) const { @@ -12322,7 +12322,7 @@ pplx::task> DefaultApi::getUserBadges( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIGetUserBadgesResponse()); + std::shared_ptr localVarResult(new GetUserBadgesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12343,7 +12343,7 @@ pplx::task> DefaultApi::getUserBadges( return localVarResult; }); } -pplx::task> DefaultApi::getVotes(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> DefaultApi::getVotes(utility::string_t tenantId, utility::string_t urlId) const { @@ -12458,7 +12458,7 @@ pplx::task> DefaultApi::getVotes(utility::stri }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetVotesResponse()); + std::shared_ptr localVarResult(new GetVotesResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12479,7 +12479,7 @@ pplx::task> DefaultApi::getVotes(utility::stri return localVarResult; }); } -pplx::task> DefaultApi::getVotesForUser(utility::string_t tenantId, utility::string_t urlId, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::getVotesForUser(utility::string_t tenantId, utility::string_t urlId, boost::optional userId, boost::optional anonUserId) const { @@ -12602,7 +12602,7 @@ pplx::task> DefaultApi::getVotesForUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetVotesForUserResponse()); + std::shared_ptr localVarResult(new GetVotesForUserResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12780,7 +12780,7 @@ pplx::task> DefaultApi::patchDomainCo return localVarResult; }); } -pplx::task> DefaultApi::patchHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> updateHashTagBody) const +pplx::task> DefaultApi::patchHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> updateHashTagBody) const { @@ -12911,7 +12911,7 @@ pplx::task> DefaultApi::patchHashTag(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateHashTagResponse()); + std::shared_ptr localVarResult(new PatchHashTagResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -13568,7 +13568,7 @@ pplx::task> DefaultApi::putSSOUser(utilit return localVarResult; }); } -pplx::task> DefaultApi::renderEmailTemplate(utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody, boost::optional locale) const +pplx::task> DefaultApi::renderEmailTemplate(utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody, boost::optional locale) const { // verify the required parameter 'renderEmailTemplateBody' is set @@ -13707,7 +13707,7 @@ pplx::task> DefaultApi::renderEmail }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new RenderEmailTemplateResponse()); + std::shared_ptr localVarResult(new RenderEmailTemplateResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -13728,7 +13728,7 @@ pplx::task> DefaultApi::renderEmail return localVarResult; }); } -pplx::task> DefaultApi::replaceTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody) const +pplx::task> DefaultApi::replaceTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody) const { // verify the required parameter 'replaceTenantPackageBody' is set @@ -13864,7 +13864,7 @@ pplx::task> DefaultApi::replaceTenantPackage(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new ReplaceTenantPackageResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -13885,7 +13885,7 @@ pplx::task> DefaultApi::replaceTenantPackage(u return localVarResult; }); } -pplx::task> DefaultApi::replaceTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody, boost::optional updateComments) const +pplx::task> DefaultApi::replaceTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody, boost::optional updateComments) const { // verify the required parameter 'replaceTenantUserBody' is set @@ -14025,7 +14025,7 @@ pplx::task> DefaultApi::replaceTenantUser(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new ReplaceTenantUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14046,7 +14046,7 @@ pplx::task> DefaultApi::replaceTenantUser(util return localVarResult; }); } -pplx::task> DefaultApi::saveComment(utility::string_t tenantId, std::shared_ptr createCommentParams, boost::optional isLive, boost::optional doSpamCheck, boost::optional sendEmails, boost::optional populateNotifications) const +pplx::task> DefaultApi::saveComment(utility::string_t tenantId, std::shared_ptr createCommentParams, boost::optional isLive, boost::optional doSpamCheck, boost::optional sendEmails, boost::optional populateNotifications) const { // verify the required parameter 'createCommentParams' is set @@ -14197,7 +14197,7 @@ pplx::task> DefaultApi::saveComment(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APISaveCommentResponse()); + std::shared_ptr localVarResult(new SaveCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14399,7 +14399,7 @@ pplx::task>> DefaultApi::s return localVarResult; }); } -pplx::task> DefaultApi::sendInvite(utility::string_t tenantId, utility::string_t id, utility::string_t fromName) const +pplx::task> DefaultApi::sendInvite(utility::string_t tenantId, utility::string_t id, utility::string_t fromName) const { @@ -14515,7 +14515,7 @@ pplx::task> DefaultApi::sendInvite(utility::st }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new SendInviteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14536,7 +14536,7 @@ pplx::task> DefaultApi::sendInvite(utility::st return localVarResult; }); } -pplx::task> DefaultApi::sendLoginLink(utility::string_t tenantId, utility::string_t id, boost::optional redirectURL) const +pplx::task> DefaultApi::sendLoginLink(utility::string_t tenantId, utility::string_t id, boost::optional redirectURL) const { @@ -14653,7 +14653,7 @@ pplx::task> DefaultApi::sendLoginLink(utility: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new SendLoginLinkResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14674,7 +14674,7 @@ pplx::task> DefaultApi::sendLoginLink(utility: return localVarResult; }); } -pplx::task> DefaultApi::unBlockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::unBlockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams, boost::optional userId, boost::optional anonUserId) const { // verify the required parameter 'unBlockFromCommentParams' is set @@ -14818,7 +14818,7 @@ pplx::task> DefaultApi::unBlockUserFromComment(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UnblockSuccess()); + std::shared_ptr localVarResult(new UnBlockUserFromCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14839,7 +14839,7 @@ pplx::task> DefaultApi::unBlockUserFromComment(u return localVarResult; }); } -pplx::task> DefaultApi::unFlagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::unFlagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const { @@ -14960,7 +14960,7 @@ pplx::task> DefaultApi::unFlagComment(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentResponse()); + std::shared_ptr localVarResult(new UnFlagCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14981,7 +14981,7 @@ pplx::task> DefaultApi::unFlagComment(utili return localVarResult; }); } -pplx::task> DefaultApi::updateComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams, boost::optional contextUserId, boost::optional doSpamCheck, boost::optional isLive) const +pplx::task> DefaultApi::updateComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams, boost::optional contextUserId, boost::optional doSpamCheck, boost::optional isLive) const { // verify the required parameter 'updatableCommentParams' is set @@ -15129,7 +15129,7 @@ pplx::task> DefaultApi::updateComment(utility: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UpdateCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15150,7 +15150,7 @@ pplx::task> DefaultApi::updateComment(utility: return localVarResult; }); } -pplx::task> DefaultApi::updateEmailTemplate(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody) const +pplx::task> DefaultApi::updateEmailTemplate(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody) const { // verify the required parameter 'updateEmailTemplateBody' is set @@ -15286,7 +15286,7 @@ pplx::task> DefaultApi::updateEmailTemplate(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UpdateEmailTemplateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15307,7 +15307,7 @@ pplx::task> DefaultApi::updateEmailTemplate(ut return localVarResult; }); } -pplx::task> DefaultApi::updateFeedPost(utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost) const +pplx::task> DefaultApi::updateFeedPost(utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost) const { // verify the required parameter 'feedPost' is set @@ -15443,7 +15443,7 @@ pplx::task> DefaultApi::updateFeedPost(utility }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UpdateFeedPostResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15464,7 +15464,7 @@ pplx::task> DefaultApi::updateFeedPost(utility return localVarResult; }); } -pplx::task> DefaultApi::updateModerator(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody) const +pplx::task> DefaultApi::updateModerator(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody) const { // verify the required parameter 'updateModeratorBody' is set @@ -15600,7 +15600,7 @@ pplx::task> DefaultApi::updateModerator(utilit }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UpdateModeratorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15621,7 +15621,7 @@ pplx::task> DefaultApi::updateModerator(utilit return localVarResult; }); } -pplx::task> DefaultApi::updateNotification(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody, boost::optional userId) const +pplx::task> DefaultApi::updateNotification(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody, boost::optional userId) const { // verify the required parameter 'updateNotificationBody' is set @@ -15761,7 +15761,7 @@ pplx::task> DefaultApi::updateNotification(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UpdateNotificationResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15782,7 +15782,7 @@ pplx::task> DefaultApi::updateNotification(uti return localVarResult; }); } -pplx::task> DefaultApi::updateQuestionConfig(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody) const +pplx::task> DefaultApi::updateQuestionConfig(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody) const { // verify the required parameter 'updateQuestionConfigBody' is set @@ -15918,7 +15918,7 @@ pplx::task> DefaultApi::updateQuestionConfig(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UpdateQuestionConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15939,7 +15939,7 @@ pplx::task> DefaultApi::updateQuestionConfig(u return localVarResult; }); } -pplx::task> DefaultApi::updateQuestionResult(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody) const +pplx::task> DefaultApi::updateQuestionResult(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody) const { // verify the required parameter 'updateQuestionResultBody' is set @@ -16075,7 +16075,7 @@ pplx::task> DefaultApi::updateQuestionResult(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UpdateQuestionResultResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16257,7 +16257,7 @@ pplx::task> DefaultApi::updateSub return localVarResult; }); } -pplx::task> DefaultApi::updateTenant(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody) const +pplx::task> DefaultApi::updateTenant(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody) const { // verify the required parameter 'updateTenantBody' is set @@ -16393,7 +16393,7 @@ pplx::task> DefaultApi::updateTenant(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UpdateTenantResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16414,7 +16414,7 @@ pplx::task> DefaultApi::updateTenant(utility:: return localVarResult; }); } -pplx::task> DefaultApi::updateTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody) const +pplx::task> DefaultApi::updateTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody) const { // verify the required parameter 'updateTenantPackageBody' is set @@ -16550,7 +16550,7 @@ pplx::task> DefaultApi::updateTenantPackage(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UpdateTenantPackageResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16571,7 +16571,7 @@ pplx::task> DefaultApi::updateTenantPackage(ut return localVarResult; }); } -pplx::task> DefaultApi::updateTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody, boost::optional updateComments) const +pplx::task> DefaultApi::updateTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody, boost::optional updateComments) const { // verify the required parameter 'updateTenantUserBody' is set @@ -16711,7 +16711,7 @@ pplx::task> DefaultApi::updateTenantUser(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UpdateTenantUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16732,7 +16732,7 @@ pplx::task> DefaultApi::updateTenantUser(utili return localVarResult; }); } -pplx::task> DefaultApi::updateUserBadge(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams) const +pplx::task> DefaultApi::updateUserBadge(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams) const { // verify the required parameter 'updateUserBadgeParams' is set @@ -16868,7 +16868,7 @@ pplx::task> DefaultApi::updateUserBadge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptySuccessResponse()); + std::shared_ptr localVarResult(new UpdateUserBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { diff --git a/client/src/api/ModerationApi.cpp b/client/src/api/ModerationApi.cpp index a04e713..0de32fc 100644 --- a/client/src/api/ModerationApi.cpp +++ b/client/src/api/ModerationApi.cpp @@ -35,7 +35,7 @@ ModerationApi::~ModerationApi() { } -pplx::task> ModerationApi::deleteModerationVote(utility::string_t commentId, utility::string_t voteId, boost::optional sso) const +pplx::task> ModerationApi::deleteModerationVote(utility::string_t commentId, utility::string_t voteId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -78,6 +78,14 @@ pplx::task> ModerationApi::deleteModerationV std::unordered_set localVarConsumeHttpContentTypes; + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -142,7 +150,7 @@ pplx::task> ModerationApi::deleteModerationV }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new VoteDeleteResponse()); + std::shared_ptr localVarResult(new DeleteModerationVoteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -163,7 +171,7 @@ pplx::task> ModerationApi::deleteModerationV return localVarResult; }); } -pplx::task> ModerationApi::getApiComments(boost::optional page, boost::optional count, boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional demo, boost::optional sso) const +pplx::task> ModerationApi::getApiComments(boost::optional page, boost::optional count, boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional demo, boost::optional tenantId, boost::optional sso) const { @@ -236,6 +244,10 @@ pplx::task> ModerationApi::get { localVarQueryParams[utility::conversions::to_string_t("demo")] = ApiClient::parameterToString(*demo); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -300,7 +312,7 @@ pplx::task> ModerationApi::get }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationAPIGetCommentsResponse()); + std::shared_ptr localVarResult(new GetApiCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -321,7 +333,7 @@ pplx::task> ModerationApi::get return localVarResult; }); } -pplx::task> ModerationApi::getApiExportStatus(boost::optional batchJobId, boost::optional sso) const +pplx::task> ModerationApi::getApiExportStatus(boost::optional batchJobId, boost::optional tenantId, boost::optional sso) const { @@ -366,6 +378,10 @@ pplx::task> ModerationApi::getAp { localVarQueryParams[utility::conversions::to_string_t("batchJobId")] = ApiClient::parameterToString(*batchJobId); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -430,7 +446,7 @@ pplx::task> ModerationApi::getAp }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationExportStatusResponse()); + std::shared_ptr localVarResult(new GetApiExportStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -451,7 +467,7 @@ pplx::task> ModerationApi::getAp return localVarResult; }); } -pplx::task> ModerationApi::getApiIds(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional afterId, boost::optional demo, boost::optional sso) const +pplx::task> ModerationApi::getApiIds(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional afterId, boost::optional demo, boost::optional tenantId, boost::optional sso) const { @@ -516,6 +532,10 @@ pplx::task> ModerationApi::g { localVarQueryParams[utility::conversions::to_string_t("demo")] = ApiClient::parameterToString(*demo); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -580,7 +600,7 @@ pplx::task> ModerationApi::g }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationAPIGetCommentIdsResponse()); + std::shared_ptr localVarResult(new GetApiIdsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -601,7 +621,7 @@ pplx::task> ModerationApi::g return localVarResult; }); } -pplx::task> ModerationApi::getBanUsersFromComment(utility::string_t commentId, boost::optional sso) const +pplx::task> ModerationApi::getBanUsersFromComment(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const { @@ -643,6 +663,10 @@ pplx::task> ModerationApi::ge std::unordered_set localVarConsumeHttpContentTypes; + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -707,7 +731,7 @@ pplx::task> ModerationApi::ge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetBannedUsersFromCommentResponse()); + std::shared_ptr localVarResult(new GetBanUsersFromCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -728,7 +752,7 @@ pplx::task> ModerationApi::ge return localVarResult; }); } -pplx::task> ModerationApi::getCommentBanStatus(utility::string_t commentId, boost::optional sso) const +pplx::task> ModerationApi::getCommentBanStatus(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const { @@ -770,6 +794,10 @@ pplx::task> ModerationApi::getComme std::unordered_set localVarConsumeHttpContentTypes; + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -834,7 +862,7 @@ pplx::task> ModerationApi::getComme }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentBanStatusResponse()); + std::shared_ptr localVarResult(new GetCommentBanStatusResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -855,7 +883,7 @@ pplx::task> ModerationApi::getComme return localVarResult; }); } -pplx::task> ModerationApi::getCommentChildren(utility::string_t commentId, boost::optional sso) const +pplx::task> ModerationApi::getCommentChildren(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const { @@ -897,6 +925,10 @@ pplx::task> ModerationApi::g std::unordered_set localVarConsumeHttpContentTypes; + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -961,7 +993,7 @@ pplx::task> ModerationApi::g }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationAPIChildCommentsResponse()); + std::shared_ptr localVarResult(new GetCommentChildrenResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -982,7 +1014,7 @@ pplx::task> ModerationApi::g return localVarResult; }); } -pplx::task> ModerationApi::getCount(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filter, boost::optional searchFilters, boost::optional demo, boost::optional sso) const +pplx::task> ModerationApi::getCount(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filter, boost::optional searchFilters, boost::optional demo, boost::optional tenantId, boost::optional sso) const { @@ -1043,6 +1075,10 @@ pplx::task> ModerationApi::g { localVarQueryParams[utility::conversions::to_string_t("demo")] = ApiClient::parameterToString(*demo); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -1107,7 +1143,7 @@ pplx::task> ModerationApi::g }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationAPICountCommentsResponse()); + std::shared_ptr localVarResult(new GetCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1128,7 +1164,7 @@ pplx::task> ModerationApi::g return localVarResult; }); } -pplx::task> ModerationApi::getCounts(boost::optional sso) const +pplx::task> ModerationApi::getCounts(boost::optional tenantId, boost::optional sso) const { @@ -1169,6 +1205,10 @@ pplx::task> ModerationApi::getCount std::unordered_set localVarConsumeHttpContentTypes; + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -1233,7 +1273,7 @@ pplx::task> ModerationApi::getCount }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetBannedUsersCountResponse()); + std::shared_ptr localVarResult(new GetCountsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1254,7 +1294,7 @@ pplx::task> ModerationApi::getCount return localVarResult; }); } -pplx::task> ModerationApi::getLogs(utility::string_t commentId, boost::optional sso) const +pplx::task> ModerationApi::getLogs(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const { @@ -1296,6 +1336,10 @@ pplx::task> ModerationApi::getLogs std::unordered_set localVarConsumeHttpContentTypes; + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -1360,7 +1404,7 @@ pplx::task> ModerationApi::getLogs }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationAPIGetLogsResponse()); + std::shared_ptr localVarResult(new GetLogsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1381,7 +1425,7 @@ pplx::task> ModerationApi::getLogs return localVarResult; }); } -pplx::task> ModerationApi::getManualBadges(boost::optional sso) const +pplx::task> ModerationApi::getManualBadges(boost::optional tenantId, boost::optional sso) const { @@ -1422,6 +1466,10 @@ pplx::task> ModerationApi::getMan std::unordered_set localVarConsumeHttpContentTypes; + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -1486,7 +1534,7 @@ pplx::task> ModerationApi::getMan }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantManualBadgesResponse()); + std::shared_ptr localVarResult(new GetManualBadgesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1507,7 +1555,7 @@ pplx::task> ModerationApi::getMan return localVarResult; }); } -pplx::task> ModerationApi::getManualBadgesForUser(boost::optional badgesUserId, boost::optional commentId, boost::optional sso) const +pplx::task> ModerationApi::getManualBadgesForUser(boost::optional badgesUserId, boost::optional commentId, boost::optional tenantId, boost::optional sso) const { @@ -1556,6 +1604,10 @@ pplx::task> ModerationApi::getManua { localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -1620,7 +1672,7 @@ pplx::task> ModerationApi::getManua }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserManualBadgesResponse()); + std::shared_ptr localVarResult(new GetManualBadgesForUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1641,7 +1693,7 @@ pplx::task> ModerationApi::getManua return localVarResult; }); } -pplx::task> ModerationApi::getModerationComment(utility::string_t commentId, boost::optional includeEmail, boost::optional includeIP, boost::optional sso) const +pplx::task> ModerationApi::getModerationComment(utility::string_t commentId, boost::optional includeEmail, boost::optional includeIP, boost::optional tenantId, boost::optional sso) const { @@ -1691,6 +1743,10 @@ pplx::task> ModerationApi::getMode { localVarQueryParams[utility::conversions::to_string_t("includeIP")] = ApiClient::parameterToString(*includeIP); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -1755,7 +1811,7 @@ pplx::task> ModerationApi::getMode }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationAPICommentResponse()); + std::shared_ptr localVarResult(new GetModerationCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1776,7 +1832,7 @@ pplx::task> ModerationApi::getMode return localVarResult; }); } -pplx::task> ModerationApi::getModerationCommentText(utility::string_t commentId, boost::optional sso) const +pplx::task> ModerationApi::getModerationCommentText(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const { @@ -1818,6 +1874,10 @@ pplx::task> ModerationApi::getModeration std::unordered_set localVarConsumeHttpContentTypes; + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -1882,7 +1942,7 @@ pplx::task> ModerationApi::getModeration }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentTextResponse()); + std::shared_ptr localVarResult(new GetModerationCommentTextResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1903,7 +1963,7 @@ pplx::task> ModerationApi::getModeration return localVarResult; }); } -pplx::task> ModerationApi::getPreBanSummary(utility::string_t commentId, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional sso) const +pplx::task> ModerationApi::getPreBanSummary(utility::string_t commentId, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional tenantId, boost::optional sso) const { @@ -1957,6 +2017,10 @@ pplx::task> ModerationApi::getPreBanSummary(utili { localVarQueryParams[utility::conversions::to_string_t("includeByEmailDomain")] = ApiClient::parameterToString(*includeByEmailDomain); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -2021,7 +2085,7 @@ pplx::task> ModerationApi::getPreBanSummary(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PreBanSummary()); + std::shared_ptr localVarResult(new GetPreBanSummaryResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2042,7 +2106,7 @@ pplx::task> ModerationApi::getPreBanSummary(utili return localVarResult; }); } -pplx::task> ModerationApi::getSearchCommentsSummary(boost::optional value, boost::optional filters, boost::optional searchFilters, boost::optional sso) const +pplx::task> ModerationApi::getSearchCommentsSummary(boost::optional value, boost::optional filters, boost::optional searchFilters, boost::optional tenantId, boost::optional sso) const { @@ -2095,6 +2159,10 @@ pplx::task> ModerationApi::getS { localVarQueryParams[utility::conversions::to_string_t("searchFilters")] = ApiClient::parameterToString(*searchFilters); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -2159,7 +2227,7 @@ pplx::task> ModerationApi::getS }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationCommentSearchResponse()); + std::shared_ptr localVarResult(new GetSearchCommentsSummaryResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2180,7 +2248,7 @@ pplx::task> ModerationApi::getS return localVarResult; }); } -pplx::task> ModerationApi::getSearchPages(boost::optional value, boost::optional sso) const +pplx::task> ModerationApi::getSearchPages(boost::optional value, boost::optional tenantId, boost::optional sso) const { @@ -2225,6 +2293,10 @@ pplx::task> ModerationApi::getSear { localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -2289,7 +2361,7 @@ pplx::task> ModerationApi::getSear }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationPageSearchResponse()); + std::shared_ptr localVarResult(new GetSearchPagesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2310,7 +2382,7 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getSearchSites(boost::optional value, boost::optional sso) const +pplx::task> ModerationApi::getSearchSites(boost::optional value, boost::optional tenantId, boost::optional sso) const { @@ -2355,6 +2427,10 @@ pplx::task> ModerationApi::getSear { localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -2419,7 +2495,7 @@ pplx::task> ModerationApi::getSear }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationSiteSearchResponse()); + std::shared_ptr localVarResult(new GetSearchSitesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2440,7 +2516,7 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getSearchSuggest(boost::optional textSearch, boost::optional sso) const +pplx::task> ModerationApi::getSearchSuggest(boost::optional textSearch, boost::optional tenantId, boost::optional sso) const { @@ -2485,6 +2561,10 @@ pplx::task> ModerationApi::getSearchS { localVarQueryParams[utility::conversions::to_string_t("text-search")] = ApiClient::parameterToString(*textSearch); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -2549,7 +2629,7 @@ pplx::task> ModerationApi::getSearchS }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationSuggestResponse()); + std::shared_ptr localVarResult(new GetSearchSuggestResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2570,7 +2650,7 @@ pplx::task> ModerationApi::getSearchS return localVarResult; }); } -pplx::task> ModerationApi::getSearchUsers(boost::optional value, boost::optional sso) const +pplx::task> ModerationApi::getSearchUsers(boost::optional value, boost::optional tenantId, boost::optional sso) const { @@ -2615,6 +2695,10 @@ pplx::task> ModerationApi::getSear { localVarQueryParams[utility::conversions::to_string_t("value")] = ApiClient::parameterToString(*value); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -2679,7 +2763,7 @@ pplx::task> ModerationApi::getSear }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationUserSearchResponse()); + std::shared_ptr localVarResult(new GetSearchUsersResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2700,7 +2784,7 @@ pplx::task> ModerationApi::getSear return localVarResult; }); } -pplx::task> ModerationApi::getTrustFactor(boost::optional userId, boost::optional sso) const +pplx::task> ModerationApi::getTrustFactor(boost::optional userId, boost::optional tenantId, boost::optional sso) const { @@ -2745,6 +2829,10 @@ pplx::task> ModerationApi::getTrustF { localVarQueryParams[utility::conversions::to_string_t("userId")] = ApiClient::parameterToString(*userId); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -2809,7 +2897,7 @@ pplx::task> ModerationApi::getTrustF }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserTrustFactorResponse()); + std::shared_ptr localVarResult(new GetTrustFactorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2830,7 +2918,7 @@ pplx::task> ModerationApi::getTrustF return localVarResult; }); } -pplx::task> ModerationApi::getUserBanPreference(boost::optional sso) const +pplx::task> ModerationApi::getUserBanPreference(boost::optional tenantId, boost::optional sso) const { @@ -2871,6 +2959,10 @@ pplx::task> Moderation std::unordered_set localVarConsumeHttpContentTypes; + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -2935,7 +3027,7 @@ pplx::task> Moderation }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIModerateGetUserBanPreferencesResponse()); + std::shared_ptr localVarResult(new GetUserBanPreferenceResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2956,7 +3048,7 @@ pplx::task> Moderation return localVarResult; }); } -pplx::task> ModerationApi::getUserInternalProfile(boost::optional commentId, boost::optional sso) const +pplx::task> ModerationApi::getUserInternalProfile(boost::optional commentId, boost::optional tenantId, boost::optional sso) const { @@ -3001,6 +3093,10 @@ pplx::task> ModerationApi::getUs { localVarQueryParams[utility::conversions::to_string_t("commentId")] = ApiClient::parameterToString(*commentId); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3065,7 +3161,7 @@ pplx::task> ModerationApi::getUs }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserInternalProfileResponse()); + std::shared_ptr localVarResult(new GetUserInternalProfileResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3086,7 +3182,7 @@ pplx::task> ModerationApi::getUs return localVarResult; }); } -pplx::task> ModerationApi::postAdjustCommentVotes(utility::string_t commentId, std::shared_ptr adjustCommentVotesParams, boost::optional sso) const +pplx::task> ModerationApi::postAdjustCommentVotes(utility::string_t commentId, std::shared_ptr adjustCommentVotesParams, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { // verify the required parameter 'adjustCommentVotesParams' is set @@ -3135,6 +3231,14 @@ pplx::task> ModerationApi::postAdjustCommen std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3215,7 +3319,7 @@ pplx::task> ModerationApi::postAdjustCommen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AdjustVotesResponse()); + std::shared_ptr localVarResult(new PostAdjustCommentVotesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3236,7 +3340,7 @@ pplx::task> ModerationApi::postAdjustCommen return localVarResult; }); } -pplx::task> ModerationApi::postApiExport(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional sso) const +pplx::task> ModerationApi::postApiExport(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional tenantId, boost::optional sso) const { @@ -3297,6 +3401,10 @@ pplx::task> ModerationApi::postApiExpo { localVarQueryParams[utility::conversions::to_string_t("sorts")] = ApiClient::parameterToString(*sorts); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3361,7 +3469,7 @@ pplx::task> ModerationApi::postApiExpo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationExportResponse()); + std::shared_ptr localVarResult(new PostApiExportResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3382,7 +3490,7 @@ pplx::task> ModerationApi::postApiExpo return localVarResult; }); } -pplx::task> ModerationApi::postBanUserFromComment(utility::string_t commentId, boost::optional banEmail, boost::optional banEmailDomain, boost::optional banIP, boost::optional deleteAllUsersComments, boost::optional bannedUntil, boost::optional isShadowBan, boost::optional updateId, boost::optional banReason, boost::optional sso) const +pplx::task> ModerationApi::postBanUserFromComment(utility::string_t commentId, boost::optional banEmail, boost::optional banEmailDomain, boost::optional banIP, boost::optional deleteAllUsersComments, boost::optional bannedUntil, boost::optional isShadowBan, boost::optional updateId, boost::optional banReason, boost::optional tenantId, boost::optional sso) const { @@ -3456,6 +3564,10 @@ pplx::task> ModerationApi::postBanUser { localVarQueryParams[utility::conversions::to_string_t("banReason")] = ApiClient::parameterToString(*banReason); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3520,7 +3632,7 @@ pplx::task> ModerationApi::postBanUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BanUserFromCommentResult()); + std::shared_ptr localVarResult(new PostBanUserFromCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3541,7 +3653,7 @@ pplx::task> ModerationApi::postBanUser return localVarResult; }); } -pplx::task> ModerationApi::postBanUserUndo(std::shared_ptr banUserUndoParams, boost::optional sso) const +pplx::task> ModerationApi::postBanUserUndo(std::shared_ptr banUserUndoParams, boost::optional tenantId, boost::optional sso) const { // verify the required parameter 'banUserUndoParams' is set @@ -3589,6 +3701,10 @@ pplx::task> ModerationApi::postBanUserUndo(std std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3669,7 +3785,7 @@ pplx::task> ModerationApi::postBanUserUndo(std }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new PostBanUserUndoResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3690,7 +3806,7 @@ pplx::task> ModerationApi::postBanUserUndo(std return localVarResult; }); } -pplx::task> ModerationApi::postBulkPreBanSummary(std::shared_ptr bulkPreBanParams, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional sso) const +pplx::task> ModerationApi::postBulkPreBanSummary(std::shared_ptr bulkPreBanParams, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional tenantId, boost::optional sso) const { // verify the required parameter 'bulkPreBanParams' is set @@ -3750,6 +3866,10 @@ pplx::task> ModerationApi::postBulkPreBanSumm { localVarQueryParams[utility::conversions::to_string_t("includeByEmailDomain")] = ApiClient::parameterToString(*includeByEmailDomain); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3830,7 +3950,7 @@ pplx::task> ModerationApi::postBulkPreBanSumm }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BulkPreBanSummary()); + std::shared_ptr localVarResult(new PostBulkPreBanSummaryResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3851,7 +3971,7 @@ pplx::task> ModerationApi::postBulkPreBanSumm return localVarResult; }); } -pplx::task> ModerationApi::postCommentsByIds(std::shared_ptr commentsByIdsParams, boost::optional sso) const +pplx::task> ModerationApi::postCommentsByIds(std::shared_ptr commentsByIdsParams, boost::optional tenantId, boost::optional sso) const { // verify the required parameter 'commentsByIdsParams' is set @@ -3899,6 +4019,10 @@ pplx::task> ModerationApi::p std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -3979,7 +4103,7 @@ pplx::task> ModerationApi::p }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ModerationAPIChildCommentsResponse()); + std::shared_ptr localVarResult(new PostCommentsByIdsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4000,7 +4124,7 @@ pplx::task> ModerationApi::p return localVarResult; }); } -pplx::task> ModerationApi::postFlagComment(utility::string_t commentId, boost::optional sso) const +pplx::task> ModerationApi::postFlagComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4042,6 +4166,14 @@ pplx::task> ModerationApi::postFlagComment(uti std::unordered_set localVarConsumeHttpContentTypes; + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4106,7 +4238,7 @@ pplx::task> ModerationApi::postFlagComment(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new PostFlagCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4127,7 +4259,7 @@ pplx::task> ModerationApi::postFlagComment(uti return localVarResult; }); } -pplx::task> ModerationApi::postRemoveComment(utility::string_t commentId, boost::optional sso) const +pplx::task> ModerationApi::postRemoveComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4169,6 +4301,14 @@ pplx::task> ModerationApi::postRemove std::unordered_set localVarConsumeHttpContentTypes; + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4254,7 +4394,7 @@ pplx::task> ModerationApi::postRemove return localVarResult; }); } -pplx::task> ModerationApi::postRestoreDeletedComment(utility::string_t commentId, boost::optional sso) const +pplx::task> ModerationApi::postRestoreDeletedComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4296,6 +4436,14 @@ pplx::task> ModerationApi::postRestoreDeletedC std::unordered_set localVarConsumeHttpContentTypes; + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4360,7 +4508,7 @@ pplx::task> ModerationApi::postRestoreDeletedC }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new PostRestoreDeletedCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4381,7 +4529,7 @@ pplx::task> ModerationApi::postRestoreDeletedC return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentApprovalStatus(utility::string_t commentId, boost::optional approved, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentApprovalStatus(utility::string_t commentId, boost::optional approved, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4427,6 +4575,14 @@ pplx::task> ModerationApi::postSetCo { localVarQueryParams[utility::conversions::to_string_t("approved")] = ApiClient::parameterToString(*approved); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4491,7 +4647,7 @@ pplx::task> ModerationApi::postSetCo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SetCommentApprovedResponse()); + std::shared_ptr localVarResult(new PostSetCommentApprovalStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4512,7 +4668,7 @@ pplx::task> ModerationApi::postSetCo return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentReviewStatus(utility::string_t commentId, boost::optional reviewed, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentReviewStatus(utility::string_t commentId, boost::optional reviewed, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4558,6 +4714,14 @@ pplx::task> ModerationApi::postSetCommentRevie { localVarQueryParams[utility::conversions::to_string_t("reviewed")] = ApiClient::parameterToString(*reviewed); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4622,7 +4786,7 @@ pplx::task> ModerationApi::postSetCommentRevie }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new PostSetCommentReviewStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4643,7 +4807,7 @@ pplx::task> ModerationApi::postSetCommentRevie return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentSpamStatus(utility::string_t commentId, boost::optional spam, boost::optional permNotSpam, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentSpamStatus(utility::string_t commentId, boost::optional spam, boost::optional permNotSpam, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4693,6 +4857,14 @@ pplx::task> ModerationApi::postSetCommentSpamS { localVarQueryParams[utility::conversions::to_string_t("permNotSpam")] = ApiClient::parameterToString(*permNotSpam); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4757,7 +4929,7 @@ pplx::task> ModerationApi::postSetCommentSpamS }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new PostSetCommentSpamStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4778,7 +4950,7 @@ pplx::task> ModerationApi::postSetCommentSpamS return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentText(utility::string_t commentId, std::shared_ptr setCommentTextParams, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentText(utility::string_t commentId, std::shared_ptr setCommentTextParams, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { // verify the required parameter 'setCommentTextParams' is set @@ -4827,6 +4999,14 @@ pplx::task> ModerationApi::postSetCommen std::unordered_set localVarConsumeHttpContentTypes; localVarConsumeHttpContentTypes.insert( utility::conversions::to_string_t("application/json") ); + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -4907,7 +5087,7 @@ pplx::task> ModerationApi::postSetCommen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SetCommentTextResponse()); + std::shared_ptr localVarResult(new PostSetCommentTextResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4928,7 +5108,7 @@ pplx::task> ModerationApi::postSetCommen return localVarResult; }); } -pplx::task> ModerationApi::postUnFlagComment(utility::string_t commentId, boost::optional sso) const +pplx::task> ModerationApi::postUnFlagComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4970,6 +5150,14 @@ pplx::task> ModerationApi::postUnFlagComment(u std::unordered_set localVarConsumeHttpContentTypes; + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5034,7 +5222,7 @@ pplx::task> ModerationApi::postUnFlagComment(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new PostUnFlagCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5055,7 +5243,7 @@ pplx::task> ModerationApi::postUnFlagComment(u return localVarResult; }); } -pplx::task> ModerationApi::postVote(utility::string_t commentId, boost::optional direction, boost::optional sso) const +pplx::task> ModerationApi::postVote(utility::string_t commentId, boost::optional direction, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -5101,6 +5289,14 @@ pplx::task> ModerationApi::postVote(utility::strin { localVarQueryParams[utility::conversions::to_string_t("direction")] = ApiClient::parameterToString(*direction); } + if (broadcastId) + { + localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); + } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5165,7 +5361,7 @@ pplx::task> ModerationApi::postVote(utility::strin }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new VoteResponse()); + std::shared_ptr localVarResult(new PostVoteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5186,7 +5382,7 @@ pplx::task> ModerationApi::postVote(utility::strin return localVarResult; }); } -pplx::task> ModerationApi::putAwardBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional sso) const +pplx::task> ModerationApi::putAwardBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -5242,6 +5438,10 @@ pplx::task> ModerationApi::putAwardBadge { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5306,7 +5506,7 @@ pplx::task> ModerationApi::putAwardBadge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AwardUserBadgeResponse()); + std::shared_ptr localVarResult(new PutAwardBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5327,7 +5527,7 @@ pplx::task> ModerationApi::putAwardBadge return localVarResult; }); } -pplx::task> ModerationApi::putCloseThread(utility::string_t urlId, boost::optional sso) const +pplx::task> ModerationApi::putCloseThread(utility::string_t urlId, boost::optional tenantId, boost::optional sso) const { @@ -5371,6 +5571,10 @@ pplx::task> ModerationApi::putCloseThread(util { localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5435,7 +5639,7 @@ pplx::task> ModerationApi::putCloseThread(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new PutCloseThreadResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5456,7 +5660,7 @@ pplx::task> ModerationApi::putCloseThread(util return localVarResult; }); } -pplx::task> ModerationApi::putRemoveBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional sso) const +pplx::task> ModerationApi::putRemoveBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -5512,6 +5716,10 @@ pplx::task> ModerationApi::putRemoveBad { localVarQueryParams[utility::conversions::to_string_t("broadcastId")] = ApiClient::parameterToString(*broadcastId); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5576,7 +5784,7 @@ pplx::task> ModerationApi::putRemoveBad }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new RemoveUserBadgeResponse()); + std::shared_ptr localVarResult(new PutRemoveBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5597,7 +5805,7 @@ pplx::task> ModerationApi::putRemoveBad return localVarResult; }); } -pplx::task> ModerationApi::putReopenThread(utility::string_t urlId, boost::optional sso) const +pplx::task> ModerationApi::putReopenThread(utility::string_t urlId, boost::optional tenantId, boost::optional sso) const { @@ -5641,6 +5849,10 @@ pplx::task> ModerationApi::putReopenThread(uti { localVarQueryParams[utility::conversions::to_string_t("urlId")] = ApiClient::parameterToString(urlId); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5705,7 +5917,7 @@ pplx::task> ModerationApi::putReopenThread(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new PutReopenThreadResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5726,7 +5938,7 @@ pplx::task> ModerationApi::putReopenThread(uti return localVarResult; }); } -pplx::task> ModerationApi::setTrustFactor(boost::optional userId, boost::optional trustFactor, boost::optional sso) const +pplx::task> ModerationApi::setTrustFactor(boost::optional userId, boost::optional trustFactor, boost::optional tenantId, boost::optional sso) const { @@ -5775,6 +5987,10 @@ pplx::task> ModerationApi::setTrustF { localVarQueryParams[utility::conversions::to_string_t("trustFactor")] = ApiClient::parameterToString(*trustFactor); } + if (tenantId) + { + localVarQueryParams[utility::conversions::to_string_t("tenantId")] = ApiClient::parameterToString(*tenantId); + } if (sso) { localVarQueryParams[utility::conversions::to_string_t("sso")] = ApiClient::parameterToString(*sso); @@ -5839,7 +6055,7 @@ pplx::task> ModerationApi::setTrustF }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SetUserTrustFactorResponse()); + std::shared_ptr localVarResult(new SetTrustFactorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { diff --git a/client/src/api/PublicApi.cpp b/client/src/api/PublicApi.cpp index f5eaff7..bb54359 100644 --- a/client/src/api/PublicApi.cpp +++ b/client/src/api/PublicApi.cpp @@ -35,7 +35,7 @@ PublicApi::~PublicApi() { } -pplx::task> PublicApi::blockFromCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const +pplx::task> PublicApi::blockFromCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const { // verify the required parameter 'publicBlockFromCommentParams' is set @@ -167,7 +167,7 @@ pplx::task> PublicApi::blockFromCommentPublic(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BlockSuccess()); + std::shared_ptr localVarResult(new BlockFromCommentPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -188,7 +188,7 @@ pplx::task> PublicApi::blockFromCommentPublic(util return localVarResult; }); } -pplx::task> PublicApi::checkedCommentsForBlocked(utility::string_t tenantId, utility::string_t commentIds, boost::optional sso) const +pplx::task> PublicApi::checkedCommentsForBlocked(utility::string_t tenantId, utility::string_t commentIds, boost::optional sso) const { @@ -299,7 +299,7 @@ pplx::task> PublicApi::checkedComm }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CheckBlockedCommentsResponse()); + std::shared_ptr localVarResult(new CheckedCommentsForBlockedResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -320,7 +320,7 @@ pplx::task> PublicApi::checkedComm return localVarResult; }); } -pplx::task> PublicApi::createCommentPublic(utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr commentData, boost::optional sessionId, boost::optional sso) const +pplx::task> PublicApi::createCommentPublic(utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr commentData, boost::optional sessionId, boost::optional sso) const { // verify the required parameter 'commentData' is set @@ -459,7 +459,7 @@ pplx::task> PublicApi::createC }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SaveCommentsResponseWithPresence()); + std::shared_ptr localVarResult(new CreateCommentPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -480,7 +480,7 @@ pplx::task> PublicApi::createC return localVarResult; }); } -pplx::task> PublicApi::createFeedPostPublic(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::createFeedPostPublic(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional sso) const { // verify the required parameter 'createFeedPostParams' is set @@ -613,7 +613,7 @@ pplx::task> PublicApi::createFeedPostPub }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateFeedPostResponse()); + std::shared_ptr localVarResult(new CreateFeedPostPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -634,7 +634,7 @@ pplx::task> PublicApi::createFeedPostPub return localVarResult; }); } -pplx::task> PublicApi::createV1PageReact(utility::string_t tenantId, utility::string_t urlId, boost::optional title) const +pplx::task> PublicApi::createV1PageReact(utility::string_t tenantId, utility::string_t urlId, boost::optional title) const { @@ -743,7 +743,7 @@ pplx::task> PublicApi::createV1PageReact(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateV1PageReact()); + std::shared_ptr localVarResult(new CreateV1PageReactResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -764,7 +764,7 @@ pplx::task> PublicApi::createV1PageReact(util return localVarResult; }); } -pplx::task> PublicApi::createV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id, boost::optional title) const +pplx::task> PublicApi::createV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id, boost::optional title) const { @@ -876,7 +876,7 @@ pplx::task> PublicApi::createV2PageReact(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateV1PageReact()); + std::shared_ptr localVarResult(new CreateV2PageReactResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -897,7 +897,7 @@ pplx::task> PublicApi::createV2PageReact(util return localVarResult; }); } -pplx::task> PublicApi::deleteCommentPublic(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::deleteCommentPublic(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const { @@ -1011,7 +1011,7 @@ pplx::task> PublicApi::deleteCom }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PublicAPIDeleteCommentResponse()); + std::shared_ptr localVarResult(new DeleteCommentPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1032,7 +1032,7 @@ pplx::task> PublicApi::deleteCom return localVarResult; }); } -pplx::task> PublicApi::deleteCommentVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId, utility::string_t urlId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::deleteCommentVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId, utility::string_t urlId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const { @@ -1150,7 +1150,7 @@ pplx::task> PublicApi::deleteCommentVote(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new VoteDeleteResponse()); + std::shared_ptr localVarResult(new DeleteCommentVoteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1303,7 +1303,7 @@ pplx::task> PublicApi::deleteFeedP return localVarResult; }); } -pplx::task> PublicApi::deleteV1PageReact(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::deleteV1PageReact(utility::string_t tenantId, utility::string_t urlId) const { @@ -1408,7 +1408,7 @@ pplx::task> PublicApi::deleteV1PageReact(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateV1PageReact()); + std::shared_ptr localVarResult(new DeleteV1PageReactResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1429,7 +1429,7 @@ pplx::task> PublicApi::deleteV1PageReact(util return localVarResult; }); } -pplx::task> PublicApi::deleteV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const +pplx::task> PublicApi::deleteV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const { @@ -1537,7 +1537,7 @@ pplx::task> PublicApi::deleteV2PageReact(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateV1PageReact()); + std::shared_ptr localVarResult(new DeleteV2PageReactResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1558,7 +1558,7 @@ pplx::task> PublicApi::deleteV2PageReact(util return localVarResult; }); } -pplx::task> PublicApi::flagCommentPublic(utility::string_t tenantId, utility::string_t commentId, bool isFlagged, boost::optional sso) const +pplx::task> PublicApi::flagCommentPublic(utility::string_t tenantId, utility::string_t commentId, bool isFlagged, boost::optional sso) const { @@ -1670,7 +1670,7 @@ pplx::task> PublicApi::flagCommentPublic(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new FlagCommentPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1691,7 +1691,7 @@ pplx::task> PublicApi::flagCommentPublic(utili return localVarResult; }); } -pplx::task> PublicApi::getCommentText(utility::string_t tenantId, utility::string_t commentId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::getCommentText(utility::string_t tenantId, utility::string_t commentId, boost::optional editKey, boost::optional sso) const { @@ -1802,7 +1802,7 @@ pplx::task> PublicApi::getComme }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PublicAPIGetCommentTextResponse()); + std::shared_ptr localVarResult(new GetCommentTextResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1823,7 +1823,7 @@ pplx::task> PublicApi::getComme return localVarResult; }); } -pplx::task> PublicApi::getCommentVoteUserNames(utility::string_t tenantId, utility::string_t commentId, int32_t dir, boost::optional sso) const +pplx::task> PublicApi::getCommentVoteUserNames(utility::string_t tenantId, utility::string_t commentId, int32_t dir, boost::optional sso) const { @@ -1933,7 +1933,7 @@ pplx::task> PublicApi::g }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentVoteUserNamesSuccessResponse()); + std::shared_ptr localVarResult(new GetCommentVoteUserNamesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1954,7 +1954,7 @@ pplx::task> PublicApi::g return localVarResult; }); } -pplx::task> PublicApi::getCommentsForUser(boost::optional userId, boost::optional> direction, boost::optional repliesToUserId, boost::optional page, boost::optional includei10n, boost::optional locale, boost::optional isCrawler) const +pplx::task> PublicApi::getCommentsForUser(boost::optional userId, boost::optional> direction, boost::optional repliesToUserId, boost::optional page, boost::optional includei10n, boost::optional locale, boost::optional isCrawler) const { @@ -2083,7 +2083,7 @@ pplx::task> PublicApi::getCommentsFo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentsForUserResponse()); + std::shared_ptr localVarResult(new GetCommentsForUserResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2104,7 +2104,7 @@ pplx::task> PublicApi::getCommentsFo return localVarResult; }); } -pplx::task> PublicApi::getCommentsPublic(utility::string_t tenantId, utility::string_t urlId, boost::optional page, boost::optional> direction, boost::optional sso, boost::optional skip, boost::optional skipChildren, boost::optional limit, boost::optional limitChildren, boost::optional countChildren, boost::optional fetchPageForCommentId, boost::optional includeConfig, boost::optional countAll, boost::optional includei10n, boost::optional locale, boost::optional modules, boost::optional isCrawler, boost::optional includeNotificationCount, boost::optional asTree, boost::optional maxTreeDepth, boost::optional useFullTranslationIds, boost::optional parentId, boost::optional searchText, boost::optional> hashTags, boost::optional userId, boost::optional customConfigStr, boost::optional afterCommentId, boost::optional beforeCommentId) const +pplx::task> PublicApi::getCommentsPublic(utility::string_t tenantId, utility::string_t urlId, boost::optional page, boost::optional> direction, boost::optional sso, boost::optional skip, boost::optional skipChildren, boost::optional limit, boost::optional limitChildren, boost::optional countChildren, boost::optional fetchPageForCommentId, boost::optional includeConfig, boost::optional countAll, boost::optional includei10n, boost::optional locale, boost::optional modules, boost::optional isCrawler, boost::optional includeNotificationCount, boost::optional asTree, boost::optional maxTreeDepth, boost::optional useFullTranslationIds, boost::optional parentId, boost::optional searchText, boost::optional> hashTags, boost::optional userId, boost::optional customConfigStr, boost::optional afterCommentId, boost::optional beforeCommentId) const { @@ -2313,7 +2313,7 @@ pplx::task> Publ }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentsResponseWithPresence_PublicComment_()); + std::shared_ptr localVarResult(new GetCommentsPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2334,7 +2334,7 @@ pplx::task> Publ return localVarResult; }); } -pplx::task> PublicApi::getEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const +pplx::task> PublicApi::getEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const { @@ -2449,7 +2449,7 @@ pplx::task> PublicApi::getEventLog(utility: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEventLogResponse()); + std::shared_ptr localVarResult(new GetEventLogResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2470,7 +2470,7 @@ pplx::task> PublicApi::getEventLog(utility: return localVarResult; }); } -pplx::task> PublicApi::getFeedPostsPublic(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags, boost::optional sso, boost::optional isCrawler, boost::optional includeUserInfo) const +pplx::task> PublicApi::getFeedPostsPublic(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags, boost::optional sso, boost::optional isCrawler, boost::optional includeUserInfo) const { @@ -2596,7 +2596,7 @@ pplx::task> PublicApi::getFeedPostsPubl }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PublicFeedPostsResponse()); + std::shared_ptr localVarResult(new GetFeedPostsPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2617,7 +2617,7 @@ pplx::task> PublicApi::getFeedPostsPubl return localVarResult; }); } -pplx::task> PublicApi::getFeedPostsStats(utility::string_t tenantId, std::vector postIds, boost::optional sso) const +pplx::task> PublicApi::getFeedPostsStats(utility::string_t tenantId, std::vector postIds, boost::optional sso) const { @@ -2726,7 +2726,7 @@ pplx::task> PublicApi::getFeedPostsStats }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FeedPostsStatsResponse()); + std::shared_ptr localVarResult(new GetFeedPostsStatsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2747,7 +2747,7 @@ pplx::task> PublicApi::getFeedPostsStats return localVarResult; }); } -pplx::task> PublicApi::getGifLarge(utility::string_t tenantId, utility::string_t largeInternalURLSanitized) const +pplx::task> PublicApi::getGifLarge(utility::string_t tenantId, utility::string_t largeInternalURLSanitized) const { @@ -2852,7 +2852,7 @@ pplx::task> PublicApi::getGifLarge(utility: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GifGetLargeResponse()); + std::shared_ptr localVarResult(new GetGifLargeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3146,7 +3146,7 @@ pplx::task> PublicApi::getGifsTrending( return localVarResult; }); } -pplx::task> PublicApi::getGlobalEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const +pplx::task> PublicApi::getGlobalEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const { @@ -3261,7 +3261,7 @@ pplx::task> PublicApi::getGlobalEventLog(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEventLogResponse()); + std::shared_ptr localVarResult(new GetGlobalEventLogResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3282,7 +3282,7 @@ pplx::task> PublicApi::getGlobalEventLog(ut return localVarResult; }); } -pplx::task> PublicApi::getOfflineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const +pplx::task> PublicApi::getOfflineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const { @@ -3395,7 +3395,7 @@ pplx::task> PublicApi::getOfflineUsers }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PageUsersOfflineResponse()); + std::shared_ptr localVarResult(new GetOfflineUsersResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3416,7 +3416,7 @@ pplx::task> PublicApi::getOfflineUsers return localVarResult; }); } -pplx::task> PublicApi::getOnlineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const +pplx::task> PublicApi::getOnlineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const { @@ -3529,7 +3529,7 @@ pplx::task> PublicApi::getOnlineUsers(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PageUsersOnlineResponse()); + std::shared_ptr localVarResult(new GetOnlineUsersResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3550,7 +3550,7 @@ pplx::task> PublicApi::getOnlineUsers(u return localVarResult; }); } -pplx::task> PublicApi::getPagesPublic(utility::string_t tenantId, boost::optional cursor, boost::optional limit, boost::optional q, boost::optional> sortBy, boost::optional hasComments) const +pplx::task> PublicApi::getPagesPublic(utility::string_t tenantId, boost::optional cursor, boost::optional limit, boost::optional q, boost::optional> sortBy, boost::optional hasComments) const { @@ -3672,7 +3672,7 @@ pplx::task> PublicApi::getPagesPublic(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetPublicPagesResponse()); + std::shared_ptr localVarResult(new GetPagesPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3693,7 +3693,7 @@ pplx::task> PublicApi::getPagesPublic(ut return localVarResult; }); } -pplx::task> PublicApi::getTranslations(utility::string_t r_namespace, utility::string_t component, boost::optional locale, boost::optional useFullTranslationIds) const +pplx::task> PublicApi::getTranslations(utility::string_t r_namespace, utility::string_t component, boost::optional locale, boost::optional useFullTranslationIds) const { @@ -3804,7 +3804,7 @@ pplx::task> PublicApi::getTranslations( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTranslationsResponse()); + std::shared_ptr localVarResult(new GetTranslationsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3825,7 +3825,7 @@ pplx::task> PublicApi::getTranslations( return localVarResult; }); } -pplx::task> PublicApi::getUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +pplx::task> PublicApi::getUserNotificationCount(utility::string_t tenantId, boost::optional sso) const { @@ -3933,7 +3933,7 @@ pplx::task> PublicApi::getUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserNotificationCountResponse()); + std::shared_ptr localVarResult(new GetUserNotificationCountResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3954,7 +3954,7 @@ pplx::task> PublicApi::getUser return localVarResult; }); } -pplx::task> PublicApi::getUserNotifications(utility::string_t tenantId, boost::optional urlId, boost::optional pageSize, boost::optional afterId, boost::optional includeContext, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional includeTranslations, boost::optional includeTenantNotifications, boost::optional sso) const +pplx::task> PublicApi::getUserNotifications(utility::string_t tenantId, boost::optional urlId, boost::optional pageSize, boost::optional afterId, boost::optional includeContext, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional includeTranslations, boost::optional includeTenantNotifications, boost::optional sso) const { @@ -4102,7 +4102,7 @@ pplx::task> PublicApi::getUserNotifi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetMyNotificationsResponse()); + std::shared_ptr localVarResult(new GetUserNotificationsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4123,7 +4123,7 @@ pplx::task> PublicApi::getUserNotifi return localVarResult; }); } -pplx::task> PublicApi::getUserPresenceStatuses(utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds) const +pplx::task> PublicApi::getUserPresenceStatuses(utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds) const { @@ -4233,7 +4233,7 @@ pplx::task> PublicApi::getUserP }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserPresenceStatusesResponse()); + std::shared_ptr localVarResult(new GetUserPresenceStatusesResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4254,7 +4254,7 @@ pplx::task> PublicApi::getUserP return localVarResult; }); } -pplx::task> PublicApi::getUserReactsPublic(utility::string_t tenantId, boost::optional> postIds, boost::optional sso) const +pplx::task> PublicApi::getUserReactsPublic(utility::string_t tenantId, boost::optional> postIds, boost::optional sso) const { @@ -4364,7 +4364,7 @@ pplx::task> PublicApi::getUserReactsPublic(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UserReactsResponse()); + std::shared_ptr localVarResult(new GetUserReactsPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4385,7 +4385,7 @@ pplx::task> PublicApi::getUserReactsPublic(u return localVarResult; }); } -pplx::task> PublicApi::getUsersInfo(utility::string_t tenantId, utility::string_t ids) const +pplx::task> PublicApi::getUsersInfo(utility::string_t tenantId, utility::string_t ids) const { @@ -4490,7 +4490,7 @@ pplx::task> PublicApi::getUsersInfo(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PageUsersInfoResponse()); + std::shared_ptr localVarResult(new GetUsersInfoResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4511,7 +4511,7 @@ pplx::task> PublicApi::getUsersInfo(utili return localVarResult; }); } -pplx::task> PublicApi::getV1PageLikes(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::getV1PageLikes(utility::string_t tenantId, utility::string_t urlId) const { @@ -4616,7 +4616,7 @@ pplx::task> PublicApi::getV1PageLikes(utility::s }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetV1PageLikes()); + std::shared_ptr localVarResult(new GetV1PageLikesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4637,7 +4637,7 @@ pplx::task> PublicApi::getV1PageLikes(utility::s return localVarResult; }); } -pplx::task> PublicApi::getV2PageReactUsers(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const +pplx::task> PublicApi::getV2PageReactUsers(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const { @@ -4745,7 +4745,7 @@ pplx::task> PublicApi::getV2PageRea }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetV2PageReactUsersResponse()); + std::shared_ptr localVarResult(new GetV2PageReactUsersResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4766,7 +4766,7 @@ pplx::task> PublicApi::getV2PageRea return localVarResult; }); } -pplx::task> PublicApi::getV2PageReacts(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::getV2PageReacts(utility::string_t tenantId, utility::string_t urlId) const { @@ -4871,7 +4871,7 @@ pplx::task> PublicApi::getV2PageReacts(utility: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetV2PageReacts()); + std::shared_ptr localVarResult(new GetV2PageReactsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4892,7 +4892,7 @@ pplx::task> PublicApi::getV2PageReacts(utility: return localVarResult; }); } -pplx::task> PublicApi::lockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::lockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -5002,7 +5002,7 @@ pplx::task> PublicApi::lockComment(utility::st }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new LockCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5145,7 +5145,7 @@ pplx::task> PublicApi::logoutPublic() const return localVarResult; }); } -pplx::task> PublicApi::pinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::pinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -5255,7 +5255,7 @@ pplx::task> PublicApi::pinCommen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ChangeCommentPinStatusResponse()); + std::shared_ptr localVarResult(new PinCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5276,7 +5276,7 @@ pplx::task> PublicApi::pinCommen return localVarResult; }); } -pplx::task> PublicApi::reactFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams, boost::optional isUndo, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::reactFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams, boost::optional isUndo, boost::optional broadcastId, boost::optional sso) const { // verify the required parameter 'reactBodyParams' is set @@ -5414,7 +5414,7 @@ pplx::task> PublicApi::reactFeedPostPubli }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ReactFeedPostResponse()); + std::shared_ptr localVarResult(new ReactFeedPostPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5435,7 +5435,7 @@ pplx::task> PublicApi::reactFeedPostPubli return localVarResult; }); } -pplx::task> PublicApi::resetUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +pplx::task> PublicApi::resetUserNotificationCount(utility::string_t tenantId, boost::optional sso) const { @@ -5543,7 +5543,7 @@ pplx::task> PublicApi::resetUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ResetUserNotificationsResponse()); + std::shared_ptr localVarResult(new ResetUserNotificationCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5564,7 +5564,7 @@ pplx::task> PublicApi::resetUser return localVarResult; }); } -pplx::task> PublicApi::resetUserNotifications(utility::string_t tenantId, boost::optional afterId, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional sso) const +pplx::task> PublicApi::resetUserNotifications(utility::string_t tenantId, boost::optional afterId, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional sso) const { @@ -5692,7 +5692,7 @@ pplx::task> PublicApi::resetUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ResetUserNotificationsResponse()); + std::shared_ptr localVarResult(new ResetUserNotificationsResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5713,7 +5713,7 @@ pplx::task> PublicApi::resetUser return localVarResult; }); } -pplx::task> PublicApi::searchUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional usernameStartsWith, boost::optional> mentionGroupIds, boost::optional sso, boost::optional searchSection) const +pplx::task> PublicApi::searchUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional usernameStartsWith, boost::optional> mentionGroupIds, boost::optional sso, boost::optional searchSection) const { @@ -5834,7 +5834,7 @@ pplx::task> PublicApi::searchUsers(utility::s }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SearchUsersResult()); + std::shared_ptr localVarResult(new SearchUsersResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5855,7 +5855,7 @@ pplx::task> PublicApi::searchUsers(utility::s return localVarResult; }); } -pplx::task> PublicApi::setCommentText(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::setCommentText(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest, boost::optional editKey, boost::optional sso) const { // verify the required parameter 'commentTextUpdateRequest' is set @@ -5992,7 +5992,7 @@ pplx::task> PublicApi::setComme }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PublicAPISetCommentTextResponse()); + std::shared_ptr localVarResult(new SetCommentTextResponse_1()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6013,7 +6013,7 @@ pplx::task> PublicApi::setComme return localVarResult; }); } -pplx::task> PublicApi::unBlockCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const +pplx::task> PublicApi::unBlockCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const { // verify the required parameter 'publicBlockFromCommentParams' is set @@ -6145,7 +6145,7 @@ pplx::task> PublicApi::unBlockCommentPublic(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UnblockSuccess()); + std::shared_ptr localVarResult(new UnBlockCommentPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6166,7 +6166,7 @@ pplx::task> PublicApi::unBlockCommentPublic(util return localVarResult; }); } -pplx::task> PublicApi::unLockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::unLockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -6276,7 +6276,7 @@ pplx::task> PublicApi::unLockComment(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new APIEmptyResponse()); + std::shared_ptr localVarResult(new UnLockCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6297,7 +6297,7 @@ pplx::task> PublicApi::unLockComment(utility:: return localVarResult; }); } -pplx::task> PublicApi::unPinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::unPinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -6407,7 +6407,7 @@ pplx::task> PublicApi::unPinComm }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ChangeCommentPinStatusResponse()); + std::shared_ptr localVarResult(new UnPinCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6428,7 +6428,7 @@ pplx::task> PublicApi::unPinComm return localVarResult; }); } -pplx::task> PublicApi::updateFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::updateFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams, boost::optional broadcastId, boost::optional sso) const { // verify the required parameter 'updateFeedPostParams' is set @@ -6562,7 +6562,7 @@ pplx::task> PublicApi::updateFeedPostPub }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateFeedPostResponse()); + std::shared_ptr localVarResult(new UpdateFeedPostPublicResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7122,7 +7122,7 @@ pplx::task> PublicApi::uploadImage(utility: return localVarResult; }); } -pplx::task> PublicApi::voteComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr voteBodyParams, boost::optional sessionId, boost::optional sso) const +pplx::task> PublicApi::voteComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr voteBodyParams, boost::optional sessionId, boost::optional sso) const { // verify the required parameter 'voteBodyParams' is set @@ -7262,7 +7262,7 @@ pplx::task> PublicApi::voteComment(utility::string }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new VoteResponse()); + std::shared_ptr localVarResult(new VoteCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { diff --git a/client/src/model/AddHashTagResponse.cpp b/client/src/model/AddHashTagResponse.cpp new file mode 100644 index 0000000..b07a2bb --- /dev/null +++ b/client/src/model/AddHashTagResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/AddHashTagResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +AddHashTagResponse::AddHashTagResponse() +{ + m_StatusIsSet = false; + m_HashTagIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +AddHashTagResponse::~AddHashTagResponse() +{ +} + +void AddHashTagResponse::validate() +{ + // TODO: implement validation +} + +web::json::value AddHashTagResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_HashTagIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool AddHashTagResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hashTag")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hashTag"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setHashTag; + ok &= ModelBase::fromJson(fieldValue, refVal_setHashTag); + setHashTag(refVal_setHashTag); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void AddHashTagResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_HashTagIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hashTag")), m_HashTag)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool AddHashTagResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hashTag")))) + { + std::shared_ptr refVal_setHashTag; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hashTag"))), refVal_setHashTag ); + setHashTag(refVal_setHashTag); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr AddHashTagResponse::getStatus() const +{ + return m_Status; +} + + +void AddHashTagResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool AddHashTagResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void AddHashTagResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr AddHashTagResponse::getHashTag() const +{ + return m_HashTag; +} + + +void AddHashTagResponse::setHashTag(const std::shared_ptr& value) +{ + m_HashTag = value; + m_HashTagIsSet = true; +} + +bool AddHashTagResponse::hashTagIsSet() const +{ + return m_HashTagIsSet; +} + +void AddHashTagResponse::unsetHashTag() +{ + m_HashTagIsSet = false; +} +utility::string_t AddHashTagResponse::getReason() const +{ + return m_Reason; +} + + +void AddHashTagResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool AddHashTagResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void AddHashTagResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t AddHashTagResponse::getCode() const +{ + return m_Code; +} + + +void AddHashTagResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool AddHashTagResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void AddHashTagResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t AddHashTagResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void AddHashTagResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool AddHashTagResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void AddHashTagResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t AddHashTagResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void AddHashTagResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool AddHashTagResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void AddHashTagResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t AddHashTagResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void AddHashTagResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool AddHashTagResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void AddHashTagResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t AddHashTagResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void AddHashTagResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool AddHashTagResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void AddHashTagResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr AddHashTagResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void AddHashTagResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool AddHashTagResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void AddHashTagResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/AddHashTagsBulkResponse.cpp b/client/src/model/AddHashTagsBulkResponse.cpp new file mode 100644 index 0000000..91395f7 --- /dev/null +++ b/client/src/model/AddHashTagsBulkResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/AddHashTagsBulkResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +AddHashTagsBulkResponse::AddHashTagsBulkResponse() +{ + m_StatusIsSet = false; + m_ResultsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +AddHashTagsBulkResponse::~AddHashTagsBulkResponse() +{ +} + +void AddHashTagsBulkResponse::validate() +{ + // TODO: implement validation +} + +web::json::value AddHashTagsBulkResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ResultsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("results"))] = ModelBase::toJson(m_Results); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool AddHashTagsBulkResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("results")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("results"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setResults; + ok &= ModelBase::fromJson(fieldValue, refVal_setResults); + setResults(refVal_setResults); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void AddHashTagsBulkResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ResultsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("results")), m_Results)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool AddHashTagsBulkResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("results")))) + { + std::vector> refVal_setResults; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("results"))), refVal_setResults ); + setResults(refVal_setResults); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr AddHashTagsBulkResponse::getStatus() const +{ + return m_Status; +} + + +void AddHashTagsBulkResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool AddHashTagsBulkResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void AddHashTagsBulkResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> AddHashTagsBulkResponse::getResults() const +{ + return m_Results; +} + + +void AddHashTagsBulkResponse::setResults(const std::vector>& value) +{ + m_Results = value; + m_ResultsIsSet = true; +} + +bool AddHashTagsBulkResponse::resultsIsSet() const +{ + return m_ResultsIsSet; +} + +void AddHashTagsBulkResponse::unsetResults() +{ + m_ResultsIsSet = false; +} +utility::string_t AddHashTagsBulkResponse::getReason() const +{ + return m_Reason; +} + + +void AddHashTagsBulkResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool AddHashTagsBulkResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void AddHashTagsBulkResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t AddHashTagsBulkResponse::getCode() const +{ + return m_Code; +} + + +void AddHashTagsBulkResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool AddHashTagsBulkResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void AddHashTagsBulkResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t AddHashTagsBulkResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void AddHashTagsBulkResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool AddHashTagsBulkResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void AddHashTagsBulkResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t AddHashTagsBulkResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void AddHashTagsBulkResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool AddHashTagsBulkResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void AddHashTagsBulkResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t AddHashTagsBulkResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void AddHashTagsBulkResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool AddHashTagsBulkResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void AddHashTagsBulkResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t AddHashTagsBulkResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void AddHashTagsBulkResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool AddHashTagsBulkResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void AddHashTagsBulkResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr AddHashTagsBulkResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void AddHashTagsBulkResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool AddHashTagsBulkResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void AddHashTagsBulkResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/AggregateQuestionResultsResponse_1.cpp b/client/src/model/AggregateQuestionResultsResponse_1.cpp new file mode 100644 index 0000000..ed5eeb9 --- /dev/null +++ b/client/src/model/AggregateQuestionResultsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/AggregateQuestionResultsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +AggregateQuestionResultsResponse_1::AggregateQuestionResultsResponse_1() +{ + m_StatusIsSet = false; + m_DataIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +AggregateQuestionResultsResponse_1::~AggregateQuestionResultsResponse_1() +{ +} + +void AggregateQuestionResultsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value AggregateQuestionResultsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_DataIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool AggregateQuestionResultsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setData; + ok &= ModelBase::fromJson(fieldValue, refVal_setData); + setData(refVal_setData); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void AggregateQuestionResultsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_DataIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool AggregateQuestionResultsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) + { + std::shared_ptr refVal_setData; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); + setData(refVal_setData); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr AggregateQuestionResultsResponse_1::getStatus() const +{ + return m_Status; +} + + +void AggregateQuestionResultsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool AggregateQuestionResultsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void AggregateQuestionResultsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr AggregateQuestionResultsResponse_1::getData() const +{ + return m_Data; +} + + +void AggregateQuestionResultsResponse_1::setData(const std::shared_ptr& value) +{ + m_Data = value; + m_DataIsSet = true; +} + +bool AggregateQuestionResultsResponse_1::dataIsSet() const +{ + return m_DataIsSet; +} + +void AggregateQuestionResultsResponse_1::unsetData() +{ + m_DataIsSet = false; +} +utility::string_t AggregateQuestionResultsResponse_1::getReason() const +{ + return m_Reason; +} + + +void AggregateQuestionResultsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool AggregateQuestionResultsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void AggregateQuestionResultsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t AggregateQuestionResultsResponse_1::getCode() const +{ + return m_Code; +} + + +void AggregateQuestionResultsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool AggregateQuestionResultsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void AggregateQuestionResultsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t AggregateQuestionResultsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void AggregateQuestionResultsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool AggregateQuestionResultsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void AggregateQuestionResultsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t AggregateQuestionResultsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void AggregateQuestionResultsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool AggregateQuestionResultsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void AggregateQuestionResultsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t AggregateQuestionResultsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void AggregateQuestionResultsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool AggregateQuestionResultsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void AggregateQuestionResultsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t AggregateQuestionResultsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void AggregateQuestionResultsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool AggregateQuestionResultsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void AggregateQuestionResultsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr AggregateQuestionResultsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void AggregateQuestionResultsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool AggregateQuestionResultsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void AggregateQuestionResultsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/BlockFromCommentPublicResponse.cpp b/client/src/model/BlockFromCommentPublicResponse.cpp new file mode 100644 index 0000000..7c1e718 --- /dev/null +++ b/client/src/model/BlockFromCommentPublicResponse.cpp @@ -0,0 +1,510 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BlockFromCommentPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +BlockFromCommentPublicResponse::BlockFromCommentPublicResponse() +{ + m_StatusIsSet = false; + m_CommentStatusesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +BlockFromCommentPublicResponse::~BlockFromCommentPublicResponse() +{ +} + +void BlockFromCommentPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value BlockFromCommentPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CommentStatusesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool BlockFromCommentPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); + if(!fieldValue.is_null()) + { + std::map refVal_setCommentStatuses; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); + setCommentStatuses(refVal_setCommentStatuses); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void BlockFromCommentPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CommentStatusesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool BlockFromCommentPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) + { + std::map refVal_setCommentStatuses; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); + setCommentStatuses(refVal_setCommentStatuses); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr BlockFromCommentPublicResponse::getStatus() const +{ + return m_Status; +} + + +void BlockFromCommentPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool BlockFromCommentPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void BlockFromCommentPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::map BlockFromCommentPublicResponse::getCommentStatuses() const +{ + return m_CommentStatuses; +} + +void BlockFromCommentPublicResponse::setCommentStatuses(std::map value) +{ + m_CommentStatuses = value; + m_CommentStatusesIsSet = true; +} + +bool BlockFromCommentPublicResponse::commentStatusesIsSet() const +{ + return m_CommentStatusesIsSet; +} + +void BlockFromCommentPublicResponse::unsetCommentStatuses() +{ + m_CommentStatusesIsSet = false; +} +utility::string_t BlockFromCommentPublicResponse::getReason() const +{ + return m_Reason; +} + + +void BlockFromCommentPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool BlockFromCommentPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void BlockFromCommentPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t BlockFromCommentPublicResponse::getCode() const +{ + return m_Code; +} + + +void BlockFromCommentPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool BlockFromCommentPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void BlockFromCommentPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t BlockFromCommentPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void BlockFromCommentPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool BlockFromCommentPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void BlockFromCommentPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t BlockFromCommentPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void BlockFromCommentPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool BlockFromCommentPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void BlockFromCommentPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t BlockFromCommentPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void BlockFromCommentPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool BlockFromCommentPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void BlockFromCommentPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t BlockFromCommentPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void BlockFromCommentPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool BlockFromCommentPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void BlockFromCommentPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr BlockFromCommentPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void BlockFromCommentPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool BlockFromCommentPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void BlockFromCommentPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/BlockUserFromCommentResponse.cpp b/client/src/model/BlockUserFromCommentResponse.cpp new file mode 100644 index 0000000..e5b383a --- /dev/null +++ b/client/src/model/BlockUserFromCommentResponse.cpp @@ -0,0 +1,510 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BlockUserFromCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +BlockUserFromCommentResponse::BlockUserFromCommentResponse() +{ + m_StatusIsSet = false; + m_CommentStatusesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +BlockUserFromCommentResponse::~BlockUserFromCommentResponse() +{ +} + +void BlockUserFromCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value BlockUserFromCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CommentStatusesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool BlockUserFromCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); + if(!fieldValue.is_null()) + { + std::map refVal_setCommentStatuses; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); + setCommentStatuses(refVal_setCommentStatuses); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void BlockUserFromCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CommentStatusesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool BlockUserFromCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) + { + std::map refVal_setCommentStatuses; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); + setCommentStatuses(refVal_setCommentStatuses); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr BlockUserFromCommentResponse::getStatus() const +{ + return m_Status; +} + + +void BlockUserFromCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool BlockUserFromCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void BlockUserFromCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::map BlockUserFromCommentResponse::getCommentStatuses() const +{ + return m_CommentStatuses; +} + +void BlockUserFromCommentResponse::setCommentStatuses(std::map value) +{ + m_CommentStatuses = value; + m_CommentStatusesIsSet = true; +} + +bool BlockUserFromCommentResponse::commentStatusesIsSet() const +{ + return m_CommentStatusesIsSet; +} + +void BlockUserFromCommentResponse::unsetCommentStatuses() +{ + m_CommentStatusesIsSet = false; +} +utility::string_t BlockUserFromCommentResponse::getReason() const +{ + return m_Reason; +} + + +void BlockUserFromCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool BlockUserFromCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void BlockUserFromCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t BlockUserFromCommentResponse::getCode() const +{ + return m_Code; +} + + +void BlockUserFromCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool BlockUserFromCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void BlockUserFromCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t BlockUserFromCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void BlockUserFromCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool BlockUserFromCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void BlockUserFromCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t BlockUserFromCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void BlockUserFromCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool BlockUserFromCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void BlockUserFromCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t BlockUserFromCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void BlockUserFromCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool BlockUserFromCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void BlockUserFromCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t BlockUserFromCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void BlockUserFromCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool BlockUserFromCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void BlockUserFromCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr BlockUserFromCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void BlockUserFromCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool BlockUserFromCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void BlockUserFromCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/BulkAggregateQuestionResultsResponse_1.cpp b/client/src/model/BulkAggregateQuestionResultsResponse_1.cpp new file mode 100644 index 0000000..c687a88 --- /dev/null +++ b/client/src/model/BulkAggregateQuestionResultsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +BulkAggregateQuestionResultsResponse_1::BulkAggregateQuestionResultsResponse_1() +{ + m_StatusIsSet = false; + m_DataIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +BulkAggregateQuestionResultsResponse_1::~BulkAggregateQuestionResultsResponse_1() +{ +} + +void BulkAggregateQuestionResultsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value BulkAggregateQuestionResultsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_DataIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool BulkAggregateQuestionResultsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); + if(!fieldValue.is_null()) + { + std::map> refVal_setData; + ok &= ModelBase::fromJson(fieldValue, refVal_setData); + setData(refVal_setData); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void BulkAggregateQuestionResultsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_DataIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool BulkAggregateQuestionResultsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) + { + std::map> refVal_setData; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); + setData(refVal_setData); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr BulkAggregateQuestionResultsResponse_1::getStatus() const +{ + return m_Status; +} + + +void BulkAggregateQuestionResultsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool BulkAggregateQuestionResultsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void BulkAggregateQuestionResultsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::map> BulkAggregateQuestionResultsResponse_1::getData() const +{ + return m_Data; +} + + +void BulkAggregateQuestionResultsResponse_1::setData(const std::map>& value) +{ + m_Data = value; + m_DataIsSet = true; +} + +bool BulkAggregateQuestionResultsResponse_1::dataIsSet() const +{ + return m_DataIsSet; +} + +void BulkAggregateQuestionResultsResponse_1::unsetData() +{ + m_DataIsSet = false; +} +utility::string_t BulkAggregateQuestionResultsResponse_1::getReason() const +{ + return m_Reason; +} + + +void BulkAggregateQuestionResultsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool BulkAggregateQuestionResultsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void BulkAggregateQuestionResultsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t BulkAggregateQuestionResultsResponse_1::getCode() const +{ + return m_Code; +} + + +void BulkAggregateQuestionResultsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool BulkAggregateQuestionResultsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void BulkAggregateQuestionResultsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t BulkAggregateQuestionResultsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void BulkAggregateQuestionResultsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool BulkAggregateQuestionResultsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void BulkAggregateQuestionResultsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t BulkAggregateQuestionResultsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void BulkAggregateQuestionResultsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool BulkAggregateQuestionResultsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void BulkAggregateQuestionResultsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t BulkAggregateQuestionResultsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void BulkAggregateQuestionResultsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool BulkAggregateQuestionResultsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void BulkAggregateQuestionResultsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t BulkAggregateQuestionResultsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void BulkAggregateQuestionResultsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool BulkAggregateQuestionResultsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void BulkAggregateQuestionResultsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr BulkAggregateQuestionResultsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void BulkAggregateQuestionResultsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool BulkAggregateQuestionResultsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void BulkAggregateQuestionResultsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ChangeTicketStateResponse_1.cpp b/client/src/model/ChangeTicketStateResponse_1.cpp new file mode 100644 index 0000000..5a04613 --- /dev/null +++ b/client/src/model/ChangeTicketStateResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ChangeTicketStateResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ChangeTicketStateResponse_1::ChangeTicketStateResponse_1() +{ + m_StatusIsSet = false; + m_TicketIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +ChangeTicketStateResponse_1::~ChangeTicketStateResponse_1() +{ +} + +void ChangeTicketStateResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value ChangeTicketStateResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TicketIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool ChangeTicketStateResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ticket")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ticket"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setTicket; + ok &= ModelBase::fromJson(fieldValue, refVal_setTicket); + setTicket(refVal_setTicket); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void ChangeTicketStateResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TicketIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ticket")), m_Ticket)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool ChangeTicketStateResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ticket")))) + { + std::shared_ptr refVal_setTicket; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ticket"))), refVal_setTicket ); + setTicket(refVal_setTicket); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr ChangeTicketStateResponse_1::getStatus() const +{ + return m_Status; +} + + +void ChangeTicketStateResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ChangeTicketStateResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ChangeTicketStateResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr ChangeTicketStateResponse_1::getTicket() const +{ + return m_Ticket; +} + + +void ChangeTicketStateResponse_1::setTicket(const std::shared_ptr& value) +{ + m_Ticket = value; + m_TicketIsSet = true; +} + +bool ChangeTicketStateResponse_1::ticketIsSet() const +{ + return m_TicketIsSet; +} + +void ChangeTicketStateResponse_1::unsetTicket() +{ + m_TicketIsSet = false; +} +utility::string_t ChangeTicketStateResponse_1::getReason() const +{ + return m_Reason; +} + + +void ChangeTicketStateResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool ChangeTicketStateResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void ChangeTicketStateResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t ChangeTicketStateResponse_1::getCode() const +{ + return m_Code; +} + + +void ChangeTicketStateResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool ChangeTicketStateResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void ChangeTicketStateResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t ChangeTicketStateResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void ChangeTicketStateResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool ChangeTicketStateResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void ChangeTicketStateResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t ChangeTicketStateResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void ChangeTicketStateResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool ChangeTicketStateResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void ChangeTicketStateResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t ChangeTicketStateResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void ChangeTicketStateResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool ChangeTicketStateResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void ChangeTicketStateResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t ChangeTicketStateResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void ChangeTicketStateResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool ChangeTicketStateResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void ChangeTicketStateResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr ChangeTicketStateResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void ChangeTicketStateResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool ChangeTicketStateResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void ChangeTicketStateResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CheckedCommentsForBlockedResponse.cpp b/client/src/model/CheckedCommentsForBlockedResponse.cpp new file mode 100644 index 0000000..ec7d237 --- /dev/null +++ b/client/src/model/CheckedCommentsForBlockedResponse.cpp @@ -0,0 +1,510 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CheckedCommentsForBlockedResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CheckedCommentsForBlockedResponse::CheckedCommentsForBlockedResponse() +{ + m_CommentStatusesIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CheckedCommentsForBlockedResponse::~CheckedCommentsForBlockedResponse() +{ +} + +void CheckedCommentsForBlockedResponse::validate() +{ + // TODO: implement validation +} + +web::json::value CheckedCommentsForBlockedResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentStatusesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CheckedCommentsForBlockedResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); + if(!fieldValue.is_null()) + { + std::map refVal_setCommentStatuses; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); + setCommentStatuses(refVal_setCommentStatuses); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CheckedCommentsForBlockedResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentStatusesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CheckedCommentsForBlockedResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) + { + std::map refVal_setCommentStatuses; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); + setCommentStatuses(refVal_setCommentStatuses); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::map CheckedCommentsForBlockedResponse::getCommentStatuses() const +{ + return m_CommentStatuses; +} + +void CheckedCommentsForBlockedResponse::setCommentStatuses(std::map value) +{ + m_CommentStatuses = value; + m_CommentStatusesIsSet = true; +} + +bool CheckedCommentsForBlockedResponse::commentStatusesIsSet() const +{ + return m_CommentStatusesIsSet; +} + +void CheckedCommentsForBlockedResponse::unsetCommentStatuses() +{ + m_CommentStatusesIsSet = false; +} +std::shared_ptr CheckedCommentsForBlockedResponse::getStatus() const +{ + return m_Status; +} + + +void CheckedCommentsForBlockedResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CheckedCommentsForBlockedResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CheckedCommentsForBlockedResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t CheckedCommentsForBlockedResponse::getReason() const +{ + return m_Reason; +} + + +void CheckedCommentsForBlockedResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CheckedCommentsForBlockedResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CheckedCommentsForBlockedResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CheckedCommentsForBlockedResponse::getCode() const +{ + return m_Code; +} + + +void CheckedCommentsForBlockedResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CheckedCommentsForBlockedResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CheckedCommentsForBlockedResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CheckedCommentsForBlockedResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CheckedCommentsForBlockedResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CheckedCommentsForBlockedResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CheckedCommentsForBlockedResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CheckedCommentsForBlockedResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CheckedCommentsForBlockedResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CheckedCommentsForBlockedResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CheckedCommentsForBlockedResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CheckedCommentsForBlockedResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CheckedCommentsForBlockedResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CheckedCommentsForBlockedResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CheckedCommentsForBlockedResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CheckedCommentsForBlockedResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CheckedCommentsForBlockedResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CheckedCommentsForBlockedResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CheckedCommentsForBlockedResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CheckedCommentsForBlockedResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CheckedCommentsForBlockedResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CheckedCommentsForBlockedResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CheckedCommentsForBlockedResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CombineCommentsWithQuestionResultsResponse.cpp b/client/src/model/CombineCommentsWithQuestionResultsResponse.cpp new file mode 100644 index 0000000..f501b18 --- /dev/null +++ b/client/src/model/CombineCommentsWithQuestionResultsResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CombineCommentsWithQuestionResultsResponse::CombineCommentsWithQuestionResultsResponse() +{ + m_StatusIsSet = false; + m_DataIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CombineCommentsWithQuestionResultsResponse::~CombineCommentsWithQuestionResultsResponse() +{ +} + +void CombineCommentsWithQuestionResultsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value CombineCommentsWithQuestionResultsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_DataIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CombineCommentsWithQuestionResultsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setData; + ok &= ModelBase::fromJson(fieldValue, refVal_setData); + setData(refVal_setData); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CombineCommentsWithQuestionResultsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_DataIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CombineCommentsWithQuestionResultsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) + { + std::shared_ptr refVal_setData; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); + setData(refVal_setData); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CombineCommentsWithQuestionResultsResponse::getStatus() const +{ + return m_Status; +} + + +void CombineCommentsWithQuestionResultsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CombineCommentsWithQuestionResultsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CombineCommentsWithQuestionResultsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CombineCommentsWithQuestionResultsResponse::getData() const +{ + return m_Data; +} + + +void CombineCommentsWithQuestionResultsResponse::setData(const std::shared_ptr& value) +{ + m_Data = value; + m_DataIsSet = true; +} + +bool CombineCommentsWithQuestionResultsResponse::dataIsSet() const +{ + return m_DataIsSet; +} + +void CombineCommentsWithQuestionResultsResponse::unsetData() +{ + m_DataIsSet = false; +} +utility::string_t CombineCommentsWithQuestionResultsResponse::getReason() const +{ + return m_Reason; +} + + +void CombineCommentsWithQuestionResultsResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CombineCommentsWithQuestionResultsResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CombineCommentsWithQuestionResultsResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CombineCommentsWithQuestionResultsResponse::getCode() const +{ + return m_Code; +} + + +void CombineCommentsWithQuestionResultsResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CombineCommentsWithQuestionResultsResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CombineCommentsWithQuestionResultsResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CombineCommentsWithQuestionResultsResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CombineCommentsWithQuestionResultsResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CombineCommentsWithQuestionResultsResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CombineCommentsWithQuestionResultsResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CombineCommentsWithQuestionResultsResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CombineCommentsWithQuestionResultsResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CombineCommentsWithQuestionResultsResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CombineCommentsWithQuestionResultsResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CombineCommentsWithQuestionResultsResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CombineCommentsWithQuestionResultsResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CombineCommentsWithQuestionResultsResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CombineCommentsWithQuestionResultsResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CombineCommentsWithQuestionResultsResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CombineCommentsWithQuestionResultsResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CombineCommentsWithQuestionResultsResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CombineCommentsWithQuestionResultsResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CombineCommentsWithQuestionResultsResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CombineCommentsWithQuestionResultsResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CombineCommentsWithQuestionResultsResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CombineCommentsWithQuestionResultsResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateCommentPublicResponse.cpp b/client/src/model/CreateCommentPublicResponse.cpp new file mode 100644 index 0000000..3a29d2b --- /dev/null +++ b/client/src/model/CreateCommentPublicResponse.cpp @@ -0,0 +1,654 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateCommentPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateCommentPublicResponse::CreateCommentPublicResponse() +{ + m_StatusIsSet = false; + m_CommentIsSet = false; + m_ModuleDataIsSet = false; + m_UserIdWS = utility::conversions::to_string_t(""); + m_UserIdWSIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateCommentPublicResponse::~CreateCommentPublicResponse() +{ +} + +void CreateCommentPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value CreateCommentPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CommentIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + } + if(m_User.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + } + if(m_ModuleDataIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); + } + if(m_UserIdWSIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateCommentPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromJson(fieldValue, refVal_setComment); + setComment(refVal_setComment); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setUser); + setUser(refVal_setUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moduleData"))); + if(!fieldValue.is_null()) + { + std::map> refVal_setModuleData; + ok &= ModelBase::fromJson(fieldValue, refVal_setModuleData); + setModuleData(refVal_setModuleData); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserIdWS; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdWS); + setUserIdWS(refVal_setUserIdWS); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateCommentPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CommentIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + } + if(m_User.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + } + if(m_ModuleDataIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moduleData")), m_ModuleData)); + } + if(m_UserIdWSIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdWS")), m_UserIdWS)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateCommentPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); + setComment(refVal_setComment); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); + setUser(refVal_setUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) + { + std::map> refVal_setModuleData; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moduleData"))), refVal_setModuleData ); + setModuleData(refVal_setModuleData); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) + { + utility::string_t refVal_setUserIdWS; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))), refVal_setUserIdWS ); + setUserIdWS(refVal_setUserIdWS); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateCommentPublicResponse::getStatus() const +{ + return m_Status; +} + + +void CreateCommentPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateCommentPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateCommentPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateCommentPublicResponse::getComment() const +{ + return m_Comment; +} + + +void CreateCommentPublicResponse::setComment(const std::shared_ptr& value) +{ + m_Comment = value; + m_CommentIsSet = true; +} + +bool CreateCommentPublicResponse::commentIsSet() const +{ + return m_CommentIsSet; +} + +void CreateCommentPublicResponse::unsetComment() +{ + m_CommentIsSet = false; +} +std::shared_ptr CreateCommentPublicResponse::getUser() const +{ + return m_User.get(); +} + + +void CreateCommentPublicResponse::setUser(const std::shared_ptr& value) +{ + m_User = value; +} + +bool CreateCommentPublicResponse::userIsSet() const +{ + return m_User.has_value(); +} + +void CreateCommentPublicResponse::unsetUser() +{ + m_User.reset(); +} +std::map> CreateCommentPublicResponse::getModuleData() const +{ + return m_ModuleData; +} + + +void CreateCommentPublicResponse::setModuleData(const std::map>& value) +{ + m_ModuleData = value; + m_ModuleDataIsSet = true; +} + +bool CreateCommentPublicResponse::moduleDataIsSet() const +{ + return m_ModuleDataIsSet; +} + +void CreateCommentPublicResponse::unsetModuleData() +{ + m_ModuleDataIsSet = false; +} +utility::string_t CreateCommentPublicResponse::getUserIdWS() const +{ + return m_UserIdWS; +} + + +void CreateCommentPublicResponse::setUserIdWS(const utility::string_t& value) +{ + m_UserIdWS = value; + m_UserIdWSIsSet = true; +} + +bool CreateCommentPublicResponse::userIdWSIsSet() const +{ + return m_UserIdWSIsSet; +} + +void CreateCommentPublicResponse::unsetUserIdWS() +{ + m_UserIdWSIsSet = false; +} +utility::string_t CreateCommentPublicResponse::getReason() const +{ + return m_Reason; +} + + +void CreateCommentPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateCommentPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateCommentPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateCommentPublicResponse::getCode() const +{ + return m_Code; +} + + +void CreateCommentPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateCommentPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateCommentPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateCommentPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateCommentPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateCommentPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateCommentPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateCommentPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateCommentPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateCommentPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateCommentPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateCommentPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateCommentPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateCommentPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateCommentPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateCommentPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateCommentPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateCommentPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateCommentPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateCommentPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateCommentPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateCommentPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateCommentPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateEmailTemplateResponse_1.cpp b/client/src/model/CreateEmailTemplateResponse_1.cpp new file mode 100644 index 0000000..502774d --- /dev/null +++ b/client/src/model/CreateEmailTemplateResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateEmailTemplateResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateEmailTemplateResponse_1::CreateEmailTemplateResponse_1() +{ + m_StatusIsSet = false; + m_EmailTemplateIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateEmailTemplateResponse_1::~CreateEmailTemplateResponse_1() +{ +} + +void CreateEmailTemplateResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value CreateEmailTemplateResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_EmailTemplateIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))] = ModelBase::toJson(m_EmailTemplate); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateEmailTemplateResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setEmailTemplate; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmailTemplate); + setEmailTemplate(refVal_setEmailTemplate); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateEmailTemplateResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_EmailTemplateIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailTemplate")), m_EmailTemplate)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateEmailTemplateResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) + { + std::shared_ptr refVal_setEmailTemplate; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))), refVal_setEmailTemplate ); + setEmailTemplate(refVal_setEmailTemplate); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateEmailTemplateResponse_1::getStatus() const +{ + return m_Status; +} + + +void CreateEmailTemplateResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateEmailTemplateResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateEmailTemplateResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateEmailTemplateResponse_1::getEmailTemplate() const +{ + return m_EmailTemplate; +} + + +void CreateEmailTemplateResponse_1::setEmailTemplate(const std::shared_ptr& value) +{ + m_EmailTemplate = value; + m_EmailTemplateIsSet = true; +} + +bool CreateEmailTemplateResponse_1::emailTemplateIsSet() const +{ + return m_EmailTemplateIsSet; +} + +void CreateEmailTemplateResponse_1::unsetEmailTemplate() +{ + m_EmailTemplateIsSet = false; +} +utility::string_t CreateEmailTemplateResponse_1::getReason() const +{ + return m_Reason; +} + + +void CreateEmailTemplateResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateEmailTemplateResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateEmailTemplateResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateEmailTemplateResponse_1::getCode() const +{ + return m_Code; +} + + +void CreateEmailTemplateResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateEmailTemplateResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateEmailTemplateResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateEmailTemplateResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateEmailTemplateResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateEmailTemplateResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateEmailTemplateResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateEmailTemplateResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateEmailTemplateResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateEmailTemplateResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateEmailTemplateResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateEmailTemplateResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateEmailTemplateResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateEmailTemplateResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateEmailTemplateResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateEmailTemplateResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateEmailTemplateResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateEmailTemplateResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateEmailTemplateResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateEmailTemplateResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateEmailTemplateResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateEmailTemplateResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateEmailTemplateResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateFeedPostPublicResponse.cpp b/client/src/model/CreateFeedPostPublicResponse.cpp new file mode 100644 index 0000000..5c0d6d5 --- /dev/null +++ b/client/src/model/CreateFeedPostPublicResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateFeedPostPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateFeedPostPublicResponse::CreateFeedPostPublicResponse() +{ + m_StatusIsSet = false; + m_FeedPostIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateFeedPostPublicResponse::~CreateFeedPostPublicResponse() +{ +} + +void CreateFeedPostPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value CreateFeedPostPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_FeedPostIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateFeedPostPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPost"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setFeedPost; + ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPost); + setFeedPost(refVal_setFeedPost); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateFeedPostPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_FeedPostIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPost")), m_FeedPost)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateFeedPostPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) + { + std::shared_ptr refVal_setFeedPost; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPost"))), refVal_setFeedPost ); + setFeedPost(refVal_setFeedPost); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateFeedPostPublicResponse::getStatus() const +{ + return m_Status; +} + + +void CreateFeedPostPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateFeedPostPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateFeedPostPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateFeedPostPublicResponse::getFeedPost() const +{ + return m_FeedPost; +} + + +void CreateFeedPostPublicResponse::setFeedPost(const std::shared_ptr& value) +{ + m_FeedPost = value; + m_FeedPostIsSet = true; +} + +bool CreateFeedPostPublicResponse::feedPostIsSet() const +{ + return m_FeedPostIsSet; +} + +void CreateFeedPostPublicResponse::unsetFeedPost() +{ + m_FeedPostIsSet = false; +} +utility::string_t CreateFeedPostPublicResponse::getReason() const +{ + return m_Reason; +} + + +void CreateFeedPostPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateFeedPostPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateFeedPostPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateFeedPostPublicResponse::getCode() const +{ + return m_Code; +} + + +void CreateFeedPostPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateFeedPostPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateFeedPostPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateFeedPostPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateFeedPostPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateFeedPostPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateFeedPostPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateFeedPostPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateFeedPostPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateFeedPostPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateFeedPostPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateFeedPostPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateFeedPostPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateFeedPostPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateFeedPostPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateFeedPostPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateFeedPostPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateFeedPostPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateFeedPostPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateFeedPostPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateFeedPostPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateFeedPostPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateFeedPostPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateFeedPostResponse_1.cpp b/client/src/model/CreateFeedPostResponse_1.cpp new file mode 100644 index 0000000..1feff36 --- /dev/null +++ b/client/src/model/CreateFeedPostResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateFeedPostResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateFeedPostResponse_1::CreateFeedPostResponse_1() +{ + m_StatusIsSet = false; + m_FeedPostIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateFeedPostResponse_1::~CreateFeedPostResponse_1() +{ +} + +void CreateFeedPostResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value CreateFeedPostResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_FeedPostIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateFeedPostResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPost"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setFeedPost; + ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPost); + setFeedPost(refVal_setFeedPost); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateFeedPostResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_FeedPostIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPost")), m_FeedPost)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateFeedPostResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) + { + std::shared_ptr refVal_setFeedPost; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPost"))), refVal_setFeedPost ); + setFeedPost(refVal_setFeedPost); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateFeedPostResponse_1::getStatus() const +{ + return m_Status; +} + + +void CreateFeedPostResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateFeedPostResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateFeedPostResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateFeedPostResponse_1::getFeedPost() const +{ + return m_FeedPost; +} + + +void CreateFeedPostResponse_1::setFeedPost(const std::shared_ptr& value) +{ + m_FeedPost = value; + m_FeedPostIsSet = true; +} + +bool CreateFeedPostResponse_1::feedPostIsSet() const +{ + return m_FeedPostIsSet; +} + +void CreateFeedPostResponse_1::unsetFeedPost() +{ + m_FeedPostIsSet = false; +} +utility::string_t CreateFeedPostResponse_1::getReason() const +{ + return m_Reason; +} + + +void CreateFeedPostResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateFeedPostResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateFeedPostResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateFeedPostResponse_1::getCode() const +{ + return m_Code; +} + + +void CreateFeedPostResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateFeedPostResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateFeedPostResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateFeedPostResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateFeedPostResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateFeedPostResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateFeedPostResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateFeedPostResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateFeedPostResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateFeedPostResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateFeedPostResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateFeedPostResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateFeedPostResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateFeedPostResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateFeedPostResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateFeedPostResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateFeedPostResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateFeedPostResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateFeedPostResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateFeedPostResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateFeedPostResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateFeedPostResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateFeedPostResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateModeratorResponse_1.cpp b/client/src/model/CreateModeratorResponse_1.cpp new file mode 100644 index 0000000..727b8ec --- /dev/null +++ b/client/src/model/CreateModeratorResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateModeratorResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateModeratorResponse_1::CreateModeratorResponse_1() +{ + m_StatusIsSet = false; + m_ModeratorIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateModeratorResponse_1::~CreateModeratorResponse_1() +{ +} + +void CreateModeratorResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value CreateModeratorResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ModeratorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moderator"))] = ModelBase::toJson(m_Moderator); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateModeratorResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderator")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderator"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setModerator; + ok &= ModelBase::fromJson(fieldValue, refVal_setModerator); + setModerator(refVal_setModerator); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateModeratorResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ModeratorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderator")), m_Moderator)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateModeratorResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderator")))) + { + std::shared_ptr refVal_setModerator; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderator"))), refVal_setModerator ); + setModerator(refVal_setModerator); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateModeratorResponse_1::getStatus() const +{ + return m_Status; +} + + +void CreateModeratorResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateModeratorResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateModeratorResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateModeratorResponse_1::getModerator() const +{ + return m_Moderator; +} + + +void CreateModeratorResponse_1::setModerator(const std::shared_ptr& value) +{ + m_Moderator = value; + m_ModeratorIsSet = true; +} + +bool CreateModeratorResponse_1::moderatorIsSet() const +{ + return m_ModeratorIsSet; +} + +void CreateModeratorResponse_1::unsetModerator() +{ + m_ModeratorIsSet = false; +} +utility::string_t CreateModeratorResponse_1::getReason() const +{ + return m_Reason; +} + + +void CreateModeratorResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateModeratorResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateModeratorResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateModeratorResponse_1::getCode() const +{ + return m_Code; +} + + +void CreateModeratorResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateModeratorResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateModeratorResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateModeratorResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateModeratorResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateModeratorResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateModeratorResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateModeratorResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateModeratorResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateModeratorResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateModeratorResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateModeratorResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateModeratorResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateModeratorResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateModeratorResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateModeratorResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateModeratorResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateModeratorResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateModeratorResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateModeratorResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateModeratorResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateModeratorResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateModeratorResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateQuestionConfigResponse_1.cpp b/client/src/model/CreateQuestionConfigResponse_1.cpp new file mode 100644 index 0000000..cd0c0fc --- /dev/null +++ b/client/src/model/CreateQuestionConfigResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateQuestionConfigResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateQuestionConfigResponse_1::CreateQuestionConfigResponse_1() +{ + m_StatusIsSet = false; + m_QuestionConfigIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateQuestionConfigResponse_1::~CreateQuestionConfigResponse_1() +{ +} + +void CreateQuestionConfigResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value CreateQuestionConfigResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_QuestionConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("questionConfig"))] = ModelBase::toJson(m_QuestionConfig); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateQuestionConfigResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setQuestionConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionConfig); + setQuestionConfig(refVal_setQuestionConfig); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateQuestionConfigResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_QuestionConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionConfig")), m_QuestionConfig)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateQuestionConfigResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) + { + std::shared_ptr refVal_setQuestionConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))), refVal_setQuestionConfig ); + setQuestionConfig(refVal_setQuestionConfig); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateQuestionConfigResponse_1::getStatus() const +{ + return m_Status; +} + + +void CreateQuestionConfigResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateQuestionConfigResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateQuestionConfigResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateQuestionConfigResponse_1::getQuestionConfig() const +{ + return m_QuestionConfig; +} + + +void CreateQuestionConfigResponse_1::setQuestionConfig(const std::shared_ptr& value) +{ + m_QuestionConfig = value; + m_QuestionConfigIsSet = true; +} + +bool CreateQuestionConfigResponse_1::questionConfigIsSet() const +{ + return m_QuestionConfigIsSet; +} + +void CreateQuestionConfigResponse_1::unsetQuestionConfig() +{ + m_QuestionConfigIsSet = false; +} +utility::string_t CreateQuestionConfigResponse_1::getReason() const +{ + return m_Reason; +} + + +void CreateQuestionConfigResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateQuestionConfigResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateQuestionConfigResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateQuestionConfigResponse_1::getCode() const +{ + return m_Code; +} + + +void CreateQuestionConfigResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateQuestionConfigResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateQuestionConfigResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateQuestionConfigResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateQuestionConfigResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateQuestionConfigResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateQuestionConfigResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateQuestionConfigResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateQuestionConfigResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateQuestionConfigResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateQuestionConfigResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateQuestionConfigResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateQuestionConfigResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateQuestionConfigResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateQuestionConfigResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateQuestionConfigResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateQuestionConfigResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateQuestionConfigResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateQuestionConfigResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateQuestionConfigResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateQuestionConfigResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateQuestionConfigResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateQuestionConfigResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateQuestionResultResponse_1.cpp b/client/src/model/CreateQuestionResultResponse_1.cpp new file mode 100644 index 0000000..b85d17e --- /dev/null +++ b/client/src/model/CreateQuestionResultResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateQuestionResultResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateQuestionResultResponse_1::CreateQuestionResultResponse_1() +{ + m_StatusIsSet = false; + m_QuestionResultIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateQuestionResultResponse_1::~CreateQuestionResultResponse_1() +{ +} + +void CreateQuestionResultResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value CreateQuestionResultResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_QuestionResultIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("questionResult"))] = ModelBase::toJson(m_QuestionResult); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateQuestionResultResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionResult"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setQuestionResult; + ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionResult); + setQuestionResult(refVal_setQuestionResult); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateQuestionResultResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_QuestionResultIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionResult")), m_QuestionResult)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateQuestionResultResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) + { + std::shared_ptr refVal_setQuestionResult; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionResult"))), refVal_setQuestionResult ); + setQuestionResult(refVal_setQuestionResult); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateQuestionResultResponse_1::getStatus() const +{ + return m_Status; +} + + +void CreateQuestionResultResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateQuestionResultResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateQuestionResultResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateQuestionResultResponse_1::getQuestionResult() const +{ + return m_QuestionResult; +} + + +void CreateQuestionResultResponse_1::setQuestionResult(const std::shared_ptr& value) +{ + m_QuestionResult = value; + m_QuestionResultIsSet = true; +} + +bool CreateQuestionResultResponse_1::questionResultIsSet() const +{ + return m_QuestionResultIsSet; +} + +void CreateQuestionResultResponse_1::unsetQuestionResult() +{ + m_QuestionResultIsSet = false; +} +utility::string_t CreateQuestionResultResponse_1::getReason() const +{ + return m_Reason; +} + + +void CreateQuestionResultResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateQuestionResultResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateQuestionResultResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateQuestionResultResponse_1::getCode() const +{ + return m_Code; +} + + +void CreateQuestionResultResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateQuestionResultResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateQuestionResultResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateQuestionResultResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateQuestionResultResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateQuestionResultResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateQuestionResultResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateQuestionResultResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateQuestionResultResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateQuestionResultResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateQuestionResultResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateQuestionResultResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateQuestionResultResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateQuestionResultResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateQuestionResultResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateQuestionResultResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateQuestionResultResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateQuestionResultResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateQuestionResultResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateQuestionResultResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateQuestionResultResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateQuestionResultResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateQuestionResultResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateTenantPackageResponse_1.cpp b/client/src/model/CreateTenantPackageResponse_1.cpp new file mode 100644 index 0000000..3530d9b --- /dev/null +++ b/client/src/model/CreateTenantPackageResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateTenantPackageResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateTenantPackageResponse_1::CreateTenantPackageResponse_1() +{ + m_StatusIsSet = false; + m_TenantPackageIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateTenantPackageResponse_1::~CreateTenantPackageResponse_1() +{ +} + +void CreateTenantPackageResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value CreateTenantPackageResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TenantPackageIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))] = ModelBase::toJson(m_TenantPackage); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateTenantPackageResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setTenantPackage; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantPackage); + setTenantPackage(refVal_setTenantPackage); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateTenantPackageResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TenantPackageIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantPackage")), m_TenantPackage)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateTenantPackageResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) + { + std::shared_ptr refVal_setTenantPackage; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))), refVal_setTenantPackage ); + setTenantPackage(refVal_setTenantPackage); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateTenantPackageResponse_1::getStatus() const +{ + return m_Status; +} + + +void CreateTenantPackageResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateTenantPackageResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateTenantPackageResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateTenantPackageResponse_1::getTenantPackage() const +{ + return m_TenantPackage; +} + + +void CreateTenantPackageResponse_1::setTenantPackage(const std::shared_ptr& value) +{ + m_TenantPackage = value; + m_TenantPackageIsSet = true; +} + +bool CreateTenantPackageResponse_1::tenantPackageIsSet() const +{ + return m_TenantPackageIsSet; +} + +void CreateTenantPackageResponse_1::unsetTenantPackage() +{ + m_TenantPackageIsSet = false; +} +utility::string_t CreateTenantPackageResponse_1::getReason() const +{ + return m_Reason; +} + + +void CreateTenantPackageResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateTenantPackageResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateTenantPackageResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateTenantPackageResponse_1::getCode() const +{ + return m_Code; +} + + +void CreateTenantPackageResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateTenantPackageResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateTenantPackageResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateTenantPackageResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateTenantPackageResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateTenantPackageResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateTenantPackageResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateTenantPackageResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateTenantPackageResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateTenantPackageResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateTenantPackageResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateTenantPackageResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateTenantPackageResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateTenantPackageResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateTenantPackageResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateTenantPackageResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateTenantPackageResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateTenantPackageResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateTenantPackageResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateTenantPackageResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateTenantPackageResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateTenantPackageResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateTenantPackageResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateTenantResponse_1.cpp b/client/src/model/CreateTenantResponse_1.cpp new file mode 100644 index 0000000..09ca957 --- /dev/null +++ b/client/src/model/CreateTenantResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateTenantResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateTenantResponse_1::CreateTenantResponse_1() +{ + m_StatusIsSet = false; + m_TenantIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateTenantResponse_1::~CreateTenantResponse_1() +{ +} + +void CreateTenantResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value CreateTenantResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TenantIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenant"))] = ModelBase::toJson(m_Tenant); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateTenantResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenant")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenant"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setTenant; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenant); + setTenant(refVal_setTenant); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateTenantResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TenantIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenant")), m_Tenant)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateTenantResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenant")))) + { + std::shared_ptr refVal_setTenant; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenant"))), refVal_setTenant ); + setTenant(refVal_setTenant); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateTenantResponse_1::getStatus() const +{ + return m_Status; +} + + +void CreateTenantResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateTenantResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateTenantResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateTenantResponse_1::getTenant() const +{ + return m_Tenant; +} + + +void CreateTenantResponse_1::setTenant(const std::shared_ptr& value) +{ + m_Tenant = value; + m_TenantIsSet = true; +} + +bool CreateTenantResponse_1::tenantIsSet() const +{ + return m_TenantIsSet; +} + +void CreateTenantResponse_1::unsetTenant() +{ + m_TenantIsSet = false; +} +utility::string_t CreateTenantResponse_1::getReason() const +{ + return m_Reason; +} + + +void CreateTenantResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateTenantResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateTenantResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateTenantResponse_1::getCode() const +{ + return m_Code; +} + + +void CreateTenantResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateTenantResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateTenantResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateTenantResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateTenantResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateTenantResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateTenantResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateTenantResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateTenantResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateTenantResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateTenantResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateTenantResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateTenantResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateTenantResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateTenantResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateTenantResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateTenantResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateTenantResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateTenantResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateTenantResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateTenantResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateTenantResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateTenantResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateTenantUserResponse_1.cpp b/client/src/model/CreateTenantUserResponse_1.cpp new file mode 100644 index 0000000..1c4c1c1 --- /dev/null +++ b/client/src/model/CreateTenantUserResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateTenantUserResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateTenantUserResponse_1::CreateTenantUserResponse_1() +{ + m_StatusIsSet = false; + m_TenantUserIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateTenantUserResponse_1::~CreateTenantUserResponse_1() +{ +} + +void CreateTenantUserResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value CreateTenantUserResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TenantUserIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantUser"))] = ModelBase::toJson(m_TenantUser); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateTenantUserResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setTenantUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantUser); + setTenantUser(refVal_setTenantUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateTenantUserResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TenantUserIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantUser")), m_TenantUser)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateTenantUserResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) + { + std::shared_ptr refVal_setTenantUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))), refVal_setTenantUser ); + setTenantUser(refVal_setTenantUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateTenantUserResponse_1::getStatus() const +{ + return m_Status; +} + + +void CreateTenantUserResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateTenantUserResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateTenantUserResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateTenantUserResponse_1::getTenantUser() const +{ + return m_TenantUser; +} + + +void CreateTenantUserResponse_1::setTenantUser(const std::shared_ptr& value) +{ + m_TenantUser = value; + m_TenantUserIsSet = true; +} + +bool CreateTenantUserResponse_1::tenantUserIsSet() const +{ + return m_TenantUserIsSet; +} + +void CreateTenantUserResponse_1::unsetTenantUser() +{ + m_TenantUserIsSet = false; +} +utility::string_t CreateTenantUserResponse_1::getReason() const +{ + return m_Reason; +} + + +void CreateTenantUserResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateTenantUserResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateTenantUserResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateTenantUserResponse_1::getCode() const +{ + return m_Code; +} + + +void CreateTenantUserResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateTenantUserResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateTenantUserResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateTenantUserResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateTenantUserResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateTenantUserResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateTenantUserResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateTenantUserResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateTenantUserResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateTenantUserResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateTenantUserResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateTenantUserResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateTenantUserResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateTenantUserResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateTenantUserResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateTenantUserResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateTenantUserResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateTenantUserResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateTenantUserResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateTenantUserResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateTenantUserResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateTenantUserResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateTenantUserResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateTicketResponse_1.cpp b/client/src/model/CreateTicketResponse_1.cpp new file mode 100644 index 0000000..10da48a --- /dev/null +++ b/client/src/model/CreateTicketResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateTicketResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateTicketResponse_1::CreateTicketResponse_1() +{ + m_StatusIsSet = false; + m_TicketIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateTicketResponse_1::~CreateTicketResponse_1() +{ +} + +void CreateTicketResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value CreateTicketResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TicketIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateTicketResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ticket")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ticket"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setTicket; + ok &= ModelBase::fromJson(fieldValue, refVal_setTicket); + setTicket(refVal_setTicket); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateTicketResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TicketIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ticket")), m_Ticket)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateTicketResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ticket")))) + { + std::shared_ptr refVal_setTicket; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ticket"))), refVal_setTicket ); + setTicket(refVal_setTicket); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateTicketResponse_1::getStatus() const +{ + return m_Status; +} + + +void CreateTicketResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateTicketResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateTicketResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateTicketResponse_1::getTicket() const +{ + return m_Ticket; +} + + +void CreateTicketResponse_1::setTicket(const std::shared_ptr& value) +{ + m_Ticket = value; + m_TicketIsSet = true; +} + +bool CreateTicketResponse_1::ticketIsSet() const +{ + return m_TicketIsSet; +} + +void CreateTicketResponse_1::unsetTicket() +{ + m_TicketIsSet = false; +} +utility::string_t CreateTicketResponse_1::getReason() const +{ + return m_Reason; +} + + +void CreateTicketResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateTicketResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateTicketResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateTicketResponse_1::getCode() const +{ + return m_Code; +} + + +void CreateTicketResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateTicketResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateTicketResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateTicketResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateTicketResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateTicketResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateTicketResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateTicketResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateTicketResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateTicketResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateTicketResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateTicketResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateTicketResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateTicketResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateTicketResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateTicketResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateTicketResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateTicketResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateTicketResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateTicketResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateTicketResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateTicketResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateTicketResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateUserBadgeResponse.cpp b/client/src/model/CreateUserBadgeResponse.cpp new file mode 100644 index 0000000..d3cf04f --- /dev/null +++ b/client/src/model/CreateUserBadgeResponse.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateUserBadgeResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateUserBadgeResponse::CreateUserBadgeResponse() +{ + m_StatusIsSet = false; + m_UserBadgeIsSet = false; + m_NotesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateUserBadgeResponse::~CreateUserBadgeResponse() +{ +} + +void CreateUserBadgeResponse::validate() +{ + // TODO: implement validation +} + +web::json::value CreateUserBadgeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_UserBadgeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userBadge"))] = ModelBase::toJson(m_UserBadge); + } + if(m_NotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("notes"))] = ModelBase::toJson(m_Notes); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateUserBadgeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadge"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUserBadge; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadge); + setUserBadge(refVal_setUserBadge); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notes"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setNotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setNotes); + setNotes(refVal_setNotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateUserBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_UserBadgeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadge")), m_UserBadge)); + } + if(m_NotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notes")), m_Notes)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateUserBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) + { + std::shared_ptr refVal_setUserBadge; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadge"))), refVal_setUserBadge ); + setUserBadge(refVal_setUserBadge); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notes")))) + { + std::vector refVal_setNotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notes"))), refVal_setNotes ); + setNotes(refVal_setNotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateUserBadgeResponse::getStatus() const +{ + return m_Status; +} + + +void CreateUserBadgeResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateUserBadgeResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateUserBadgeResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr CreateUserBadgeResponse::getUserBadge() const +{ + return m_UserBadge; +} + + +void CreateUserBadgeResponse::setUserBadge(const std::shared_ptr& value) +{ + m_UserBadge = value; + m_UserBadgeIsSet = true; +} + +bool CreateUserBadgeResponse::userBadgeIsSet() const +{ + return m_UserBadgeIsSet; +} + +void CreateUserBadgeResponse::unsetUserBadge() +{ + m_UserBadgeIsSet = false; +} +std::vector CreateUserBadgeResponse::getNotes() const +{ + return m_Notes; +} + + +void CreateUserBadgeResponse::setNotes(const std::vector& value) +{ + m_Notes = value; + m_NotesIsSet = true; +} + +bool CreateUserBadgeResponse::notesIsSet() const +{ + return m_NotesIsSet; +} + +void CreateUserBadgeResponse::unsetNotes() +{ + m_NotesIsSet = false; +} +utility::string_t CreateUserBadgeResponse::getReason() const +{ + return m_Reason; +} + + +void CreateUserBadgeResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateUserBadgeResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateUserBadgeResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateUserBadgeResponse::getCode() const +{ + return m_Code; +} + + +void CreateUserBadgeResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateUserBadgeResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateUserBadgeResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateUserBadgeResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateUserBadgeResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateUserBadgeResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateUserBadgeResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateUserBadgeResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateUserBadgeResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateUserBadgeResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateUserBadgeResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateUserBadgeResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateUserBadgeResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateUserBadgeResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateUserBadgeResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateUserBadgeResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateUserBadgeResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateUserBadgeResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateUserBadgeResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateUserBadgeResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateUserBadgeResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateUserBadgeResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateUserBadgeResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateV1PageReactResponse.cpp b/client/src/model/CreateV1PageReactResponse.cpp new file mode 100644 index 0000000..b785568 --- /dev/null +++ b/client/src/model/CreateV1PageReactResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateV1PageReactResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateV1PageReactResponse::CreateV1PageReactResponse() +{ + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateV1PageReactResponse::~CreateV1PageReactResponse() +{ +} + +void CreateV1PageReactResponse::validate() +{ + // TODO: implement validation +} + +web::json::value CreateV1PageReactResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateV1PageReactResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateV1PageReactResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateV1PageReactResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +utility::string_t CreateV1PageReactResponse::getCode() const +{ + return m_Code; +} + + +void CreateV1PageReactResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateV1PageReactResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateV1PageReactResponse::unsetCode() +{ + m_CodeIsSet = false; +} +std::shared_ptr CreateV1PageReactResponse::getStatus() const +{ + return m_Status; +} + + +void CreateV1PageReactResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateV1PageReactResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateV1PageReactResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t CreateV1PageReactResponse::getReason() const +{ + return m_Reason; +} + + +void CreateV1PageReactResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateV1PageReactResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateV1PageReactResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateV1PageReactResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateV1PageReactResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateV1PageReactResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateV1PageReactResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateV1PageReactResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateV1PageReactResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateV1PageReactResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateV1PageReactResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateV1PageReactResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateV1PageReactResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateV1PageReactResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateV1PageReactResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateV1PageReactResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateV1PageReactResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateV1PageReactResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateV1PageReactResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateV1PageReactResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateV1PageReactResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateV1PageReactResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateV1PageReactResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateV2PageReactResponse.cpp b/client/src/model/CreateV2PageReactResponse.cpp new file mode 100644 index 0000000..bef4ff3 --- /dev/null +++ b/client/src/model/CreateV2PageReactResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateV2PageReactResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateV2PageReactResponse::CreateV2PageReactResponse() +{ + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateV2PageReactResponse::~CreateV2PageReactResponse() +{ +} + +void CreateV2PageReactResponse::validate() +{ + // TODO: implement validation +} + +web::json::value CreateV2PageReactResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateV2PageReactResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateV2PageReactResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateV2PageReactResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +utility::string_t CreateV2PageReactResponse::getCode() const +{ + return m_Code; +} + + +void CreateV2PageReactResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateV2PageReactResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateV2PageReactResponse::unsetCode() +{ + m_CodeIsSet = false; +} +std::shared_ptr CreateV2PageReactResponse::getStatus() const +{ + return m_Status; +} + + +void CreateV2PageReactResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateV2PageReactResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateV2PageReactResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t CreateV2PageReactResponse::getReason() const +{ + return m_Reason; +} + + +void CreateV2PageReactResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateV2PageReactResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateV2PageReactResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateV2PageReactResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateV2PageReactResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateV2PageReactResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateV2PageReactResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateV2PageReactResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateV2PageReactResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateV2PageReactResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateV2PageReactResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateV2PageReactResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateV2PageReactResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateV2PageReactResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateV2PageReactResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateV2PageReactResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateV2PageReactResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateV2PageReactResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateV2PageReactResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateV2PageReactResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateV2PageReactResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateV2PageReactResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateV2PageReactResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/CreateVoteResponse.cpp b/client/src/model/CreateVoteResponse.cpp new file mode 100644 index 0000000..b99342b --- /dev/null +++ b/client/src/model/CreateVoteResponse.cpp @@ -0,0 +1,657 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/CreateVoteResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +CreateVoteResponse::CreateVoteResponse() +{ + m_StatusIsSet = false; + m_VoteId = utility::conversions::to_string_t(""); + m_VoteIdIsSet = false; + m_IsVerified = false; + m_IsVerifiedIsSet = false; + m_UserIsSet = false; + m_EditKey = utility::conversions::to_string_t(""); + m_EditKeyIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +CreateVoteResponse::~CreateVoteResponse() +{ +} + +void CreateVoteResponse::validate() +{ + // TODO: implement validation +} + +web::json::value CreateVoteResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_VoteIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("voteId"))] = ModelBase::toJson(m_VoteId); + } + if(m_IsVerifiedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isVerified"))] = ModelBase::toJson(m_IsVerified); + } + if(m_UserIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + } + if(m_EditKeyIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool CreateVoteResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("voteId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("voteId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setVoteId; + ok &= ModelBase::fromJson(fieldValue, refVal_setVoteId); + setVoteId(refVal_setVoteId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isVerified"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsVerified; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsVerified); + setIsVerified(refVal_setIsVerified); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setUser); + setUser(refVal_setUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("editKey")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("editKey"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setEditKey; + ok &= ModelBase::fromJson(fieldValue, refVal_setEditKey); + setEditKey(refVal_setEditKey); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void CreateVoteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_VoteIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteId")), m_VoteId)); + } + if(m_IsVerifiedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isVerified")), m_IsVerified)); + } + if(m_UserIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + } + if(m_EditKeyIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("editKey")), m_EditKey)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool CreateVoteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteId")))) + { + utility::string_t refVal_setVoteId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("voteId"))), refVal_setVoteId ); + setVoteId(refVal_setVoteId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) + { + bool refVal_setIsVerified; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isVerified"))), refVal_setIsVerified ); + setIsVerified(refVal_setIsVerified); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); + setUser(refVal_setUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("editKey")))) + { + utility::string_t refVal_setEditKey; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("editKey"))), refVal_setEditKey ); + setEditKey(refVal_setEditKey); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr CreateVoteResponse::getStatus() const +{ + return m_Status; +} + + +void CreateVoteResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool CreateVoteResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void CreateVoteResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t CreateVoteResponse::getVoteId() const +{ + return m_VoteId; +} + + +void CreateVoteResponse::setVoteId(const utility::string_t& value) +{ + m_VoteId = value; + m_VoteIdIsSet = true; +} + +bool CreateVoteResponse::voteIdIsSet() const +{ + return m_VoteIdIsSet; +} + +void CreateVoteResponse::unsetVoteId() +{ + m_VoteIdIsSet = false; +} +bool CreateVoteResponse::isIsVerified() const +{ + return m_IsVerified; +} + +void CreateVoteResponse::setIsVerified(bool value) +{ + m_IsVerified = value; + m_IsVerifiedIsSet = true; +} + +bool CreateVoteResponse::isVerifiedIsSet() const +{ + return m_IsVerifiedIsSet; +} + +void CreateVoteResponse::unsetIsVerified() +{ + m_IsVerifiedIsSet = false; +} +std::shared_ptr CreateVoteResponse::getUser() const +{ + return m_User; +} + + +void CreateVoteResponse::setUser(const std::shared_ptr& value) +{ + m_User = value; + m_UserIsSet = true; +} + +bool CreateVoteResponse::userIsSet() const +{ + return m_UserIsSet; +} + +void CreateVoteResponse::unsetUser() +{ + m_UserIsSet = false; +} +utility::string_t CreateVoteResponse::getEditKey() const +{ + return m_EditKey; +} + + +void CreateVoteResponse::setEditKey(const utility::string_t& value) +{ + m_EditKey = value; + m_EditKeyIsSet = true; +} + +bool CreateVoteResponse::editKeyIsSet() const +{ + return m_EditKeyIsSet; +} + +void CreateVoteResponse::unsetEditKey() +{ + m_EditKeyIsSet = false; +} +utility::string_t CreateVoteResponse::getReason() const +{ + return m_Reason; +} + + +void CreateVoteResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool CreateVoteResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void CreateVoteResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t CreateVoteResponse::getCode() const +{ + return m_Code; +} + + +void CreateVoteResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool CreateVoteResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void CreateVoteResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t CreateVoteResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void CreateVoteResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool CreateVoteResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void CreateVoteResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t CreateVoteResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void CreateVoteResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool CreateVoteResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void CreateVoteResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t CreateVoteResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void CreateVoteResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool CreateVoteResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void CreateVoteResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t CreateVoteResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void CreateVoteResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool CreateVoteResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void CreateVoteResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr CreateVoteResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void CreateVoteResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool CreateVoteResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void CreateVoteResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteCommentPublicResponse.cpp b/client/src/model/DeleteCommentPublicResponse.cpp new file mode 100644 index 0000000..98983aa --- /dev/null +++ b/client/src/model/DeleteCommentPublicResponse.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteCommentPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteCommentPublicResponse::DeleteCommentPublicResponse() +{ + m_CommentIsSet = false; + m_HardRemoved = false; + m_HardRemovedIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteCommentPublicResponse::~DeleteCommentPublicResponse() +{ +} + +void DeleteCommentPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteCommentPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + } + if(m_HardRemovedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))] = ModelBase::toJson(m_HardRemoved); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteCommentPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromJson(fieldValue, refVal_setComment); + setComment(refVal_setComment); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hardRemoved")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))); + if(!fieldValue.is_null()) + { + bool refVal_setHardRemoved; + ok &= ModelBase::fromJson(fieldValue, refVal_setHardRemoved); + setHardRemoved(refVal_setHardRemoved); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteCommentPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + } + if(m_HardRemovedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hardRemoved")), m_HardRemoved)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteCommentPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); + setComment(refVal_setComment); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hardRemoved")))) + { + bool refVal_setHardRemoved; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))), refVal_setHardRemoved ); + setHardRemoved(refVal_setHardRemoved); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteCommentPublicResponse::getComment() const +{ + return m_Comment; +} + + +void DeleteCommentPublicResponse::setComment(const std::shared_ptr& value) +{ + m_Comment = value; + m_CommentIsSet = true; +} + +bool DeleteCommentPublicResponse::commentIsSet() const +{ + return m_CommentIsSet; +} + +void DeleteCommentPublicResponse::unsetComment() +{ + m_CommentIsSet = false; +} +bool DeleteCommentPublicResponse::isHardRemoved() const +{ + return m_HardRemoved; +} + +void DeleteCommentPublicResponse::setHardRemoved(bool value) +{ + m_HardRemoved = value; + m_HardRemovedIsSet = true; +} + +bool DeleteCommentPublicResponse::hardRemovedIsSet() const +{ + return m_HardRemovedIsSet; +} + +void DeleteCommentPublicResponse::unsetHardRemoved() +{ + m_HardRemovedIsSet = false; +} +std::shared_ptr DeleteCommentPublicResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteCommentPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteCommentPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteCommentPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteCommentPublicResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteCommentPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteCommentPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteCommentPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteCommentPublicResponse::getCode() const +{ + return m_Code; +} + + +void DeleteCommentPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteCommentPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteCommentPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteCommentPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteCommentPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteCommentPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteCommentPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteCommentPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteCommentPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteCommentPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteCommentPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteCommentPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteCommentPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteCommentPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteCommentPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteCommentPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteCommentPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteCommentPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteCommentPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteCommentPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteCommentPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteCommentPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteCommentPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteCommentResponse.cpp b/client/src/model/DeleteCommentResponse.cpp new file mode 100644 index 0000000..75a030b --- /dev/null +++ b/client/src/model/DeleteCommentResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteCommentResponse::DeleteCommentResponse() +{ + m_ActionIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteCommentResponse::~DeleteCommentResponse() +{ +} + +void DeleteCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ActionIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("action"))] = ModelBase::toJson(m_Action); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("action")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("action"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setAction; + ok &= ModelBase::fromJson(fieldValue, refVal_setAction); + setAction(refVal_setAction); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ActionIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("action")), m_Action)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("action")))) + { + std::shared_ptr refVal_setAction; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("action"))), refVal_setAction ); + setAction(refVal_setAction); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteCommentResponse::getAction() const +{ + return m_Action; +} + + +void DeleteCommentResponse::setAction(const std::shared_ptr& value) +{ + m_Action = value; + m_ActionIsSet = true; +} + +bool DeleteCommentResponse::actionIsSet() const +{ + return m_ActionIsSet; +} + +void DeleteCommentResponse::unsetAction() +{ + m_ActionIsSet = false; +} +std::shared_ptr DeleteCommentResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteCommentResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteCommentResponse::getCode() const +{ + return m_Code; +} + + +void DeleteCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteCommentVoteResponse.cpp b/client/src/model/DeleteCommentVoteResponse.cpp new file mode 100644 index 0000000..31f0aa9 --- /dev/null +++ b/client/src/model/DeleteCommentVoteResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteCommentVoteResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteCommentVoteResponse::DeleteCommentVoteResponse() +{ + m_StatusIsSet = false; + m_WasPendingVote = false; + m_WasPendingVoteIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteCommentVoteResponse::~DeleteCommentVoteResponse() +{ +} + +void DeleteCommentVoteResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteCommentVoteResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_WasPendingVoteIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))] = ModelBase::toJson(m_WasPendingVote); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteCommentVoteResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))); + if(!fieldValue.is_null()) + { + bool refVal_setWasPendingVote; + ok &= ModelBase::fromJson(fieldValue, refVal_setWasPendingVote); + setWasPendingVote(refVal_setWasPendingVote); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteCommentVoteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_WasPendingVoteIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")), m_WasPendingVote)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteCommentVoteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) + { + bool refVal_setWasPendingVote; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))), refVal_setWasPendingVote ); + setWasPendingVote(refVal_setWasPendingVote); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteCommentVoteResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteCommentVoteResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteCommentVoteResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteCommentVoteResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +bool DeleteCommentVoteResponse::isWasPendingVote() const +{ + return m_WasPendingVote; +} + +void DeleteCommentVoteResponse::setWasPendingVote(bool value) +{ + m_WasPendingVote = value; + m_WasPendingVoteIsSet = true; +} + +bool DeleteCommentVoteResponse::wasPendingVoteIsSet() const +{ + return m_WasPendingVoteIsSet; +} + +void DeleteCommentVoteResponse::unsetWasPendingVote() +{ + m_WasPendingVoteIsSet = false; +} +utility::string_t DeleteCommentVoteResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteCommentVoteResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteCommentVoteResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteCommentVoteResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteCommentVoteResponse::getCode() const +{ + return m_Code; +} + + +void DeleteCommentVoteResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteCommentVoteResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteCommentVoteResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteCommentVoteResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteCommentVoteResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteCommentVoteResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteCommentVoteResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteCommentVoteResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteCommentVoteResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteCommentVoteResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteCommentVoteResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteCommentVoteResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteCommentVoteResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteCommentVoteResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteCommentVoteResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteCommentVoteResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteCommentVoteResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteCommentVoteResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteCommentVoteResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteCommentVoteResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteCommentVoteResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteCommentVoteResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteCommentVoteResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteEmailTemplateRenderErrorResponse.cpp b/client/src/model/DeleteEmailTemplateRenderErrorResponse.cpp new file mode 100644 index 0000000..be196e9 --- /dev/null +++ b/client/src/model/DeleteEmailTemplateRenderErrorResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteEmailTemplateRenderErrorResponse::DeleteEmailTemplateRenderErrorResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteEmailTemplateRenderErrorResponse::~DeleteEmailTemplateRenderErrorResponse() +{ +} + +void DeleteEmailTemplateRenderErrorResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteEmailTemplateRenderErrorResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteEmailTemplateRenderErrorResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteEmailTemplateRenderErrorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteEmailTemplateRenderErrorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteEmailTemplateRenderErrorResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteEmailTemplateRenderErrorResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteEmailTemplateRenderErrorResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteEmailTemplateRenderErrorResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteEmailTemplateRenderErrorResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteEmailTemplateRenderErrorResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteEmailTemplateRenderErrorResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteEmailTemplateRenderErrorResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteEmailTemplateRenderErrorResponse::getCode() const +{ + return m_Code; +} + + +void DeleteEmailTemplateRenderErrorResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteEmailTemplateRenderErrorResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteEmailTemplateRenderErrorResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteEmailTemplateRenderErrorResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteEmailTemplateRenderErrorResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteEmailTemplateRenderErrorResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteEmailTemplateRenderErrorResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteEmailTemplateRenderErrorResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteEmailTemplateRenderErrorResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteEmailTemplateRenderErrorResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteEmailTemplateRenderErrorResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteEmailTemplateRenderErrorResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteEmailTemplateRenderErrorResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteEmailTemplateRenderErrorResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteEmailTemplateRenderErrorResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteEmailTemplateRenderErrorResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteEmailTemplateRenderErrorResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteEmailTemplateRenderErrorResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteEmailTemplateRenderErrorResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteEmailTemplateRenderErrorResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteEmailTemplateRenderErrorResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteEmailTemplateRenderErrorResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteEmailTemplateRenderErrorResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteEmailTemplateResponse.cpp b/client/src/model/DeleteEmailTemplateResponse.cpp new file mode 100644 index 0000000..4a8f6b0 --- /dev/null +++ b/client/src/model/DeleteEmailTemplateResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteEmailTemplateResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteEmailTemplateResponse::DeleteEmailTemplateResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteEmailTemplateResponse::~DeleteEmailTemplateResponse() +{ +} + +void DeleteEmailTemplateResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteEmailTemplateResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteEmailTemplateResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteEmailTemplateResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteEmailTemplateResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteEmailTemplateResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteEmailTemplateResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteEmailTemplateResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteEmailTemplateResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteEmailTemplateResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteEmailTemplateResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteEmailTemplateResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteEmailTemplateResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteEmailTemplateResponse::getCode() const +{ + return m_Code; +} + + +void DeleteEmailTemplateResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteEmailTemplateResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteEmailTemplateResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteEmailTemplateResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteEmailTemplateResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteEmailTemplateResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteEmailTemplateResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteEmailTemplateResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteEmailTemplateResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteEmailTemplateResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteEmailTemplateResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteEmailTemplateResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteEmailTemplateResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteEmailTemplateResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteEmailTemplateResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteEmailTemplateResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteEmailTemplateResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteEmailTemplateResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteEmailTemplateResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteEmailTemplateResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteEmailTemplateResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteEmailTemplateResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteEmailTemplateResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteFeedPostPublicResponse.cpp b/client/src/model/DeleteFeedPostPublicResponse.cpp index f203eb8..1f5b947 100644 --- a/client/src/model/DeleteFeedPostPublicResponse.cpp +++ b/client/src/model/DeleteFeedPostPublicResponse.cpp @@ -21,6 +21,19 @@ namespace model { DeleteFeedPostPublicResponse::DeleteFeedPostPublicResponse() { m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; } DeleteFeedPostPublicResponse::~DeleteFeedPostPublicResponse() @@ -40,6 +53,41 @@ web::json::value DeleteFeedPostPublicResponse::toJson() const val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } return val; } @@ -58,6 +106,83 @@ bool DeleteFeedPostPublicResponse::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } return ok; } @@ -72,6 +197,34 @@ void DeleteFeedPostPublicResponse::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } } bool DeleteFeedPostPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -89,6 +242,48 @@ bool DeleteFeedPostPublicResponse::fromMultiPart(std::shared_ptrgetContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); setStatus(refVal_setStatus); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } return ok; } @@ -114,6 +309,151 @@ void DeleteFeedPostPublicResponse::unsetStatus() { m_StatusIsSet = false; } +utility::string_t DeleteFeedPostPublicResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteFeedPostPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteFeedPostPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteFeedPostPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteFeedPostPublicResponse::getCode() const +{ + return m_Code; +} + + +void DeleteFeedPostPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteFeedPostPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteFeedPostPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteFeedPostPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteFeedPostPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteFeedPostPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteFeedPostPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteFeedPostPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteFeedPostPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteFeedPostPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteFeedPostPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteFeedPostPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteFeedPostPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteFeedPostPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteFeedPostPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteFeedPostPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteFeedPostPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteFeedPostPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteFeedPostPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteFeedPostPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteFeedPostPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteFeedPostPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteFeedPostPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} } } diff --git a/client/src/model/DeleteFeedPostPublicResponse_anyOf.cpp b/client/src/model/DeleteFeedPostPublicResponse_anyOf.cpp new file mode 100644 index 0000000..69a7ffc --- /dev/null +++ b/client/src/model/DeleteFeedPostPublicResponse_anyOf.cpp @@ -0,0 +1,123 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteFeedPostPublicResponse_anyOf::DeleteFeedPostPublicResponse_anyOf() +{ + m_StatusIsSet = false; +} + +DeleteFeedPostPublicResponse_anyOf::~DeleteFeedPostPublicResponse_anyOf() +{ +} + +void DeleteFeedPostPublicResponse_anyOf::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteFeedPostPublicResponse_anyOf::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + + return val; +} + +bool DeleteFeedPostPublicResponse_anyOf::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + return ok; +} + +void DeleteFeedPostPublicResponse_anyOf::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } +} + +bool DeleteFeedPostPublicResponse_anyOf::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + return ok; +} + + +std::shared_ptr DeleteFeedPostPublicResponse_anyOf::getStatus() const +{ + return m_Status; +} + + +void DeleteFeedPostPublicResponse_anyOf::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteFeedPostPublicResponse_anyOf::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteFeedPostPublicResponse_anyOf::unsetStatus() +{ + m_StatusIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteHashTagResponse.cpp b/client/src/model/DeleteHashTagResponse.cpp new file mode 100644 index 0000000..d032890 --- /dev/null +++ b/client/src/model/DeleteHashTagResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteHashTagResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteHashTagResponse::DeleteHashTagResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteHashTagResponse::~DeleteHashTagResponse() +{ +} + +void DeleteHashTagResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteHashTagResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteHashTagResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteHashTagResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteHashTagResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteHashTagResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteHashTagResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteHashTagResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteHashTagResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteHashTagResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteHashTagResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteHashTagResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteHashTagResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteHashTagResponse::getCode() const +{ + return m_Code; +} + + +void DeleteHashTagResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteHashTagResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteHashTagResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteHashTagResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteHashTagResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteHashTagResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteHashTagResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteHashTagResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteHashTagResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteHashTagResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteHashTagResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteHashTagResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteHashTagResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteHashTagResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteHashTagResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteHashTagResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteHashTagResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteHashTagResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteHashTagResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteHashTagResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteHashTagResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteHashTagResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteHashTagResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteModerationVoteResponse.cpp b/client/src/model/DeleteModerationVoteResponse.cpp new file mode 100644 index 0000000..dab4137 --- /dev/null +++ b/client/src/model/DeleteModerationVoteResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteModerationVoteResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteModerationVoteResponse::DeleteModerationVoteResponse() +{ + m_StatusIsSet = false; + m_WasPendingVote = false; + m_WasPendingVoteIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteModerationVoteResponse::~DeleteModerationVoteResponse() +{ +} + +void DeleteModerationVoteResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteModerationVoteResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_WasPendingVoteIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))] = ModelBase::toJson(m_WasPendingVote); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteModerationVoteResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))); + if(!fieldValue.is_null()) + { + bool refVal_setWasPendingVote; + ok &= ModelBase::fromJson(fieldValue, refVal_setWasPendingVote); + setWasPendingVote(refVal_setWasPendingVote); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteModerationVoteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_WasPendingVoteIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")), m_WasPendingVote)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteModerationVoteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) + { + bool refVal_setWasPendingVote; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))), refVal_setWasPendingVote ); + setWasPendingVote(refVal_setWasPendingVote); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteModerationVoteResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteModerationVoteResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteModerationVoteResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteModerationVoteResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +bool DeleteModerationVoteResponse::isWasPendingVote() const +{ + return m_WasPendingVote; +} + +void DeleteModerationVoteResponse::setWasPendingVote(bool value) +{ + m_WasPendingVote = value; + m_WasPendingVoteIsSet = true; +} + +bool DeleteModerationVoteResponse::wasPendingVoteIsSet() const +{ + return m_WasPendingVoteIsSet; +} + +void DeleteModerationVoteResponse::unsetWasPendingVote() +{ + m_WasPendingVoteIsSet = false; +} +utility::string_t DeleteModerationVoteResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteModerationVoteResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteModerationVoteResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteModerationVoteResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteModerationVoteResponse::getCode() const +{ + return m_Code; +} + + +void DeleteModerationVoteResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteModerationVoteResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteModerationVoteResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteModerationVoteResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteModerationVoteResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteModerationVoteResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteModerationVoteResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteModerationVoteResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteModerationVoteResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteModerationVoteResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteModerationVoteResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteModerationVoteResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteModerationVoteResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteModerationVoteResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteModerationVoteResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteModerationVoteResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteModerationVoteResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteModerationVoteResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteModerationVoteResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteModerationVoteResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteModerationVoteResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteModerationVoteResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteModerationVoteResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteModeratorResponse.cpp b/client/src/model/DeleteModeratorResponse.cpp new file mode 100644 index 0000000..6441910 --- /dev/null +++ b/client/src/model/DeleteModeratorResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteModeratorResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteModeratorResponse::DeleteModeratorResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteModeratorResponse::~DeleteModeratorResponse() +{ +} + +void DeleteModeratorResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteModeratorResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteModeratorResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteModeratorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteModeratorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteModeratorResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteModeratorResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteModeratorResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteModeratorResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteModeratorResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteModeratorResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteModeratorResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteModeratorResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteModeratorResponse::getCode() const +{ + return m_Code; +} + + +void DeleteModeratorResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteModeratorResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteModeratorResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteModeratorResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteModeratorResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteModeratorResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteModeratorResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteModeratorResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteModeratorResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteModeratorResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteModeratorResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteModeratorResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteModeratorResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteModeratorResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteModeratorResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteModeratorResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteModeratorResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteModeratorResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteModeratorResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteModeratorResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteModeratorResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteModeratorResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteModeratorResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteNotificationCountResponse.cpp b/client/src/model/DeleteNotificationCountResponse.cpp new file mode 100644 index 0000000..8c295db --- /dev/null +++ b/client/src/model/DeleteNotificationCountResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteNotificationCountResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteNotificationCountResponse::DeleteNotificationCountResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteNotificationCountResponse::~DeleteNotificationCountResponse() +{ +} + +void DeleteNotificationCountResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteNotificationCountResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteNotificationCountResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteNotificationCountResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteNotificationCountResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteNotificationCountResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteNotificationCountResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteNotificationCountResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteNotificationCountResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteNotificationCountResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteNotificationCountResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteNotificationCountResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteNotificationCountResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteNotificationCountResponse::getCode() const +{ + return m_Code; +} + + +void DeleteNotificationCountResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteNotificationCountResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteNotificationCountResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteNotificationCountResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteNotificationCountResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteNotificationCountResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteNotificationCountResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteNotificationCountResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteNotificationCountResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteNotificationCountResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteNotificationCountResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteNotificationCountResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteNotificationCountResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteNotificationCountResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteNotificationCountResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteNotificationCountResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteNotificationCountResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteNotificationCountResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteNotificationCountResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteNotificationCountResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteNotificationCountResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteNotificationCountResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteNotificationCountResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeletePendingWebhookEventResponse.cpp b/client/src/model/DeletePendingWebhookEventResponse.cpp new file mode 100644 index 0000000..3276046 --- /dev/null +++ b/client/src/model/DeletePendingWebhookEventResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeletePendingWebhookEventResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeletePendingWebhookEventResponse::DeletePendingWebhookEventResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeletePendingWebhookEventResponse::~DeletePendingWebhookEventResponse() +{ +} + +void DeletePendingWebhookEventResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeletePendingWebhookEventResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeletePendingWebhookEventResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeletePendingWebhookEventResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeletePendingWebhookEventResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeletePendingWebhookEventResponse::getStatus() const +{ + return m_Status; +} + + +void DeletePendingWebhookEventResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeletePendingWebhookEventResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeletePendingWebhookEventResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeletePendingWebhookEventResponse::getReason() const +{ + return m_Reason; +} + + +void DeletePendingWebhookEventResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeletePendingWebhookEventResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeletePendingWebhookEventResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeletePendingWebhookEventResponse::getCode() const +{ + return m_Code; +} + + +void DeletePendingWebhookEventResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeletePendingWebhookEventResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeletePendingWebhookEventResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeletePendingWebhookEventResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeletePendingWebhookEventResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeletePendingWebhookEventResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeletePendingWebhookEventResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeletePendingWebhookEventResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeletePendingWebhookEventResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeletePendingWebhookEventResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeletePendingWebhookEventResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeletePendingWebhookEventResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeletePendingWebhookEventResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeletePendingWebhookEventResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeletePendingWebhookEventResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeletePendingWebhookEventResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeletePendingWebhookEventResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeletePendingWebhookEventResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeletePendingWebhookEventResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeletePendingWebhookEventResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeletePendingWebhookEventResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeletePendingWebhookEventResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeletePendingWebhookEventResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteQuestionConfigResponse.cpp b/client/src/model/DeleteQuestionConfigResponse.cpp new file mode 100644 index 0000000..e7f76de --- /dev/null +++ b/client/src/model/DeleteQuestionConfigResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteQuestionConfigResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteQuestionConfigResponse::DeleteQuestionConfigResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteQuestionConfigResponse::~DeleteQuestionConfigResponse() +{ +} + +void DeleteQuestionConfigResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteQuestionConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteQuestionConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteQuestionConfigResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteQuestionConfigResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteQuestionConfigResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteQuestionConfigResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteQuestionConfigResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteQuestionConfigResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteQuestionConfigResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteQuestionConfigResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteQuestionConfigResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteQuestionConfigResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteQuestionConfigResponse::getCode() const +{ + return m_Code; +} + + +void DeleteQuestionConfigResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteQuestionConfigResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteQuestionConfigResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteQuestionConfigResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteQuestionConfigResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteQuestionConfigResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteQuestionConfigResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteQuestionConfigResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteQuestionConfigResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteQuestionConfigResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteQuestionConfigResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteQuestionConfigResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteQuestionConfigResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteQuestionConfigResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteQuestionConfigResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteQuestionConfigResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteQuestionConfigResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteQuestionConfigResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteQuestionConfigResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteQuestionConfigResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteQuestionConfigResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteQuestionConfigResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteQuestionConfigResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteQuestionResultResponse.cpp b/client/src/model/DeleteQuestionResultResponse.cpp new file mode 100644 index 0000000..432eb66 --- /dev/null +++ b/client/src/model/DeleteQuestionResultResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteQuestionResultResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteQuestionResultResponse::DeleteQuestionResultResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteQuestionResultResponse::~DeleteQuestionResultResponse() +{ +} + +void DeleteQuestionResultResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteQuestionResultResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteQuestionResultResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteQuestionResultResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteQuestionResultResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteQuestionResultResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteQuestionResultResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteQuestionResultResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteQuestionResultResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteQuestionResultResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteQuestionResultResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteQuestionResultResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteQuestionResultResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteQuestionResultResponse::getCode() const +{ + return m_Code; +} + + +void DeleteQuestionResultResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteQuestionResultResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteQuestionResultResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteQuestionResultResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteQuestionResultResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteQuestionResultResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteQuestionResultResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteQuestionResultResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteQuestionResultResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteQuestionResultResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteQuestionResultResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteQuestionResultResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteQuestionResultResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteQuestionResultResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteQuestionResultResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteQuestionResultResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteQuestionResultResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteQuestionResultResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteQuestionResultResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteQuestionResultResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteQuestionResultResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteQuestionResultResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteQuestionResultResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteTenantPackageResponse.cpp b/client/src/model/DeleteTenantPackageResponse.cpp new file mode 100644 index 0000000..6a9c9d5 --- /dev/null +++ b/client/src/model/DeleteTenantPackageResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteTenantPackageResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteTenantPackageResponse::DeleteTenantPackageResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteTenantPackageResponse::~DeleteTenantPackageResponse() +{ +} + +void DeleteTenantPackageResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteTenantPackageResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteTenantPackageResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteTenantPackageResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteTenantPackageResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteTenantPackageResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteTenantPackageResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteTenantPackageResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteTenantPackageResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteTenantPackageResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteTenantPackageResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteTenantPackageResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteTenantPackageResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteTenantPackageResponse::getCode() const +{ + return m_Code; +} + + +void DeleteTenantPackageResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteTenantPackageResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteTenantPackageResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteTenantPackageResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteTenantPackageResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteTenantPackageResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteTenantPackageResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteTenantPackageResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteTenantPackageResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteTenantPackageResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteTenantPackageResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteTenantPackageResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteTenantPackageResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteTenantPackageResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteTenantPackageResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteTenantPackageResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteTenantPackageResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteTenantPackageResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteTenantPackageResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteTenantPackageResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteTenantPackageResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteTenantPackageResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteTenantPackageResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteTenantResponse.cpp b/client/src/model/DeleteTenantResponse.cpp new file mode 100644 index 0000000..eb25395 --- /dev/null +++ b/client/src/model/DeleteTenantResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteTenantResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteTenantResponse::DeleteTenantResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteTenantResponse::~DeleteTenantResponse() +{ +} + +void DeleteTenantResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteTenantResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteTenantResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteTenantResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteTenantResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteTenantResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteTenantResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteTenantResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteTenantResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteTenantResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteTenantResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteTenantResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteTenantResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteTenantResponse::getCode() const +{ + return m_Code; +} + + +void DeleteTenantResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteTenantResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteTenantResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteTenantResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteTenantResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteTenantResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteTenantResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteTenantResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteTenantResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteTenantResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteTenantResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteTenantResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteTenantResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteTenantResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteTenantResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteTenantResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteTenantResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteTenantResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteTenantResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteTenantResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteTenantResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteTenantResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteTenantResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteTenantUserResponse.cpp b/client/src/model/DeleteTenantUserResponse.cpp new file mode 100644 index 0000000..b70e1f5 --- /dev/null +++ b/client/src/model/DeleteTenantUserResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteTenantUserResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteTenantUserResponse::DeleteTenantUserResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteTenantUserResponse::~DeleteTenantUserResponse() +{ +} + +void DeleteTenantUserResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteTenantUserResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteTenantUserResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteTenantUserResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteTenantUserResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteTenantUserResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteTenantUserResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteTenantUserResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteTenantUserResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteTenantUserResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteTenantUserResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteTenantUserResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteTenantUserResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteTenantUserResponse::getCode() const +{ + return m_Code; +} + + +void DeleteTenantUserResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteTenantUserResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteTenantUserResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteTenantUserResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteTenantUserResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteTenantUserResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteTenantUserResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteTenantUserResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteTenantUserResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteTenantUserResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteTenantUserResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteTenantUserResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteTenantUserResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteTenantUserResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteTenantUserResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteTenantUserResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteTenantUserResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteTenantUserResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteTenantUserResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteTenantUserResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteTenantUserResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteTenantUserResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteTenantUserResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteUserBadgeResponse.cpp b/client/src/model/DeleteUserBadgeResponse.cpp new file mode 100644 index 0000000..f8d7c15 --- /dev/null +++ b/client/src/model/DeleteUserBadgeResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteUserBadgeResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteUserBadgeResponse::DeleteUserBadgeResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteUserBadgeResponse::~DeleteUserBadgeResponse() +{ +} + +void DeleteUserBadgeResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteUserBadgeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteUserBadgeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteUserBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteUserBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteUserBadgeResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteUserBadgeResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteUserBadgeResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteUserBadgeResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteUserBadgeResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteUserBadgeResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteUserBadgeResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteUserBadgeResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteUserBadgeResponse::getCode() const +{ + return m_Code; +} + + +void DeleteUserBadgeResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteUserBadgeResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteUserBadgeResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteUserBadgeResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteUserBadgeResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteUserBadgeResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteUserBadgeResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteUserBadgeResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteUserBadgeResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteUserBadgeResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteUserBadgeResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteUserBadgeResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteUserBadgeResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteUserBadgeResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteUserBadgeResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteUserBadgeResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteUserBadgeResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteUserBadgeResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteUserBadgeResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteUserBadgeResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteUserBadgeResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteUserBadgeResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteUserBadgeResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteV1PageReactResponse.cpp b/client/src/model/DeleteV1PageReactResponse.cpp new file mode 100644 index 0000000..0c94887 --- /dev/null +++ b/client/src/model/DeleteV1PageReactResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteV1PageReactResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteV1PageReactResponse::DeleteV1PageReactResponse() +{ + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteV1PageReactResponse::~DeleteV1PageReactResponse() +{ +} + +void DeleteV1PageReactResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteV1PageReactResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteV1PageReactResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteV1PageReactResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteV1PageReactResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +utility::string_t DeleteV1PageReactResponse::getCode() const +{ + return m_Code; +} + + +void DeleteV1PageReactResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteV1PageReactResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteV1PageReactResponse::unsetCode() +{ + m_CodeIsSet = false; +} +std::shared_ptr DeleteV1PageReactResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteV1PageReactResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteV1PageReactResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteV1PageReactResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteV1PageReactResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteV1PageReactResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteV1PageReactResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteV1PageReactResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteV1PageReactResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteV1PageReactResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteV1PageReactResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteV1PageReactResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteV1PageReactResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteV1PageReactResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteV1PageReactResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteV1PageReactResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteV1PageReactResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteV1PageReactResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteV1PageReactResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteV1PageReactResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteV1PageReactResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteV1PageReactResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteV1PageReactResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteV1PageReactResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteV1PageReactResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteV1PageReactResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteV1PageReactResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteV1PageReactResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteV2PageReactResponse.cpp b/client/src/model/DeleteV2PageReactResponse.cpp new file mode 100644 index 0000000..5b3b6b1 --- /dev/null +++ b/client/src/model/DeleteV2PageReactResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteV2PageReactResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteV2PageReactResponse::DeleteV2PageReactResponse() +{ + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteV2PageReactResponse::~DeleteV2PageReactResponse() +{ +} + +void DeleteV2PageReactResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteV2PageReactResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteV2PageReactResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteV2PageReactResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteV2PageReactResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +utility::string_t DeleteV2PageReactResponse::getCode() const +{ + return m_Code; +} + + +void DeleteV2PageReactResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteV2PageReactResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteV2PageReactResponse::unsetCode() +{ + m_CodeIsSet = false; +} +std::shared_ptr DeleteV2PageReactResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteV2PageReactResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteV2PageReactResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteV2PageReactResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t DeleteV2PageReactResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteV2PageReactResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteV2PageReactResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteV2PageReactResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteV2PageReactResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteV2PageReactResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteV2PageReactResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteV2PageReactResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteV2PageReactResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteV2PageReactResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteV2PageReactResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteV2PageReactResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteV2PageReactResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteV2PageReactResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteV2PageReactResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteV2PageReactResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteV2PageReactResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteV2PageReactResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteV2PageReactResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteV2PageReactResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteV2PageReactResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteV2PageReactResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteV2PageReactResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteV2PageReactResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/DeleteVoteResponse.cpp b/client/src/model/DeleteVoteResponse.cpp new file mode 100644 index 0000000..26afa4f --- /dev/null +++ b/client/src/model/DeleteVoteResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/DeleteVoteResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +DeleteVoteResponse::DeleteVoteResponse() +{ + m_StatusIsSet = false; + m_WasPendingVote = false; + m_WasPendingVoteIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +DeleteVoteResponse::~DeleteVoteResponse() +{ +} + +void DeleteVoteResponse::validate() +{ + // TODO: implement validation +} + +web::json::value DeleteVoteResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_WasPendingVoteIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))] = ModelBase::toJson(m_WasPendingVote); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool DeleteVoteResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))); + if(!fieldValue.is_null()) + { + bool refVal_setWasPendingVote; + ok &= ModelBase::fromJson(fieldValue, refVal_setWasPendingVote); + setWasPendingVote(refVal_setWasPendingVote); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void DeleteVoteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_WasPendingVoteIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")), m_WasPendingVote)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool DeleteVoteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) + { + bool refVal_setWasPendingVote; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))), refVal_setWasPendingVote ); + setWasPendingVote(refVal_setWasPendingVote); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr DeleteVoteResponse::getStatus() const +{ + return m_Status; +} + + +void DeleteVoteResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool DeleteVoteResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void DeleteVoteResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +bool DeleteVoteResponse::isWasPendingVote() const +{ + return m_WasPendingVote; +} + +void DeleteVoteResponse::setWasPendingVote(bool value) +{ + m_WasPendingVote = value; + m_WasPendingVoteIsSet = true; +} + +bool DeleteVoteResponse::wasPendingVoteIsSet() const +{ + return m_WasPendingVoteIsSet; +} + +void DeleteVoteResponse::unsetWasPendingVote() +{ + m_WasPendingVoteIsSet = false; +} +utility::string_t DeleteVoteResponse::getReason() const +{ + return m_Reason; +} + + +void DeleteVoteResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool DeleteVoteResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void DeleteVoteResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t DeleteVoteResponse::getCode() const +{ + return m_Code; +} + + +void DeleteVoteResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool DeleteVoteResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void DeleteVoteResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t DeleteVoteResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void DeleteVoteResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool DeleteVoteResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void DeleteVoteResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t DeleteVoteResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void DeleteVoteResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool DeleteVoteResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void DeleteVoteResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t DeleteVoteResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void DeleteVoteResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool DeleteVoteResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void DeleteVoteResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t DeleteVoteResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void DeleteVoteResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool DeleteVoteResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void DeleteVoteResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr DeleteVoteResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void DeleteVoteResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool DeleteVoteResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void DeleteVoteResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/FlagCommentPublicResponse.cpp b/client/src/model/FlagCommentPublicResponse.cpp new file mode 100644 index 0000000..a8f2427 --- /dev/null +++ b/client/src/model/FlagCommentPublicResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/FlagCommentPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +FlagCommentPublicResponse::FlagCommentPublicResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +FlagCommentPublicResponse::~FlagCommentPublicResponse() +{ +} + +void FlagCommentPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value FlagCommentPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool FlagCommentPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void FlagCommentPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool FlagCommentPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr FlagCommentPublicResponse::getStatus() const +{ + return m_Status; +} + + +void FlagCommentPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool FlagCommentPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void FlagCommentPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t FlagCommentPublicResponse::getReason() const +{ + return m_Reason; +} + + +void FlagCommentPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool FlagCommentPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void FlagCommentPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t FlagCommentPublicResponse::getCode() const +{ + return m_Code; +} + + +void FlagCommentPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool FlagCommentPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void FlagCommentPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t FlagCommentPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void FlagCommentPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool FlagCommentPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void FlagCommentPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t FlagCommentPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void FlagCommentPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool FlagCommentPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void FlagCommentPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t FlagCommentPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void FlagCommentPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool FlagCommentPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void FlagCommentPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t FlagCommentPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void FlagCommentPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool FlagCommentPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void FlagCommentPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr FlagCommentPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void FlagCommentPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool FlagCommentPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void FlagCommentPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/FlagCommentResponse_1.cpp b/client/src/model/FlagCommentResponse_1.cpp new file mode 100644 index 0000000..3f7d6b9 --- /dev/null +++ b/client/src/model/FlagCommentResponse_1.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/FlagCommentResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +FlagCommentResponse_1::FlagCommentResponse_1() +{ + m_StatusCode = 0; + m_StatusCodeIsSet = false; + m_StatusIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_WasUnapproved = false; + m_WasUnapprovedIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +FlagCommentResponse_1::~FlagCommentResponse_1() +{ +} + +void FlagCommentResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value FlagCommentResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_WasUnapprovedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))] = ModelBase::toJson(m_WasUnapproved); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool FlagCommentResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("statusCode"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setStatusCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatusCode); + setStatusCode(refVal_setStatusCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))); + if(!fieldValue.is_null()) + { + bool refVal_setWasUnapproved; + ok &= ModelBase::fromJson(fieldValue, refVal_setWasUnapproved); + setWasUnapproved(refVal_setWasUnapproved); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void FlagCommentResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("statusCode")), m_StatusCode)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_WasUnapprovedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")), m_WasUnapproved)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool FlagCommentResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) + { + int32_t refVal_setStatusCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("statusCode"))), refVal_setStatusCode ); + setStatusCode(refVal_setStatusCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")))) + { + bool refVal_setWasUnapproved; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))), refVal_setWasUnapproved ); + setWasUnapproved(refVal_setWasUnapproved); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +int32_t FlagCommentResponse_1::getStatusCode() const +{ + return m_StatusCode; +} + +void FlagCommentResponse_1::setStatusCode(int32_t value) +{ + m_StatusCode = value; + m_StatusCodeIsSet = true; +} + +bool FlagCommentResponse_1::statusCodeIsSet() const +{ + return m_StatusCodeIsSet; +} + +void FlagCommentResponse_1::unsetStatusCode() +{ + m_StatusCodeIsSet = false; +} +std::shared_ptr FlagCommentResponse_1::getStatus() const +{ + return m_Status; +} + + +void FlagCommentResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool FlagCommentResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void FlagCommentResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t FlagCommentResponse_1::getCode() const +{ + return m_Code; +} + + +void FlagCommentResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool FlagCommentResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void FlagCommentResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t FlagCommentResponse_1::getReason() const +{ + return m_Reason; +} + + +void FlagCommentResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool FlagCommentResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void FlagCommentResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +bool FlagCommentResponse_1::isWasUnapproved() const +{ + return m_WasUnapproved; +} + +void FlagCommentResponse_1::setWasUnapproved(bool value) +{ + m_WasUnapproved = value; + m_WasUnapprovedIsSet = true; +} + +bool FlagCommentResponse_1::wasUnapprovedIsSet() const +{ + return m_WasUnapprovedIsSet; +} + +void FlagCommentResponse_1::unsetWasUnapproved() +{ + m_WasUnapprovedIsSet = false; +} +utility::string_t FlagCommentResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void FlagCommentResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool FlagCommentResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void FlagCommentResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t FlagCommentResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void FlagCommentResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool FlagCommentResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void FlagCommentResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t FlagCommentResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void FlagCommentResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool FlagCommentResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void FlagCommentResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t FlagCommentResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void FlagCommentResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool FlagCommentResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void FlagCommentResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr FlagCommentResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void FlagCommentResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool FlagCommentResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void FlagCommentResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetApiCommentsResponse.cpp b/client/src/model/GetApiCommentsResponse.cpp new file mode 100644 index 0000000..83ba2b1 --- /dev/null +++ b/client/src/model/GetApiCommentsResponse.cpp @@ -0,0 +1,607 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetApiCommentsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetApiCommentsResponse::GetApiCommentsResponse() +{ + m_StatusIsSet = false; + m_TranslationsIsSet = false; + m_CommentsIsSet = false; + m_ModerationFilterIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetApiCommentsResponse::~GetApiCommentsResponse() +{ +} + +void GetApiCommentsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetApiCommentsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TranslationsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); + } + if(m_CommentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); + } + if(m_ModerationFilterIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))] = ModelBase::toJson(m_ModerationFilter); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetApiCommentsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translations")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translations"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setTranslations; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslations); + setTranslations(refVal_setTranslations); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromJson(fieldValue, refVal_setComments); + setComments(refVal_setComments); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderationFilter")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setModerationFilter; + ok &= ModelBase::fromJson(fieldValue, refVal_setModerationFilter); + setModerationFilter(refVal_setModerationFilter); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetApiCommentsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TranslationsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); + } + if(m_CommentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); + } + if(m_ModerationFilterIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationFilter")), m_ModerationFilter)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetApiCommentsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translations")))) + { + std::shared_ptr refVal_setTranslations; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translations"))), refVal_setTranslations ); + setTranslations(refVal_setTranslations); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); + setComments(refVal_setComments); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderationFilter")))) + { + std::shared_ptr refVal_setModerationFilter; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))), refVal_setModerationFilter ); + setModerationFilter(refVal_setModerationFilter); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetApiCommentsResponse::getStatus() const +{ + return m_Status; +} + + +void GetApiCommentsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetApiCommentsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetApiCommentsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetApiCommentsResponse::getTranslations() const +{ + return m_Translations; +} + + +void GetApiCommentsResponse::setTranslations(const std::shared_ptr& value) +{ + m_Translations = value; + m_TranslationsIsSet = true; +} + +bool GetApiCommentsResponse::translationsIsSet() const +{ + return m_TranslationsIsSet; +} + +void GetApiCommentsResponse::unsetTranslations() +{ + m_TranslationsIsSet = false; +} +std::vector> GetApiCommentsResponse::getComments() const +{ + return m_Comments; +} + + +void GetApiCommentsResponse::setComments(const std::vector>& value) +{ + m_Comments = value; + m_CommentsIsSet = true; +} + +bool GetApiCommentsResponse::commentsIsSet() const +{ + return m_CommentsIsSet; +} + +void GetApiCommentsResponse::unsetComments() +{ + m_CommentsIsSet = false; +} +std::shared_ptr GetApiCommentsResponse::getModerationFilter() const +{ + return m_ModerationFilter; +} + + +void GetApiCommentsResponse::setModerationFilter(const std::shared_ptr& value) +{ + m_ModerationFilter = value; + m_ModerationFilterIsSet = true; +} + +bool GetApiCommentsResponse::moderationFilterIsSet() const +{ + return m_ModerationFilterIsSet; +} + +void GetApiCommentsResponse::unsetModerationFilter() +{ + m_ModerationFilterIsSet = false; +} +utility::string_t GetApiCommentsResponse::getReason() const +{ + return m_Reason; +} + + +void GetApiCommentsResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetApiCommentsResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetApiCommentsResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetApiCommentsResponse::getCode() const +{ + return m_Code; +} + + +void GetApiCommentsResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetApiCommentsResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetApiCommentsResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetApiCommentsResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetApiCommentsResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetApiCommentsResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetApiCommentsResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetApiCommentsResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetApiCommentsResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetApiCommentsResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetApiCommentsResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetApiCommentsResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetApiCommentsResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetApiCommentsResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetApiCommentsResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetApiCommentsResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetApiCommentsResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetApiCommentsResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetApiCommentsResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetApiCommentsResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetApiCommentsResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetApiCommentsResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetApiCommentsResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetApiExportStatusResponse.cpp b/client/src/model/GetApiExportStatusResponse.cpp new file mode 100644 index 0000000..83622b1 --- /dev/null +++ b/client/src/model/GetApiExportStatusResponse.cpp @@ -0,0 +1,609 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetApiExportStatusResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetApiExportStatusResponse::GetApiExportStatusResponse() +{ + m_StatusIsSet = false; + m_JobStatus = utility::conversions::to_string_t(""); + m_JobStatusIsSet = false; + m_RecordCount = 0; + m_RecordCountIsSet = false; + m_DownloadUrl = utility::conversions::to_string_t(""); + m_DownloadUrlIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetApiExportStatusResponse::~GetApiExportStatusResponse() +{ +} + +void GetApiExportStatusResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetApiExportStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_JobStatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("jobStatus"))] = ModelBase::toJson(m_JobStatus); + } + if(m_RecordCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("recordCount"))] = ModelBase::toJson(m_RecordCount); + } + if(m_DownloadUrlIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("downloadUrl"))] = ModelBase::toJson(m_DownloadUrl); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetApiExportStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("jobStatus")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("jobStatus"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setJobStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setJobStatus); + setJobStatus(refVal_setJobStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("recordCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("recordCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setRecordCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setRecordCount); + setRecordCount(refVal_setRecordCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("downloadUrl")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("downloadUrl"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setDownloadUrl; + ok &= ModelBase::fromJson(fieldValue, refVal_setDownloadUrl); + setDownloadUrl(refVal_setDownloadUrl); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetApiExportStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_JobStatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("jobStatus")), m_JobStatus)); + } + if(m_RecordCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("recordCount")), m_RecordCount)); + } + if(m_DownloadUrlIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("downloadUrl")), m_DownloadUrl)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetApiExportStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("jobStatus")))) + { + utility::string_t refVal_setJobStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("jobStatus"))), refVal_setJobStatus ); + setJobStatus(refVal_setJobStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("recordCount")))) + { + int32_t refVal_setRecordCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("recordCount"))), refVal_setRecordCount ); + setRecordCount(refVal_setRecordCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("downloadUrl")))) + { + utility::string_t refVal_setDownloadUrl; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("downloadUrl"))), refVal_setDownloadUrl ); + setDownloadUrl(refVal_setDownloadUrl); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetApiExportStatusResponse::getStatus() const +{ + return m_Status; +} + + +void GetApiExportStatusResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetApiExportStatusResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetApiExportStatusResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetApiExportStatusResponse::getJobStatus() const +{ + return m_JobStatus; +} + + +void GetApiExportStatusResponse::setJobStatus(const utility::string_t& value) +{ + m_JobStatus = value; + m_JobStatusIsSet = true; +} + +bool GetApiExportStatusResponse::jobStatusIsSet() const +{ + return m_JobStatusIsSet; +} + +void GetApiExportStatusResponse::unsetJobStatus() +{ + m_JobStatusIsSet = false; +} +int32_t GetApiExportStatusResponse::getRecordCount() const +{ + return m_RecordCount; +} + +void GetApiExportStatusResponse::setRecordCount(int32_t value) +{ + m_RecordCount = value; + m_RecordCountIsSet = true; +} + +bool GetApiExportStatusResponse::recordCountIsSet() const +{ + return m_RecordCountIsSet; +} + +void GetApiExportStatusResponse::unsetRecordCount() +{ + m_RecordCountIsSet = false; +} +utility::string_t GetApiExportStatusResponse::getDownloadUrl() const +{ + return m_DownloadUrl; +} + + +void GetApiExportStatusResponse::setDownloadUrl(const utility::string_t& value) +{ + m_DownloadUrl = value; + m_DownloadUrlIsSet = true; +} + +bool GetApiExportStatusResponse::downloadUrlIsSet() const +{ + return m_DownloadUrlIsSet; +} + +void GetApiExportStatusResponse::unsetDownloadUrl() +{ + m_DownloadUrlIsSet = false; +} +utility::string_t GetApiExportStatusResponse::getReason() const +{ + return m_Reason; +} + + +void GetApiExportStatusResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetApiExportStatusResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetApiExportStatusResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetApiExportStatusResponse::getCode() const +{ + return m_Code; +} + + +void GetApiExportStatusResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetApiExportStatusResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetApiExportStatusResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetApiExportStatusResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetApiExportStatusResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetApiExportStatusResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetApiExportStatusResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetApiExportStatusResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetApiExportStatusResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetApiExportStatusResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetApiExportStatusResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetApiExportStatusResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetApiExportStatusResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetApiExportStatusResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetApiExportStatusResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetApiExportStatusResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetApiExportStatusResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetApiExportStatusResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetApiExportStatusResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetApiExportStatusResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetApiExportStatusResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetApiExportStatusResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetApiExportStatusResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetApiIdsResponse.cpp b/client/src/model/GetApiIdsResponse.cpp new file mode 100644 index 0000000..0bebc1b --- /dev/null +++ b/client/src/model/GetApiIdsResponse.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetApiIdsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetApiIdsResponse::GetApiIdsResponse() +{ + m_IdsIsSet = false; + m_HasMore = false; + m_HasMoreIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetApiIdsResponse::~GetApiIdsResponse() +{ +} + +void GetApiIdsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetApiIdsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_IdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ids"))] = ModelBase::toJson(m_Ids); + } + if(m_HasMoreIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetApiIdsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ids")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ids"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setIds); + setIds(refVal_setIds); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasMore; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); + setHasMore(refVal_setHasMore); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetApiIdsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_IdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ids")), m_Ids)); + } + if(m_HasMoreIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetApiIdsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ids")))) + { + std::vector refVal_setIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ids"))), refVal_setIds ); + setIds(refVal_setIds); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) + { + bool refVal_setHasMore; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); + setHasMore(refVal_setHasMore); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector GetApiIdsResponse::getIds() const +{ + return m_Ids; +} + + +void GetApiIdsResponse::setIds(const std::vector& value) +{ + m_Ids = value; + m_IdsIsSet = true; +} + +bool GetApiIdsResponse::idsIsSet() const +{ + return m_IdsIsSet; +} + +void GetApiIdsResponse::unsetIds() +{ + m_IdsIsSet = false; +} +bool GetApiIdsResponse::isHasMore() const +{ + return m_HasMore; +} + +void GetApiIdsResponse::setHasMore(bool value) +{ + m_HasMore = value; + m_HasMoreIsSet = true; +} + +bool GetApiIdsResponse::hasMoreIsSet() const +{ + return m_HasMoreIsSet; +} + +void GetApiIdsResponse::unsetHasMore() +{ + m_HasMoreIsSet = false; +} +std::shared_ptr GetApiIdsResponse::getStatus() const +{ + return m_Status; +} + + +void GetApiIdsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetApiIdsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetApiIdsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetApiIdsResponse::getReason() const +{ + return m_Reason; +} + + +void GetApiIdsResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetApiIdsResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetApiIdsResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetApiIdsResponse::getCode() const +{ + return m_Code; +} + + +void GetApiIdsResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetApiIdsResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetApiIdsResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetApiIdsResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetApiIdsResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetApiIdsResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetApiIdsResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetApiIdsResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetApiIdsResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetApiIdsResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetApiIdsResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetApiIdsResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetApiIdsResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetApiIdsResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetApiIdsResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetApiIdsResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetApiIdsResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetApiIdsResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetApiIdsResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetApiIdsResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetApiIdsResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetApiIdsResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetApiIdsResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetAuditLogsResponse_1.cpp b/client/src/model/GetAuditLogsResponse_1.cpp new file mode 100644 index 0000000..9f61dd3 --- /dev/null +++ b/client/src/model/GetAuditLogsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetAuditLogsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetAuditLogsResponse_1::GetAuditLogsResponse_1() +{ + m_StatusIsSet = false; + m_AuditLogsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetAuditLogsResponse_1::~GetAuditLogsResponse_1() +{ +} + +void GetAuditLogsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetAuditLogsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_AuditLogsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("auditLogs"))] = ModelBase::toJson(m_AuditLogs); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetAuditLogsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("auditLogs")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("auditLogs"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setAuditLogs; + ok &= ModelBase::fromJson(fieldValue, refVal_setAuditLogs); + setAuditLogs(refVal_setAuditLogs); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetAuditLogsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_AuditLogsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("auditLogs")), m_AuditLogs)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetAuditLogsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("auditLogs")))) + { + std::vector> refVal_setAuditLogs; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("auditLogs"))), refVal_setAuditLogs ); + setAuditLogs(refVal_setAuditLogs); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetAuditLogsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetAuditLogsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetAuditLogsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetAuditLogsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetAuditLogsResponse_1::getAuditLogs() const +{ + return m_AuditLogs; +} + + +void GetAuditLogsResponse_1::setAuditLogs(const std::vector>& value) +{ + m_AuditLogs = value; + m_AuditLogsIsSet = true; +} + +bool GetAuditLogsResponse_1::auditLogsIsSet() const +{ + return m_AuditLogsIsSet; +} + +void GetAuditLogsResponse_1::unsetAuditLogs() +{ + m_AuditLogsIsSet = false; +} +utility::string_t GetAuditLogsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetAuditLogsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetAuditLogsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetAuditLogsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetAuditLogsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetAuditLogsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetAuditLogsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetAuditLogsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetAuditLogsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetAuditLogsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetAuditLogsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetAuditLogsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetAuditLogsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetAuditLogsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetAuditLogsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetAuditLogsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetAuditLogsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetAuditLogsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetAuditLogsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetAuditLogsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetAuditLogsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetAuditLogsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetAuditLogsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetAuditLogsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetAuditLogsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetAuditLogsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetAuditLogsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetAuditLogsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetBanUsersFromCommentResponse.cpp b/client/src/model/GetBanUsersFromCommentResponse.cpp new file mode 100644 index 0000000..7903dc8 --- /dev/null +++ b/client/src/model/GetBanUsersFromCommentResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetBanUsersFromCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetBanUsersFromCommentResponse::GetBanUsersFromCommentResponse() +{ + m_BannedUsersIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetBanUsersFromCommentResponse::~GetBanUsersFromCommentResponse() +{ +} + +void GetBanUsersFromCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetBanUsersFromCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_BannedUsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUsers"))] = ModelBase::toJson(m_BannedUsers); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetBanUsersFromCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUsers")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUsers"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBannedUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUsers); + setBannedUsers(refVal_setBannedUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetBanUsersFromCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_BannedUsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUsers")), m_BannedUsers)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetBanUsersFromCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUsers")))) + { + std::vector> refVal_setBannedUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUsers"))), refVal_setBannedUsers ); + setBannedUsers(refVal_setBannedUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetBanUsersFromCommentResponse::getBannedUsers() const +{ + return m_BannedUsers; +} + + +void GetBanUsersFromCommentResponse::setBannedUsers(const std::vector>& value) +{ + m_BannedUsers = value; + m_BannedUsersIsSet = true; +} + +bool GetBanUsersFromCommentResponse::bannedUsersIsSet() const +{ + return m_BannedUsersIsSet; +} + +void GetBanUsersFromCommentResponse::unsetBannedUsers() +{ + m_BannedUsersIsSet = false; +} +utility::string_t GetBanUsersFromCommentResponse::getCode() const +{ + return m_Code; +} + + +void GetBanUsersFromCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetBanUsersFromCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetBanUsersFromCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +std::shared_ptr GetBanUsersFromCommentResponse::getStatus() const +{ + return m_Status; +} + + +void GetBanUsersFromCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetBanUsersFromCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetBanUsersFromCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetBanUsersFromCommentResponse::getReason() const +{ + return m_Reason; +} + + +void GetBanUsersFromCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetBanUsersFromCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetBanUsersFromCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetBanUsersFromCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetBanUsersFromCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetBanUsersFromCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetBanUsersFromCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetBanUsersFromCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetBanUsersFromCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetBanUsersFromCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetBanUsersFromCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetBanUsersFromCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetBanUsersFromCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetBanUsersFromCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetBanUsersFromCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetBanUsersFromCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetBanUsersFromCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetBanUsersFromCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetBanUsersFromCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetBanUsersFromCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetBanUsersFromCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetBanUsersFromCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetBanUsersFromCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCachedNotificationCountResponse_1.cpp b/client/src/model/GetCachedNotificationCountResponse_1.cpp new file mode 100644 index 0000000..8a2bfcb --- /dev/null +++ b/client/src/model/GetCachedNotificationCountResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCachedNotificationCountResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCachedNotificationCountResponse_1::GetCachedNotificationCountResponse_1() +{ + m_StatusIsSet = false; + m_DataIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetCachedNotificationCountResponse_1::~GetCachedNotificationCountResponse_1() +{ +} + +void GetCachedNotificationCountResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetCachedNotificationCountResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_DataIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetCachedNotificationCountResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setData; + ok &= ModelBase::fromJson(fieldValue, refVal_setData); + setData(refVal_setData); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetCachedNotificationCountResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_DataIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetCachedNotificationCountResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) + { + std::shared_ptr refVal_setData; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); + setData(refVal_setData); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetCachedNotificationCountResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetCachedNotificationCountResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCachedNotificationCountResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCachedNotificationCountResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetCachedNotificationCountResponse_1::getData() const +{ + return m_Data; +} + + +void GetCachedNotificationCountResponse_1::setData(const std::shared_ptr& value) +{ + m_Data = value; + m_DataIsSet = true; +} + +bool GetCachedNotificationCountResponse_1::dataIsSet() const +{ + return m_DataIsSet; +} + +void GetCachedNotificationCountResponse_1::unsetData() +{ + m_DataIsSet = false; +} +utility::string_t GetCachedNotificationCountResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetCachedNotificationCountResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCachedNotificationCountResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCachedNotificationCountResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCachedNotificationCountResponse_1::getCode() const +{ + return m_Code; +} + + +void GetCachedNotificationCountResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCachedNotificationCountResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCachedNotificationCountResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCachedNotificationCountResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCachedNotificationCountResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCachedNotificationCountResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCachedNotificationCountResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCachedNotificationCountResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCachedNotificationCountResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCachedNotificationCountResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCachedNotificationCountResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCachedNotificationCountResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCachedNotificationCountResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCachedNotificationCountResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCachedNotificationCountResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCachedNotificationCountResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCachedNotificationCountResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCachedNotificationCountResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCachedNotificationCountResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetCachedNotificationCountResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCachedNotificationCountResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCachedNotificationCountResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCachedNotificationCountResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentBanStatusResponse_1.cpp b/client/src/model/GetCommentBanStatusResponse_1.cpp new file mode 100644 index 0000000..4f86feb --- /dev/null +++ b/client/src/model/GetCommentBanStatusResponse_1.cpp @@ -0,0 +1,554 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentBanStatusResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentBanStatusResponse_1::GetCommentBanStatusResponse_1() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetCommentBanStatusResponse_1::~GetCommentBanStatusResponse_1() +{ +} + +void GetCommentBanStatusResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentBanStatusResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_EmailDomain.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("emailDomain"))] = ModelBase::toJson(m_EmailDomain.get()); + } + if(m_CanIPBan.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("canIPBan"))] = ModelBase::toJson(m_CanIPBan.get()); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetCommentBanStatusResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailDomain")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailDomain"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setEmailDomain; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmailDomain); + setEmailDomain(refVal_setEmailDomain); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("canIPBan")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("canIPBan"))); + if(!fieldValue.is_null()) + { + bool refVal_setCanIPBan; + ok &= ModelBase::fromJson(fieldValue, refVal_setCanIPBan); + setCanIPBan(refVal_setCanIPBan); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetCommentBanStatusResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_EmailDomain.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailDomain")), m_EmailDomain.get())); + } + if(m_CanIPBan.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("canIPBan")), m_CanIPBan.get())); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetCommentBanStatusResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailDomain")))) + { + utility::string_t refVal_setEmailDomain; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailDomain"))), refVal_setEmailDomain ); + setEmailDomain(refVal_setEmailDomain); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("canIPBan")))) + { + bool refVal_setCanIPBan; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("canIPBan"))), refVal_setCanIPBan ); + setCanIPBan(refVal_setCanIPBan); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetCommentBanStatusResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetCommentBanStatusResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCommentBanStatusResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCommentBanStatusResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetCommentBanStatusResponse_1::getEmailDomain() const +{ + return m_EmailDomain.get(); +} + + +void GetCommentBanStatusResponse_1::setEmailDomain(const utility::string_t& value) +{ + m_EmailDomain = value; +} + +bool GetCommentBanStatusResponse_1::emailDomainIsSet() const +{ + return m_EmailDomain.has_value(); +} + +void GetCommentBanStatusResponse_1::unsetEmailDomain() +{ + m_EmailDomain.reset(); +} +bool GetCommentBanStatusResponse_1::isCanIPBan() const +{ + return m_CanIPBan.get(); +} + +void GetCommentBanStatusResponse_1::setCanIPBan(bool value) +{ + m_CanIPBan = value; +} + +bool GetCommentBanStatusResponse_1::canIPBanIsSet() const +{ + return m_CanIPBan.has_value(); +} + +void GetCommentBanStatusResponse_1::unsetCanIPBan() +{ + m_CanIPBan.reset(); +} +utility::string_t GetCommentBanStatusResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetCommentBanStatusResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCommentBanStatusResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCommentBanStatusResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCommentBanStatusResponse_1::getCode() const +{ + return m_Code; +} + + +void GetCommentBanStatusResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCommentBanStatusResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCommentBanStatusResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCommentBanStatusResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCommentBanStatusResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCommentBanStatusResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCommentBanStatusResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCommentBanStatusResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCommentBanStatusResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCommentBanStatusResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCommentBanStatusResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCommentBanStatusResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCommentBanStatusResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCommentBanStatusResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCommentBanStatusResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCommentBanStatusResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCommentBanStatusResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCommentBanStatusResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCommentBanStatusResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetCommentBanStatusResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCommentBanStatusResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCommentBanStatusResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCommentBanStatusResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentChildrenResponse.cpp b/client/src/model/GetCommentChildrenResponse.cpp new file mode 100644 index 0000000..6381d7b --- /dev/null +++ b/client/src/model/GetCommentChildrenResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentChildrenResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentChildrenResponse::GetCommentChildrenResponse() +{ + m_CommentsIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetCommentChildrenResponse::~GetCommentChildrenResponse() +{ +} + +void GetCommentChildrenResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentChildrenResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetCommentChildrenResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromJson(fieldValue, refVal_setComments); + setComments(refVal_setComments); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetCommentChildrenResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetCommentChildrenResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); + setComments(refVal_setComments); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetCommentChildrenResponse::getComments() const +{ + return m_Comments; +} + + +void GetCommentChildrenResponse::setComments(const std::vector>& value) +{ + m_Comments = value; + m_CommentsIsSet = true; +} + +bool GetCommentChildrenResponse::commentsIsSet() const +{ + return m_CommentsIsSet; +} + +void GetCommentChildrenResponse::unsetComments() +{ + m_CommentsIsSet = false; +} +std::shared_ptr GetCommentChildrenResponse::getStatus() const +{ + return m_Status; +} + + +void GetCommentChildrenResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCommentChildrenResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCommentChildrenResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetCommentChildrenResponse::getReason() const +{ + return m_Reason; +} + + +void GetCommentChildrenResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCommentChildrenResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCommentChildrenResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCommentChildrenResponse::getCode() const +{ + return m_Code; +} + + +void GetCommentChildrenResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCommentChildrenResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCommentChildrenResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCommentChildrenResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCommentChildrenResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCommentChildrenResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCommentChildrenResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCommentChildrenResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCommentChildrenResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCommentChildrenResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCommentChildrenResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCommentChildrenResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCommentChildrenResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCommentChildrenResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCommentChildrenResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCommentChildrenResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCommentChildrenResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCommentChildrenResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCommentChildrenResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetCommentChildrenResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCommentChildrenResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCommentChildrenResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCommentChildrenResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentResponse.cpp b/client/src/model/GetCommentResponse.cpp new file mode 100644 index 0000000..c21db13 --- /dev/null +++ b/client/src/model/GetCommentResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentResponse::GetCommentResponse() +{ + m_StatusIsSet = false; + m_CommentIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetCommentResponse::~GetCommentResponse() +{ +} + +void GetCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CommentIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromJson(fieldValue, refVal_setComment); + setComment(refVal_setComment); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CommentIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); + setComment(refVal_setComment); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetCommentResponse::getStatus() const +{ + return m_Status; +} + + +void GetCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetCommentResponse::getComment() const +{ + return m_Comment; +} + + +void GetCommentResponse::setComment(const std::shared_ptr& value) +{ + m_Comment = value; + m_CommentIsSet = true; +} + +bool GetCommentResponse::commentIsSet() const +{ + return m_CommentIsSet; +} + +void GetCommentResponse::unsetComment() +{ + m_CommentIsSet = false; +} +utility::string_t GetCommentResponse::getReason() const +{ + return m_Reason; +} + + +void GetCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCommentResponse::getCode() const +{ + return m_Code; +} + + +void GetCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentTextResponse_1.cpp b/client/src/model/GetCommentTextResponse_1.cpp new file mode 100644 index 0000000..55b6b65 --- /dev/null +++ b/client/src/model/GetCommentTextResponse_1.cpp @@ -0,0 +1,561 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentTextResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentTextResponse_1::GetCommentTextResponse_1() +{ + m_StatusIsSet = false; + m_CommentText = utility::conversions::to_string_t(""); + m_CommentTextIsSet = false; + m_SanitizedCommentText = utility::conversions::to_string_t(""); + m_SanitizedCommentTextIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetCommentTextResponse_1::~GetCommentTextResponse_1() +{ +} + +void GetCommentTextResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentTextResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CommentTextIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentText"))] = ModelBase::toJson(m_CommentText); + } + if(m_SanitizedCommentTextIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))] = ModelBase::toJson(m_SanitizedCommentText); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetCommentTextResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentText")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentText"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCommentText; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentText); + setCommentText(refVal_setCommentText); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSanitizedCommentText; + ok &= ModelBase::fromJson(fieldValue, refVal_setSanitizedCommentText); + setSanitizedCommentText(refVal_setSanitizedCommentText); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetCommentTextResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CommentTextIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentText")), m_CommentText)); + } + if(m_SanitizedCommentTextIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText")), m_SanitizedCommentText)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetCommentTextResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentText")))) + { + utility::string_t refVal_setCommentText; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentText"))), refVal_setCommentText ); + setCommentText(refVal_setCommentText); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText")))) + { + utility::string_t refVal_setSanitizedCommentText; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))), refVal_setSanitizedCommentText ); + setSanitizedCommentText(refVal_setSanitizedCommentText); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetCommentTextResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetCommentTextResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCommentTextResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCommentTextResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetCommentTextResponse_1::getCommentText() const +{ + return m_CommentText; +} + + +void GetCommentTextResponse_1::setCommentText(const utility::string_t& value) +{ + m_CommentText = value; + m_CommentTextIsSet = true; +} + +bool GetCommentTextResponse_1::commentTextIsSet() const +{ + return m_CommentTextIsSet; +} + +void GetCommentTextResponse_1::unsetCommentText() +{ + m_CommentTextIsSet = false; +} +utility::string_t GetCommentTextResponse_1::getSanitizedCommentText() const +{ + return m_SanitizedCommentText; +} + + +void GetCommentTextResponse_1::setSanitizedCommentText(const utility::string_t& value) +{ + m_SanitizedCommentText = value; + m_SanitizedCommentTextIsSet = true; +} + +bool GetCommentTextResponse_1::sanitizedCommentTextIsSet() const +{ + return m_SanitizedCommentTextIsSet; +} + +void GetCommentTextResponse_1::unsetSanitizedCommentText() +{ + m_SanitizedCommentTextIsSet = false; +} +utility::string_t GetCommentTextResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetCommentTextResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCommentTextResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCommentTextResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCommentTextResponse_1::getCode() const +{ + return m_Code; +} + + +void GetCommentTextResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCommentTextResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCommentTextResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCommentTextResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCommentTextResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCommentTextResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCommentTextResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCommentTextResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCommentTextResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCommentTextResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCommentTextResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCommentTextResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCommentTextResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCommentTextResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCommentTextResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCommentTextResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCommentTextResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCommentTextResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCommentTextResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetCommentTextResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCommentTextResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCommentTextResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCommentTextResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentVoteUserNamesResponse.cpp b/client/src/model/GetCommentVoteUserNamesResponse.cpp new file mode 100644 index 0000000..27b5805 --- /dev/null +++ b/client/src/model/GetCommentVoteUserNamesResponse.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentVoteUserNamesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentVoteUserNamesResponse::GetCommentVoteUserNamesResponse() +{ + m_StatusIsSet = false; + m_VoteUserNamesIsSet = false; + m_HasMore = false; + m_HasMoreIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetCommentVoteUserNamesResponse::~GetCommentVoteUserNamesResponse() +{ +} + +void GetCommentVoteUserNamesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentVoteUserNamesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_VoteUserNamesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))] = ModelBase::toJson(m_VoteUserNames); + } + if(m_HasMoreIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetCommentVoteUserNamesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("voteUserNames")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setVoteUserNames; + ok &= ModelBase::fromJson(fieldValue, refVal_setVoteUserNames); + setVoteUserNames(refVal_setVoteUserNames); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasMore; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); + setHasMore(refVal_setHasMore); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetCommentVoteUserNamesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_VoteUserNamesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteUserNames")), m_VoteUserNames)); + } + if(m_HasMoreIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetCommentVoteUserNamesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteUserNames")))) + { + std::vector refVal_setVoteUserNames; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))), refVal_setVoteUserNames ); + setVoteUserNames(refVal_setVoteUserNames); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) + { + bool refVal_setHasMore; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); + setHasMore(refVal_setHasMore); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetCommentVoteUserNamesResponse::getStatus() const +{ + return m_Status; +} + + +void GetCommentVoteUserNamesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCommentVoteUserNamesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCommentVoteUserNamesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector GetCommentVoteUserNamesResponse::getVoteUserNames() const +{ + return m_VoteUserNames; +} + + +void GetCommentVoteUserNamesResponse::setVoteUserNames(const std::vector& value) +{ + m_VoteUserNames = value; + m_VoteUserNamesIsSet = true; +} + +bool GetCommentVoteUserNamesResponse::voteUserNamesIsSet() const +{ + return m_VoteUserNamesIsSet; +} + +void GetCommentVoteUserNamesResponse::unsetVoteUserNames() +{ + m_VoteUserNamesIsSet = false; +} +bool GetCommentVoteUserNamesResponse::isHasMore() const +{ + return m_HasMore; +} + +void GetCommentVoteUserNamesResponse::setHasMore(bool value) +{ + m_HasMore = value; + m_HasMoreIsSet = true; +} + +bool GetCommentVoteUserNamesResponse::hasMoreIsSet() const +{ + return m_HasMoreIsSet; +} + +void GetCommentVoteUserNamesResponse::unsetHasMore() +{ + m_HasMoreIsSet = false; +} +utility::string_t GetCommentVoteUserNamesResponse::getReason() const +{ + return m_Reason; +} + + +void GetCommentVoteUserNamesResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCommentVoteUserNamesResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCommentVoteUserNamesResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCommentVoteUserNamesResponse::getCode() const +{ + return m_Code; +} + + +void GetCommentVoteUserNamesResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCommentVoteUserNamesResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCommentVoteUserNamesResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCommentVoteUserNamesResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCommentVoteUserNamesResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCommentVoteUserNamesResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCommentVoteUserNamesResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCommentVoteUserNamesResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCommentVoteUserNamesResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCommentVoteUserNamesResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCommentVoteUserNamesResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCommentVoteUserNamesResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCommentVoteUserNamesResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCommentVoteUserNamesResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCommentVoteUserNamesResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCommentVoteUserNamesResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCommentVoteUserNamesResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCommentVoteUserNamesResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCommentVoteUserNamesResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetCommentVoteUserNamesResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCommentVoteUserNamesResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCommentVoteUserNamesResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCommentVoteUserNamesResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentsForUserResponse_1.cpp b/client/src/model/GetCommentsForUserResponse_1.cpp new file mode 100644 index 0000000..222b425 --- /dev/null +++ b/client/src/model/GetCommentsForUserResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentsForUserResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentsForUserResponse_1::GetCommentsForUserResponse_1() +{ + m_ModeratingTenantIdsIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetCommentsForUserResponse_1::~GetCommentsForUserResponse_1() +{ +} + +void GetCommentsForUserResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentsForUserResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ModeratingTenantIdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds"))] = ModelBase::toJson(m_ModeratingTenantIds); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetCommentsForUserResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setModeratingTenantIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setModeratingTenantIds); + setModeratingTenantIds(refVal_setModeratingTenantIds); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetCommentsForUserResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ModeratingTenantIdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds")), m_ModeratingTenantIds)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetCommentsForUserResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds")))) + { + std::vector refVal_setModeratingTenantIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds"))), refVal_setModeratingTenantIds ); + setModeratingTenantIds(refVal_setModeratingTenantIds); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector GetCommentsForUserResponse_1::getModeratingTenantIds() const +{ + return m_ModeratingTenantIds; +} + + +void GetCommentsForUserResponse_1::setModeratingTenantIds(const std::vector& value) +{ + m_ModeratingTenantIds = value; + m_ModeratingTenantIdsIsSet = true; +} + +bool GetCommentsForUserResponse_1::moderatingTenantIdsIsSet() const +{ + return m_ModeratingTenantIdsIsSet; +} + +void GetCommentsForUserResponse_1::unsetModeratingTenantIds() +{ + m_ModeratingTenantIdsIsSet = false; +} +std::shared_ptr GetCommentsForUserResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetCommentsForUserResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCommentsForUserResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCommentsForUserResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetCommentsForUserResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetCommentsForUserResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCommentsForUserResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCommentsForUserResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCommentsForUserResponse_1::getCode() const +{ + return m_Code; +} + + +void GetCommentsForUserResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCommentsForUserResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCommentsForUserResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCommentsForUserResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCommentsForUserResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCommentsForUserResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCommentsForUserResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCommentsForUserResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCommentsForUserResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCommentsForUserResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCommentsForUserResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCommentsForUserResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCommentsForUserResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCommentsForUserResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCommentsForUserResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCommentsForUserResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCommentsForUserResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCommentsForUserResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCommentsForUserResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetCommentsForUserResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCommentsForUserResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCommentsForUserResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCommentsForUserResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentsPublicResponse.cpp b/client/src/model/GetCommentsPublicResponse.cpp new file mode 100644 index 0000000..54e070a --- /dev/null +++ b/client/src/model/GetCommentsPublicResponse.cpp @@ -0,0 +1,1567 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentsPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentsPublicResponse::GetCommentsPublicResponse() +{ + m_StatusCode = 0; + m_StatusCodeIsSet = false; + m_StatusIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_TranslatedWarning = utility::conversions::to_string_t(""); + m_TranslatedWarningIsSet = false; + m_CommentsIsSet = false; + m_UrlIdClean = utility::conversions::to_string_t(""); + m_UrlIdCleanIsSet = false; + m_IncludesPastPages = false; + m_IncludesPastPagesIsSet = false; + m_IsDemo = false; + m_IsDemoIsSet = false; + m_CommentCount = 0; + m_CommentCountIsSet = false; + m_IsSiteAdmin = false; + m_IsSiteAdminIsSet = false; + m_HasBillingIssue = false; + m_HasBillingIssueIsSet = false; + m_ModuleDataIsSet = false; + m_PageNumber = 0; + m_PageNumberIsSet = false; + m_IsWhiteLabeled = false; + m_IsWhiteLabeledIsSet = false; + m_IsProd = false; + m_IsProdIsSet = false; + m_IsCrawler = false; + m_IsCrawlerIsSet = false; + m_NotificationCount = 0; + m_NotificationCountIsSet = false; + m_HasMore = false; + m_HasMoreIsSet = false; + m_IsClosed = false; + m_IsClosedIsSet = false; + m_PresencePollState = 0; + m_PresencePollStateIsSet = false; + m_CustomConfigIsSet = false; + m_UrlIdWS = utility::conversions::to_string_t(""); + m_UrlIdWSIsSet = false; + m_UserIdWS = utility::conversions::to_string_t(""); + m_UserIdWSIsSet = false; + m_TenantIdWS = utility::conversions::to_string_t(""); + m_TenantIdWSIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; +} + +GetCommentsPublicResponse::~GetCommentsPublicResponse() +{ +} + +void GetCommentsPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentsPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_TranslatedWarningIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))] = ModelBase::toJson(m_TranslatedWarning); + } + if(m_CommentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); + } + if(m_User.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + } + if(m_UrlIdCleanIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))] = ModelBase::toJson(m_UrlIdClean); + } + if(m_LastGenDate.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate.get()); + } + if(m_IncludesPastPagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))] = ModelBase::toJson(m_IncludesPastPages); + } + if(m_IsDemoIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isDemo"))] = ModelBase::toJson(m_IsDemo); + } + if(m_CommentCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); + } + if(m_IsSiteAdminIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))] = ModelBase::toJson(m_IsSiteAdmin); + } + if(m_HasBillingIssueIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))] = ModelBase::toJson(m_HasBillingIssue); + } + if(m_ModuleDataIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); + } + if(m_PageNumberIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber); + } + if(m_IsWhiteLabeledIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))] = ModelBase::toJson(m_IsWhiteLabeled); + } + if(m_IsProdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isProd"))] = ModelBase::toJson(m_IsProd); + } + if(m_IsCrawlerIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isCrawler"))] = ModelBase::toJson(m_IsCrawler); + } + if(m_NotificationCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("notificationCount"))] = ModelBase::toJson(m_NotificationCount); + } + if(m_HasMoreIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); + } + if(m_IsClosedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); + } + if(m_PresencePollStateIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("presencePollState"))] = ModelBase::toJson(m_PresencePollState); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + if(m_UrlIdWSIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); + } + if(m_UserIdWSIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); + } + if(m_TenantIdWSIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + + return val; +} + +bool GetCommentsPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("statusCode"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setStatusCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatusCode); + setStatusCode(refVal_setStatusCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedWarning")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedWarning; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedWarning); + setTranslatedWarning(refVal_setTranslatedWarning); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromJson(fieldValue, refVal_setComments); + setComments(refVal_setComments); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setUser); + setUser(refVal_setUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdClean")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrlIdClean; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdClean); + setUrlIdClean(refVal_setUrlIdClean); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("lastGenDate")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setLastGenDate; + ok &= ModelBase::fromJson(fieldValue, refVal_setLastGenDate); + setLastGenDate(refVal_setLastGenDate); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("includesPastPages")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))); + if(!fieldValue.is_null()) + { + bool refVal_setIncludesPastPages; + ok &= ModelBase::fromJson(fieldValue, refVal_setIncludesPastPages); + setIncludesPastPages(refVal_setIncludesPastPages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isDemo")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isDemo"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsDemo; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsDemo); + setIsDemo(refVal_setIsDemo); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); + setCommentCount(refVal_setCommentCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsSiteAdmin; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsSiteAdmin); + setIsSiteAdmin(refVal_setIsSiteAdmin); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasBillingIssue; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasBillingIssue); + setHasBillingIssue(refVal_setHasBillingIssue); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moduleData"))); + if(!fieldValue.is_null()) + { + std::map> refVal_setModuleData; + ok &= ModelBase::fromJson(fieldValue, refVal_setModuleData); + setModuleData(refVal_setModuleData); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pageNumber")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pageNumber"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setPageNumber; + ok &= ModelBase::fromJson(fieldValue, refVal_setPageNumber); + setPageNumber(refVal_setPageNumber); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsWhiteLabeled; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsWhiteLabeled); + setIsWhiteLabeled(refVal_setIsWhiteLabeled); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isProd")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isProd"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsProd; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsProd); + setIsProd(refVal_setIsProd); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isCrawler")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isCrawler"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsCrawler; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsCrawler); + setIsCrawler(refVal_setIsCrawler); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notificationCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notificationCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setNotificationCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setNotificationCount); + setNotificationCount(refVal_setNotificationCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasMore; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); + setHasMore(refVal_setHasMore); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isClosed")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isClosed"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsClosed; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsClosed); + setIsClosed(refVal_setIsClosed); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("presencePollState")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("presencePollState"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setPresencePollState; + ok &= ModelBase::fromJson(fieldValue, refVal_setPresencePollState); + setPresencePollState(refVal_setPresencePollState); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrlIdWS; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdWS); + setUrlIdWS(refVal_setUrlIdWS); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserIdWS; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdWS); + setUserIdWS(refVal_setUserIdWS); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTenantIdWS; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantIdWS); + setTenantIdWS(refVal_setTenantIdWS); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + return ok; +} + +void GetCommentsPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("statusCode")), m_StatusCode)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_TranslatedWarningIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedWarning")), m_TranslatedWarning)); + } + if(m_CommentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); + } + if(m_User.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + } + if(m_UrlIdCleanIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdClean")), m_UrlIdClean)); + } + if(m_LastGenDate.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate.get())); + } + if(m_IncludesPastPagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("includesPastPages")), m_IncludesPastPages)); + } + if(m_IsDemoIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isDemo")), m_IsDemo)); + } + if(m_CommentCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); + } + if(m_IsSiteAdminIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin")), m_IsSiteAdmin)); + } + if(m_HasBillingIssueIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue")), m_HasBillingIssue)); + } + if(m_ModuleDataIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moduleData")), m_ModuleData)); + } + if(m_PageNumberIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumber")), m_PageNumber)); + } + if(m_IsWhiteLabeledIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled")), m_IsWhiteLabeled)); + } + if(m_IsProdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isProd")), m_IsProd)); + } + if(m_IsCrawlerIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isCrawler")), m_IsCrawler)); + } + if(m_NotificationCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notificationCount")), m_NotificationCount)); + } + if(m_HasMoreIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); + } + if(m_IsClosedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isClosed")), m_IsClosed)); + } + if(m_PresencePollStateIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("presencePollState")), m_PresencePollState)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } + if(m_UrlIdWSIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdWS")), m_UrlIdWS)); + } + if(m_UserIdWSIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdWS")), m_UserIdWS)); + } + if(m_TenantIdWSIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")), m_TenantIdWS)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } +} + +bool GetCommentsPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) + { + int32_t refVal_setStatusCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("statusCode"))), refVal_setStatusCode ); + setStatusCode(refVal_setStatusCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedWarning")))) + { + utility::string_t refVal_setTranslatedWarning; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))), refVal_setTranslatedWarning ); + setTranslatedWarning(refVal_setTranslatedWarning); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); + setComments(refVal_setComments); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); + setUser(refVal_setUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdClean")))) + { + utility::string_t refVal_setUrlIdClean; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))), refVal_setUrlIdClean ); + setUrlIdClean(refVal_setUrlIdClean); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("lastGenDate")))) + { + int64_t refVal_setLastGenDate; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))), refVal_setLastGenDate ); + setLastGenDate(refVal_setLastGenDate); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("includesPastPages")))) + { + bool refVal_setIncludesPastPages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))), refVal_setIncludesPastPages ); + setIncludesPastPages(refVal_setIncludesPastPages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isDemo")))) + { + bool refVal_setIsDemo; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isDemo"))), refVal_setIsDemo ); + setIsDemo(refVal_setIsDemo); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); + setCommentCount(refVal_setCommentCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin")))) + { + bool refVal_setIsSiteAdmin; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))), refVal_setIsSiteAdmin ); + setIsSiteAdmin(refVal_setIsSiteAdmin); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue")))) + { + bool refVal_setHasBillingIssue; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))), refVal_setHasBillingIssue ); + setHasBillingIssue(refVal_setHasBillingIssue); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) + { + std::map> refVal_setModuleData; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moduleData"))), refVal_setModuleData ); + setModuleData(refVal_setModuleData); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pageNumber")))) + { + int32_t refVal_setPageNumber; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pageNumber"))), refVal_setPageNumber ); + setPageNumber(refVal_setPageNumber); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled")))) + { + bool refVal_setIsWhiteLabeled; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))), refVal_setIsWhiteLabeled ); + setIsWhiteLabeled(refVal_setIsWhiteLabeled); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isProd")))) + { + bool refVal_setIsProd; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isProd"))), refVal_setIsProd ); + setIsProd(refVal_setIsProd); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isCrawler")))) + { + bool refVal_setIsCrawler; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isCrawler"))), refVal_setIsCrawler ); + setIsCrawler(refVal_setIsCrawler); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notificationCount")))) + { + int32_t refVal_setNotificationCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notificationCount"))), refVal_setNotificationCount ); + setNotificationCount(refVal_setNotificationCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) + { + bool refVal_setHasMore; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); + setHasMore(refVal_setHasMore); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isClosed")))) + { + bool refVal_setIsClosed; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isClosed"))), refVal_setIsClosed ); + setIsClosed(refVal_setIsClosed); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("presencePollState")))) + { + int32_t refVal_setPresencePollState; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("presencePollState"))), refVal_setPresencePollState ); + setPresencePollState(refVal_setPresencePollState); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) + { + utility::string_t refVal_setUrlIdWS; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))), refVal_setUrlIdWS ); + setUrlIdWS(refVal_setUrlIdWS); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) + { + utility::string_t refVal_setUserIdWS; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))), refVal_setUserIdWS ); + setUserIdWS(refVal_setUserIdWS); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) + { + utility::string_t refVal_setTenantIdWS; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))), refVal_setTenantIdWS ); + setTenantIdWS(refVal_setTenantIdWS); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + return ok; +} + + +int32_t GetCommentsPublicResponse::getStatusCode() const +{ + return m_StatusCode; +} + +void GetCommentsPublicResponse::setStatusCode(int32_t value) +{ + m_StatusCode = value; + m_StatusCodeIsSet = true; +} + +bool GetCommentsPublicResponse::statusCodeIsSet() const +{ + return m_StatusCodeIsSet; +} + +void GetCommentsPublicResponse::unsetStatusCode() +{ + m_StatusCodeIsSet = false; +} +std::shared_ptr GetCommentsPublicResponse::getStatus() const +{ + return m_Status; +} + + +void GetCommentsPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCommentsPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCommentsPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetCommentsPublicResponse::getCode() const +{ + return m_Code; +} + + +void GetCommentsPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCommentsPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCommentsPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCommentsPublicResponse::getReason() const +{ + return m_Reason; +} + + +void GetCommentsPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCommentsPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCommentsPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCommentsPublicResponse::getTranslatedWarning() const +{ + return m_TranslatedWarning; +} + + +void GetCommentsPublicResponse::setTranslatedWarning(const utility::string_t& value) +{ + m_TranslatedWarning = value; + m_TranslatedWarningIsSet = true; +} + +bool GetCommentsPublicResponse::translatedWarningIsSet() const +{ + return m_TranslatedWarningIsSet; +} + +void GetCommentsPublicResponse::unsetTranslatedWarning() +{ + m_TranslatedWarningIsSet = false; +} +std::vector> GetCommentsPublicResponse::getComments() const +{ + return m_Comments; +} + + +void GetCommentsPublicResponse::setComments(const std::vector>& value) +{ + m_Comments = value; + m_CommentsIsSet = true; +} + +bool GetCommentsPublicResponse::commentsIsSet() const +{ + return m_CommentsIsSet; +} + +void GetCommentsPublicResponse::unsetComments() +{ + m_CommentsIsSet = false; +} +std::shared_ptr GetCommentsPublicResponse::getUser() const +{ + return m_User.get(); +} + + +void GetCommentsPublicResponse::setUser(const std::shared_ptr& value) +{ + m_User = value; +} + +bool GetCommentsPublicResponse::userIsSet() const +{ + return m_User.has_value(); +} + +void GetCommentsPublicResponse::unsetUser() +{ + m_User.reset(); +} +utility::string_t GetCommentsPublicResponse::getUrlIdClean() const +{ + return m_UrlIdClean; +} + + +void GetCommentsPublicResponse::setUrlIdClean(const utility::string_t& value) +{ + m_UrlIdClean = value; + m_UrlIdCleanIsSet = true; +} + +bool GetCommentsPublicResponse::urlIdCleanIsSet() const +{ + return m_UrlIdCleanIsSet; +} + +void GetCommentsPublicResponse::unsetUrlIdClean() +{ + m_UrlIdCleanIsSet = false; +} +int64_t GetCommentsPublicResponse::getLastGenDate() const +{ + return m_LastGenDate.get(); +} + +void GetCommentsPublicResponse::setLastGenDate(int64_t value) +{ + m_LastGenDate = value; +} + +bool GetCommentsPublicResponse::lastGenDateIsSet() const +{ + return m_LastGenDate.has_value(); +} + +void GetCommentsPublicResponse::unsetLastGenDate() +{ + m_LastGenDate.reset(); +} +bool GetCommentsPublicResponse::isIncludesPastPages() const +{ + return m_IncludesPastPages; +} + +void GetCommentsPublicResponse::setIncludesPastPages(bool value) +{ + m_IncludesPastPages = value; + m_IncludesPastPagesIsSet = true; +} + +bool GetCommentsPublicResponse::includesPastPagesIsSet() const +{ + return m_IncludesPastPagesIsSet; +} + +void GetCommentsPublicResponse::unsetIncludesPastPages() +{ + m_IncludesPastPagesIsSet = false; +} +bool GetCommentsPublicResponse::isIsDemo() const +{ + return m_IsDemo; +} + +void GetCommentsPublicResponse::setIsDemo(bool value) +{ + m_IsDemo = value; + m_IsDemoIsSet = true; +} + +bool GetCommentsPublicResponse::isDemoIsSet() const +{ + return m_IsDemoIsSet; +} + +void GetCommentsPublicResponse::unsetIsDemo() +{ + m_IsDemoIsSet = false; +} +int32_t GetCommentsPublicResponse::getCommentCount() const +{ + return m_CommentCount; +} + +void GetCommentsPublicResponse::setCommentCount(int32_t value) +{ + m_CommentCount = value; + m_CommentCountIsSet = true; +} + +bool GetCommentsPublicResponse::commentCountIsSet() const +{ + return m_CommentCountIsSet; +} + +void GetCommentsPublicResponse::unsetCommentCount() +{ + m_CommentCountIsSet = false; +} +bool GetCommentsPublicResponse::isIsSiteAdmin() const +{ + return m_IsSiteAdmin; +} + +void GetCommentsPublicResponse::setIsSiteAdmin(bool value) +{ + m_IsSiteAdmin = value; + m_IsSiteAdminIsSet = true; +} + +bool GetCommentsPublicResponse::isSiteAdminIsSet() const +{ + return m_IsSiteAdminIsSet; +} + +void GetCommentsPublicResponse::unsetIsSiteAdmin() +{ + m_IsSiteAdminIsSet = false; +} +bool GetCommentsPublicResponse::isHasBillingIssue() const +{ + return m_HasBillingIssue; +} + +void GetCommentsPublicResponse::setHasBillingIssue(bool value) +{ + m_HasBillingIssue = value; + m_HasBillingIssueIsSet = true; +} + +bool GetCommentsPublicResponse::hasBillingIssueIsSet() const +{ + return m_HasBillingIssueIsSet; +} + +void GetCommentsPublicResponse::unsetHasBillingIssue() +{ + m_HasBillingIssueIsSet = false; +} +std::map> GetCommentsPublicResponse::getModuleData() const +{ + return m_ModuleData; +} + + +void GetCommentsPublicResponse::setModuleData(const std::map>& value) +{ + m_ModuleData = value; + m_ModuleDataIsSet = true; +} + +bool GetCommentsPublicResponse::moduleDataIsSet() const +{ + return m_ModuleDataIsSet; +} + +void GetCommentsPublicResponse::unsetModuleData() +{ + m_ModuleDataIsSet = false; +} +int32_t GetCommentsPublicResponse::getPageNumber() const +{ + return m_PageNumber; +} + +void GetCommentsPublicResponse::setPageNumber(int32_t value) +{ + m_PageNumber = value; + m_PageNumberIsSet = true; +} + +bool GetCommentsPublicResponse::pageNumberIsSet() const +{ + return m_PageNumberIsSet; +} + +void GetCommentsPublicResponse::unsetPageNumber() +{ + m_PageNumberIsSet = false; +} +bool GetCommentsPublicResponse::isIsWhiteLabeled() const +{ + return m_IsWhiteLabeled; +} + +void GetCommentsPublicResponse::setIsWhiteLabeled(bool value) +{ + m_IsWhiteLabeled = value; + m_IsWhiteLabeledIsSet = true; +} + +bool GetCommentsPublicResponse::isWhiteLabeledIsSet() const +{ + return m_IsWhiteLabeledIsSet; +} + +void GetCommentsPublicResponse::unsetIsWhiteLabeled() +{ + m_IsWhiteLabeledIsSet = false; +} +bool GetCommentsPublicResponse::isIsProd() const +{ + return m_IsProd; +} + +void GetCommentsPublicResponse::setIsProd(bool value) +{ + m_IsProd = value; + m_IsProdIsSet = true; +} + +bool GetCommentsPublicResponse::isProdIsSet() const +{ + return m_IsProdIsSet; +} + +void GetCommentsPublicResponse::unsetIsProd() +{ + m_IsProdIsSet = false; +} +bool GetCommentsPublicResponse::isIsCrawler() const +{ + return m_IsCrawler; +} + +void GetCommentsPublicResponse::setIsCrawler(bool value) +{ + m_IsCrawler = value; + m_IsCrawlerIsSet = true; +} + +bool GetCommentsPublicResponse::isCrawlerIsSet() const +{ + return m_IsCrawlerIsSet; +} + +void GetCommentsPublicResponse::unsetIsCrawler() +{ + m_IsCrawlerIsSet = false; +} +int32_t GetCommentsPublicResponse::getNotificationCount() const +{ + return m_NotificationCount; +} + +void GetCommentsPublicResponse::setNotificationCount(int32_t value) +{ + m_NotificationCount = value; + m_NotificationCountIsSet = true; +} + +bool GetCommentsPublicResponse::notificationCountIsSet() const +{ + return m_NotificationCountIsSet; +} + +void GetCommentsPublicResponse::unsetNotificationCount() +{ + m_NotificationCountIsSet = false; +} +bool GetCommentsPublicResponse::isHasMore() const +{ + return m_HasMore; +} + +void GetCommentsPublicResponse::setHasMore(bool value) +{ + m_HasMore = value; + m_HasMoreIsSet = true; +} + +bool GetCommentsPublicResponse::hasMoreIsSet() const +{ + return m_HasMoreIsSet; +} + +void GetCommentsPublicResponse::unsetHasMore() +{ + m_HasMoreIsSet = false; +} +bool GetCommentsPublicResponse::isIsClosed() const +{ + return m_IsClosed; +} + +void GetCommentsPublicResponse::setIsClosed(bool value) +{ + m_IsClosed = value; + m_IsClosedIsSet = true; +} + +bool GetCommentsPublicResponse::isClosedIsSet() const +{ + return m_IsClosedIsSet; +} + +void GetCommentsPublicResponse::unsetIsClosed() +{ + m_IsClosedIsSet = false; +} +int32_t GetCommentsPublicResponse::getPresencePollState() const +{ + return m_PresencePollState; +} + +void GetCommentsPublicResponse::setPresencePollState(int32_t value) +{ + m_PresencePollState = value; + m_PresencePollStateIsSet = true; +} + +bool GetCommentsPublicResponse::presencePollStateIsSet() const +{ + return m_PresencePollStateIsSet; +} + +void GetCommentsPublicResponse::unsetPresencePollState() +{ + m_PresencePollStateIsSet = false; +} +std::shared_ptr GetCommentsPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCommentsPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCommentsPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCommentsPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} +utility::string_t GetCommentsPublicResponse::getUrlIdWS() const +{ + return m_UrlIdWS; +} + + +void GetCommentsPublicResponse::setUrlIdWS(const utility::string_t& value) +{ + m_UrlIdWS = value; + m_UrlIdWSIsSet = true; +} + +bool GetCommentsPublicResponse::urlIdWSIsSet() const +{ + return m_UrlIdWSIsSet; +} + +void GetCommentsPublicResponse::unsetUrlIdWS() +{ + m_UrlIdWSIsSet = false; +} +utility::string_t GetCommentsPublicResponse::getUserIdWS() const +{ + return m_UserIdWS; +} + + +void GetCommentsPublicResponse::setUserIdWS(const utility::string_t& value) +{ + m_UserIdWS = value; + m_UserIdWSIsSet = true; +} + +bool GetCommentsPublicResponse::userIdWSIsSet() const +{ + return m_UserIdWSIsSet; +} + +void GetCommentsPublicResponse::unsetUserIdWS() +{ + m_UserIdWSIsSet = false; +} +utility::string_t GetCommentsPublicResponse::getTenantIdWS() const +{ + return m_TenantIdWS; +} + + +void GetCommentsPublicResponse::setTenantIdWS(const utility::string_t& value) +{ + m_TenantIdWS = value; + m_TenantIdWSIsSet = true; +} + +bool GetCommentsPublicResponse::tenantIdWSIsSet() const +{ + return m_TenantIdWSIsSet; +} + +void GetCommentsPublicResponse::unsetTenantIdWS() +{ + m_TenantIdWSIsSet = false; +} +utility::string_t GetCommentsPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCommentsPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCommentsPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCommentsPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCommentsPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCommentsPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCommentsPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCommentsPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCommentsPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCommentsPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCommentsPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCommentsPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCommentsPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCommentsPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCommentsPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCommentsPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCommentsResponse.cpp b/client/src/model/GetCommentsResponse.cpp new file mode 100644 index 0000000..b2fe163 --- /dev/null +++ b/client/src/model/GetCommentsResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCommentsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCommentsResponse::GetCommentsResponse() +{ + m_StatusIsSet = false; + m_CommentsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetCommentsResponse::~GetCommentsResponse() +{ +} + +void GetCommentsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetCommentsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CommentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetCommentsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromJson(fieldValue, refVal_setComments); + setComments(refVal_setComments); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetCommentsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CommentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetCommentsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); + setComments(refVal_setComments); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetCommentsResponse::getStatus() const +{ + return m_Status; +} + + +void GetCommentsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCommentsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCommentsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetCommentsResponse::getComments() const +{ + return m_Comments; +} + + +void GetCommentsResponse::setComments(const std::vector>& value) +{ + m_Comments = value; + m_CommentsIsSet = true; +} + +bool GetCommentsResponse::commentsIsSet() const +{ + return m_CommentsIsSet; +} + +void GetCommentsResponse::unsetComments() +{ + m_CommentsIsSet = false; +} +utility::string_t GetCommentsResponse::getReason() const +{ + return m_Reason; +} + + +void GetCommentsResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCommentsResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCommentsResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCommentsResponse::getCode() const +{ + return m_Code; +} + + +void GetCommentsResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCommentsResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCommentsResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCommentsResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCommentsResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCommentsResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCommentsResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCommentsResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCommentsResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCommentsResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCommentsResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCommentsResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCommentsResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCommentsResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCommentsResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCommentsResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCommentsResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCommentsResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCommentsResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetCommentsResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCommentsResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCommentsResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCommentsResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCountResponse.cpp b/client/src/model/GetCountResponse.cpp new file mode 100644 index 0000000..d1e09e0 --- /dev/null +++ b/client/src/model/GetCountResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCountResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCountResponse::GetCountResponse() +{ + m_StatusIsSet = false; + m_Count = 0.0; + m_CountIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetCountResponse::~GetCountResponse() +{ +} + +void GetCountResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetCountResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetCountResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); + if(!fieldValue.is_null()) + { + double refVal_setCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCount); + setCount(refVal_setCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetCountResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetCountResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + double refVal_setCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); + setCount(refVal_setCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetCountResponse::getStatus() const +{ + return m_Status; +} + + +void GetCountResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCountResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCountResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +double GetCountResponse::getCount() const +{ + return m_Count; +} + +void GetCountResponse::setCount(double value) +{ + m_Count = value; + m_CountIsSet = true; +} + +bool GetCountResponse::countIsSet() const +{ + return m_CountIsSet; +} + +void GetCountResponse::unsetCount() +{ + m_CountIsSet = false; +} +utility::string_t GetCountResponse::getReason() const +{ + return m_Reason; +} + + +void GetCountResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCountResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCountResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCountResponse::getCode() const +{ + return m_Code; +} + + +void GetCountResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCountResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCountResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCountResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCountResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCountResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCountResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCountResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCountResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCountResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCountResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCountResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCountResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCountResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCountResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCountResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCountResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCountResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCountResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetCountResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCountResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCountResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCountResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetCountsResponse.cpp b/client/src/model/GetCountsResponse.cpp new file mode 100644 index 0000000..0289fea --- /dev/null +++ b/client/src/model/GetCountsResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetCountsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetCountsResponse::GetCountsResponse() +{ + m_TotalCount = 0.0; + m_TotalCountIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetCountsResponse::~GetCountsResponse() +{ +} + +void GetCountsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetCountsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_TotalCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("totalCount"))] = ModelBase::toJson(m_TotalCount); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetCountsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("totalCount"))); + if(!fieldValue.is_null()) + { + double refVal_setTotalCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setTotalCount); + setTotalCount(refVal_setTotalCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetCountsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_TotalCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("totalCount")), m_TotalCount)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetCountsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) + { + double refVal_setTotalCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("totalCount"))), refVal_setTotalCount ); + setTotalCount(refVal_setTotalCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +double GetCountsResponse::getTotalCount() const +{ + return m_TotalCount; +} + +void GetCountsResponse::setTotalCount(double value) +{ + m_TotalCount = value; + m_TotalCountIsSet = true; +} + +bool GetCountsResponse::totalCountIsSet() const +{ + return m_TotalCountIsSet; +} + +void GetCountsResponse::unsetTotalCount() +{ + m_TotalCountIsSet = false; +} +std::shared_ptr GetCountsResponse::getStatus() const +{ + return m_Status; +} + + +void GetCountsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetCountsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetCountsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetCountsResponse::getReason() const +{ + return m_Reason; +} + + +void GetCountsResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetCountsResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetCountsResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetCountsResponse::getCode() const +{ + return m_Code; +} + + +void GetCountsResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetCountsResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetCountsResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetCountsResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetCountsResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetCountsResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetCountsResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetCountsResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetCountsResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetCountsResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetCountsResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetCountsResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetCountsResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetCountsResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetCountsResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetCountsResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetCountsResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetCountsResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetCountsResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetCountsResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetCountsResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetCountsResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetCountsResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetEmailTemplateDefinitionsResponse_1.cpp b/client/src/model/GetEmailTemplateDefinitionsResponse_1.cpp new file mode 100644 index 0000000..76b7479 --- /dev/null +++ b/client/src/model/GetEmailTemplateDefinitionsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetEmailTemplateDefinitionsResponse_1::GetEmailTemplateDefinitionsResponse_1() +{ + m_StatusIsSet = false; + m_DefinitionsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetEmailTemplateDefinitionsResponse_1::~GetEmailTemplateDefinitionsResponse_1() +{ +} + +void GetEmailTemplateDefinitionsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetEmailTemplateDefinitionsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_DefinitionsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("definitions"))] = ModelBase::toJson(m_Definitions); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetEmailTemplateDefinitionsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("definitions")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("definitions"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setDefinitions; + ok &= ModelBase::fromJson(fieldValue, refVal_setDefinitions); + setDefinitions(refVal_setDefinitions); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetEmailTemplateDefinitionsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_DefinitionsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("definitions")), m_Definitions)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetEmailTemplateDefinitionsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("definitions")))) + { + std::vector> refVal_setDefinitions; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("definitions"))), refVal_setDefinitions ); + setDefinitions(refVal_setDefinitions); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetEmailTemplateDefinitionsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetEmailTemplateDefinitionsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetEmailTemplateDefinitionsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetEmailTemplateDefinitionsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetEmailTemplateDefinitionsResponse_1::getDefinitions() const +{ + return m_Definitions; +} + + +void GetEmailTemplateDefinitionsResponse_1::setDefinitions(const std::vector>& value) +{ + m_Definitions = value; + m_DefinitionsIsSet = true; +} + +bool GetEmailTemplateDefinitionsResponse_1::definitionsIsSet() const +{ + return m_DefinitionsIsSet; +} + +void GetEmailTemplateDefinitionsResponse_1::unsetDefinitions() +{ + m_DefinitionsIsSet = false; +} +utility::string_t GetEmailTemplateDefinitionsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetEmailTemplateDefinitionsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetEmailTemplateDefinitionsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetEmailTemplateDefinitionsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetEmailTemplateDefinitionsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetEmailTemplateDefinitionsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetEmailTemplateDefinitionsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetEmailTemplateDefinitionsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetEmailTemplateDefinitionsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetEmailTemplateDefinitionsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetEmailTemplateDefinitionsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetEmailTemplateDefinitionsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetEmailTemplateDefinitionsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetEmailTemplateDefinitionsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetEmailTemplateDefinitionsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetEmailTemplateDefinitionsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetEmailTemplateDefinitionsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetEmailTemplateDefinitionsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetEmailTemplateDefinitionsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetEmailTemplateDefinitionsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetEmailTemplateDefinitionsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetEmailTemplateDefinitionsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetEmailTemplateDefinitionsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetEmailTemplateDefinitionsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetEmailTemplateDefinitionsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetEmailTemplateDefinitionsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetEmailTemplateDefinitionsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetEmailTemplateDefinitionsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetEmailTemplateRenderErrorsResponse_1.cpp b/client/src/model/GetEmailTemplateRenderErrorsResponse_1.cpp new file mode 100644 index 0000000..29ed2d3 --- /dev/null +++ b/client/src/model/GetEmailTemplateRenderErrorsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetEmailTemplateRenderErrorsResponse_1::GetEmailTemplateRenderErrorsResponse_1() +{ + m_StatusIsSet = false; + m_RenderErrorsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetEmailTemplateRenderErrorsResponse_1::~GetEmailTemplateRenderErrorsResponse_1() +{ +} + +void GetEmailTemplateRenderErrorsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetEmailTemplateRenderErrorsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_RenderErrorsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("renderErrors"))] = ModelBase::toJson(m_RenderErrors); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetEmailTemplateRenderErrorsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("renderErrors")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("renderErrors"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setRenderErrors; + ok &= ModelBase::fromJson(fieldValue, refVal_setRenderErrors); + setRenderErrors(refVal_setRenderErrors); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetEmailTemplateRenderErrorsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_RenderErrorsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("renderErrors")), m_RenderErrors)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetEmailTemplateRenderErrorsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("renderErrors")))) + { + std::vector> refVal_setRenderErrors; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("renderErrors"))), refVal_setRenderErrors ); + setRenderErrors(refVal_setRenderErrors); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetEmailTemplateRenderErrorsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetEmailTemplateRenderErrorsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetEmailTemplateRenderErrorsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetEmailTemplateRenderErrorsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetEmailTemplateRenderErrorsResponse_1::getRenderErrors() const +{ + return m_RenderErrors; +} + + +void GetEmailTemplateRenderErrorsResponse_1::setRenderErrors(const std::vector>& value) +{ + m_RenderErrors = value; + m_RenderErrorsIsSet = true; +} + +bool GetEmailTemplateRenderErrorsResponse_1::renderErrorsIsSet() const +{ + return m_RenderErrorsIsSet; +} + +void GetEmailTemplateRenderErrorsResponse_1::unsetRenderErrors() +{ + m_RenderErrorsIsSet = false; +} +utility::string_t GetEmailTemplateRenderErrorsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetEmailTemplateRenderErrorsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetEmailTemplateRenderErrorsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetEmailTemplateRenderErrorsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetEmailTemplateRenderErrorsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetEmailTemplateRenderErrorsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetEmailTemplateRenderErrorsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetEmailTemplateRenderErrorsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetEmailTemplateRenderErrorsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetEmailTemplateRenderErrorsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetEmailTemplateRenderErrorsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetEmailTemplateRenderErrorsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetEmailTemplateRenderErrorsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetEmailTemplateRenderErrorsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetEmailTemplateRenderErrorsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetEmailTemplateRenderErrorsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetEmailTemplateRenderErrorsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetEmailTemplateRenderErrorsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetEmailTemplateRenderErrorsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetEmailTemplateRenderErrorsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetEmailTemplateRenderErrorsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetEmailTemplateRenderErrorsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetEmailTemplateRenderErrorsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetEmailTemplateRenderErrorsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetEmailTemplateRenderErrorsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetEmailTemplateRenderErrorsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetEmailTemplateRenderErrorsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetEmailTemplateRenderErrorsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetEmailTemplateResponse_1.cpp b/client/src/model/GetEmailTemplateResponse_1.cpp new file mode 100644 index 0000000..b392373 --- /dev/null +++ b/client/src/model/GetEmailTemplateResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetEmailTemplateResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetEmailTemplateResponse_1::GetEmailTemplateResponse_1() +{ + m_StatusIsSet = false; + m_EmailTemplateIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetEmailTemplateResponse_1::~GetEmailTemplateResponse_1() +{ +} + +void GetEmailTemplateResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetEmailTemplateResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_EmailTemplateIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))] = ModelBase::toJson(m_EmailTemplate); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetEmailTemplateResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setEmailTemplate; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmailTemplate); + setEmailTemplate(refVal_setEmailTemplate); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetEmailTemplateResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_EmailTemplateIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailTemplate")), m_EmailTemplate)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetEmailTemplateResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) + { + std::shared_ptr refVal_setEmailTemplate; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))), refVal_setEmailTemplate ); + setEmailTemplate(refVal_setEmailTemplate); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetEmailTemplateResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetEmailTemplateResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetEmailTemplateResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetEmailTemplateResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetEmailTemplateResponse_1::getEmailTemplate() const +{ + return m_EmailTemplate; +} + + +void GetEmailTemplateResponse_1::setEmailTemplate(const std::shared_ptr& value) +{ + m_EmailTemplate = value; + m_EmailTemplateIsSet = true; +} + +bool GetEmailTemplateResponse_1::emailTemplateIsSet() const +{ + return m_EmailTemplateIsSet; +} + +void GetEmailTemplateResponse_1::unsetEmailTemplate() +{ + m_EmailTemplateIsSet = false; +} +utility::string_t GetEmailTemplateResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetEmailTemplateResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetEmailTemplateResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetEmailTemplateResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetEmailTemplateResponse_1::getCode() const +{ + return m_Code; +} + + +void GetEmailTemplateResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetEmailTemplateResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetEmailTemplateResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetEmailTemplateResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetEmailTemplateResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetEmailTemplateResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetEmailTemplateResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetEmailTemplateResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetEmailTemplateResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetEmailTemplateResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetEmailTemplateResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetEmailTemplateResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetEmailTemplateResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetEmailTemplateResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetEmailTemplateResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetEmailTemplateResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetEmailTemplateResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetEmailTemplateResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetEmailTemplateResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetEmailTemplateResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetEmailTemplateResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetEmailTemplateResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetEmailTemplateResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetEmailTemplatesResponse_1.cpp b/client/src/model/GetEmailTemplatesResponse_1.cpp new file mode 100644 index 0000000..6352c26 --- /dev/null +++ b/client/src/model/GetEmailTemplatesResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetEmailTemplatesResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetEmailTemplatesResponse_1::GetEmailTemplatesResponse_1() +{ + m_StatusIsSet = false; + m_EmailTemplatesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetEmailTemplatesResponse_1::~GetEmailTemplatesResponse_1() +{ +} + +void GetEmailTemplatesResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetEmailTemplatesResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_EmailTemplatesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))] = ModelBase::toJson(m_EmailTemplates); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetEmailTemplatesResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailTemplates")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setEmailTemplates; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmailTemplates); + setEmailTemplates(refVal_setEmailTemplates); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetEmailTemplatesResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_EmailTemplatesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailTemplates")), m_EmailTemplates)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetEmailTemplatesResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplates")))) + { + std::vector> refVal_setEmailTemplates; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))), refVal_setEmailTemplates ); + setEmailTemplates(refVal_setEmailTemplates); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetEmailTemplatesResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetEmailTemplatesResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetEmailTemplatesResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetEmailTemplatesResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetEmailTemplatesResponse_1::getEmailTemplates() const +{ + return m_EmailTemplates; +} + + +void GetEmailTemplatesResponse_1::setEmailTemplates(const std::vector>& value) +{ + m_EmailTemplates = value; + m_EmailTemplatesIsSet = true; +} + +bool GetEmailTemplatesResponse_1::emailTemplatesIsSet() const +{ + return m_EmailTemplatesIsSet; +} + +void GetEmailTemplatesResponse_1::unsetEmailTemplates() +{ + m_EmailTemplatesIsSet = false; +} +utility::string_t GetEmailTemplatesResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetEmailTemplatesResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetEmailTemplatesResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetEmailTemplatesResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetEmailTemplatesResponse_1::getCode() const +{ + return m_Code; +} + + +void GetEmailTemplatesResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetEmailTemplatesResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetEmailTemplatesResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetEmailTemplatesResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetEmailTemplatesResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetEmailTemplatesResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetEmailTemplatesResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetEmailTemplatesResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetEmailTemplatesResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetEmailTemplatesResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetEmailTemplatesResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetEmailTemplatesResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetEmailTemplatesResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetEmailTemplatesResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetEmailTemplatesResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetEmailTemplatesResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetEmailTemplatesResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetEmailTemplatesResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetEmailTemplatesResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetEmailTemplatesResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetEmailTemplatesResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetEmailTemplatesResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetEmailTemplatesResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetEventLogResponse_1.cpp b/client/src/model/GetEventLogResponse_1.cpp new file mode 100644 index 0000000..05deda1 --- /dev/null +++ b/client/src/model/GetEventLogResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetEventLogResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetEventLogResponse_1::GetEventLogResponse_1() +{ + m_EventsIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetEventLogResponse_1::~GetEventLogResponse_1() +{ +} + +void GetEventLogResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetEventLogResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_EventsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("events"))] = ModelBase::toJson(m_Events); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetEventLogResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("events")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("events"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setEvents; + ok &= ModelBase::fromJson(fieldValue, refVal_setEvents); + setEvents(refVal_setEvents); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetEventLogResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_EventsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("events")), m_Events)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetEventLogResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("events")))) + { + std::vector> refVal_setEvents; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("events"))), refVal_setEvents ); + setEvents(refVal_setEvents); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetEventLogResponse_1::getEvents() const +{ + return m_Events; +} + + +void GetEventLogResponse_1::setEvents(const std::vector>& value) +{ + m_Events = value; + m_EventsIsSet = true; +} + +bool GetEventLogResponse_1::eventsIsSet() const +{ + return m_EventsIsSet; +} + +void GetEventLogResponse_1::unsetEvents() +{ + m_EventsIsSet = false; +} +std::shared_ptr GetEventLogResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetEventLogResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetEventLogResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetEventLogResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetEventLogResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetEventLogResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetEventLogResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetEventLogResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetEventLogResponse_1::getCode() const +{ + return m_Code; +} + + +void GetEventLogResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetEventLogResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetEventLogResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetEventLogResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetEventLogResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetEventLogResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetEventLogResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetEventLogResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetEventLogResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetEventLogResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetEventLogResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetEventLogResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetEventLogResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetEventLogResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetEventLogResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetEventLogResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetEventLogResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetEventLogResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetEventLogResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetEventLogResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetEventLogResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetEventLogResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetEventLogResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetFeedPostsPublicResponse.cpp b/client/src/model/GetFeedPostsPublicResponse.cpp new file mode 100644 index 0000000..3ffd7d2 --- /dev/null +++ b/client/src/model/GetFeedPostsPublicResponse.cpp @@ -0,0 +1,752 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetFeedPostsPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetFeedPostsPublicResponse::GetFeedPostsPublicResponse() +{ + m_MyReactsIsSet = false; + m_StatusIsSet = false; + m_FeedPostsIsSet = false; + m_UrlIdWS = utility::conversions::to_string_t(""); + m_UrlIdWSIsSet = false; + m_UserIdWS = utility::conversions::to_string_t(""); + m_UserIdWSIsSet = false; + m_TenantIdWS = utility::conversions::to_string_t(""); + m_TenantIdWSIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetFeedPostsPublicResponse::~GetFeedPostsPublicResponse() +{ +} + +void GetFeedPostsPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetFeedPostsPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_MyReactsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("myReacts"))] = ModelBase::toJson(m_MyReacts); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_FeedPostsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); + } + if(m_User.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + } + if(m_UrlIdWSIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); + } + if(m_UserIdWSIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); + } + if(m_TenantIdWSIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetFeedPostsPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("myReacts")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("myReacts"))); + if(!fieldValue.is_null()) + { + std::map> refVal_setMyReacts; + ok &= ModelBase::fromJson(fieldValue, refVal_setMyReacts); + setMyReacts(refVal_setMyReacts); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setFeedPosts; + ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPosts); + setFeedPosts(refVal_setFeedPosts); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setUser); + setUser(refVal_setUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrlIdWS; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdWS); + setUrlIdWS(refVal_setUrlIdWS); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUserIdWS; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdWS); + setUserIdWS(refVal_setUserIdWS); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTenantIdWS; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantIdWS); + setTenantIdWS(refVal_setTenantIdWS); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetFeedPostsPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_MyReactsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("myReacts")), m_MyReacts)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_FeedPostsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPosts")), m_FeedPosts)); + } + if(m_User.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + } + if(m_UrlIdWSIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdWS")), m_UrlIdWS)); + } + if(m_UserIdWSIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdWS")), m_UserIdWS)); + } + if(m_TenantIdWSIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")), m_TenantIdWS)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetFeedPostsPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("myReacts")))) + { + std::map> refVal_setMyReacts; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("myReacts"))), refVal_setMyReacts ); + setMyReacts(refVal_setMyReacts); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) + { + std::vector> refVal_setFeedPosts; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))), refVal_setFeedPosts ); + setFeedPosts(refVal_setFeedPosts); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); + setUser(refVal_setUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) + { + utility::string_t refVal_setUrlIdWS; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))), refVal_setUrlIdWS ); + setUrlIdWS(refVal_setUrlIdWS); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) + { + utility::string_t refVal_setUserIdWS; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))), refVal_setUserIdWS ); + setUserIdWS(refVal_setUserIdWS); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) + { + utility::string_t refVal_setTenantIdWS; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))), refVal_setTenantIdWS ); + setTenantIdWS(refVal_setTenantIdWS); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::map> GetFeedPostsPublicResponse::getMyReacts() const +{ + return m_MyReacts; +} + + +void GetFeedPostsPublicResponse::setMyReacts(const std::map>& value) +{ + m_MyReacts = value; + m_MyReactsIsSet = true; +} + +bool GetFeedPostsPublicResponse::myReactsIsSet() const +{ + return m_MyReactsIsSet; +} + +void GetFeedPostsPublicResponse::unsetMyReacts() +{ + m_MyReactsIsSet = false; +} +std::shared_ptr GetFeedPostsPublicResponse::getStatus() const +{ + return m_Status; +} + + +void GetFeedPostsPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetFeedPostsPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetFeedPostsPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetFeedPostsPublicResponse::getFeedPosts() const +{ + return m_FeedPosts; +} + + +void GetFeedPostsPublicResponse::setFeedPosts(const std::vector>& value) +{ + m_FeedPosts = value; + m_FeedPostsIsSet = true; +} + +bool GetFeedPostsPublicResponse::feedPostsIsSet() const +{ + return m_FeedPostsIsSet; +} + +void GetFeedPostsPublicResponse::unsetFeedPosts() +{ + m_FeedPostsIsSet = false; +} +std::shared_ptr GetFeedPostsPublicResponse::getUser() const +{ + return m_User.get(); +} + + +void GetFeedPostsPublicResponse::setUser(const std::shared_ptr& value) +{ + m_User = value; +} + +bool GetFeedPostsPublicResponse::userIsSet() const +{ + return m_User.has_value(); +} + +void GetFeedPostsPublicResponse::unsetUser() +{ + m_User.reset(); +} +utility::string_t GetFeedPostsPublicResponse::getUrlIdWS() const +{ + return m_UrlIdWS; +} + + +void GetFeedPostsPublicResponse::setUrlIdWS(const utility::string_t& value) +{ + m_UrlIdWS = value; + m_UrlIdWSIsSet = true; +} + +bool GetFeedPostsPublicResponse::urlIdWSIsSet() const +{ + return m_UrlIdWSIsSet; +} + +void GetFeedPostsPublicResponse::unsetUrlIdWS() +{ + m_UrlIdWSIsSet = false; +} +utility::string_t GetFeedPostsPublicResponse::getUserIdWS() const +{ + return m_UserIdWS; +} + + +void GetFeedPostsPublicResponse::setUserIdWS(const utility::string_t& value) +{ + m_UserIdWS = value; + m_UserIdWSIsSet = true; +} + +bool GetFeedPostsPublicResponse::userIdWSIsSet() const +{ + return m_UserIdWSIsSet; +} + +void GetFeedPostsPublicResponse::unsetUserIdWS() +{ + m_UserIdWSIsSet = false; +} +utility::string_t GetFeedPostsPublicResponse::getTenantIdWS() const +{ + return m_TenantIdWS; +} + + +void GetFeedPostsPublicResponse::setTenantIdWS(const utility::string_t& value) +{ + m_TenantIdWS = value; + m_TenantIdWSIsSet = true; +} + +bool GetFeedPostsPublicResponse::tenantIdWSIsSet() const +{ + return m_TenantIdWSIsSet; +} + +void GetFeedPostsPublicResponse::unsetTenantIdWS() +{ + m_TenantIdWSIsSet = false; +} +utility::string_t GetFeedPostsPublicResponse::getReason() const +{ + return m_Reason; +} + + +void GetFeedPostsPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetFeedPostsPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetFeedPostsPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetFeedPostsPublicResponse::getCode() const +{ + return m_Code; +} + + +void GetFeedPostsPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetFeedPostsPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetFeedPostsPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetFeedPostsPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetFeedPostsPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetFeedPostsPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetFeedPostsPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetFeedPostsPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetFeedPostsPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetFeedPostsPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetFeedPostsPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetFeedPostsPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetFeedPostsPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetFeedPostsPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetFeedPostsPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetFeedPostsPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetFeedPostsPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetFeedPostsPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetFeedPostsPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetFeedPostsPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetFeedPostsPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetFeedPostsPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetFeedPostsPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetFeedPostsResponse_1.cpp b/client/src/model/GetFeedPostsResponse_1.cpp new file mode 100644 index 0000000..14132d9 --- /dev/null +++ b/client/src/model/GetFeedPostsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetFeedPostsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetFeedPostsResponse_1::GetFeedPostsResponse_1() +{ + m_StatusIsSet = false; + m_FeedPostsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetFeedPostsResponse_1::~GetFeedPostsResponse_1() +{ +} + +void GetFeedPostsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetFeedPostsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_FeedPostsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetFeedPostsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setFeedPosts; + ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPosts); + setFeedPosts(refVal_setFeedPosts); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetFeedPostsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_FeedPostsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPosts")), m_FeedPosts)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetFeedPostsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) + { + std::vector> refVal_setFeedPosts; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))), refVal_setFeedPosts ); + setFeedPosts(refVal_setFeedPosts); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetFeedPostsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetFeedPostsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetFeedPostsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetFeedPostsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetFeedPostsResponse_1::getFeedPosts() const +{ + return m_FeedPosts; +} + + +void GetFeedPostsResponse_1::setFeedPosts(const std::vector>& value) +{ + m_FeedPosts = value; + m_FeedPostsIsSet = true; +} + +bool GetFeedPostsResponse_1::feedPostsIsSet() const +{ + return m_FeedPostsIsSet; +} + +void GetFeedPostsResponse_1::unsetFeedPosts() +{ + m_FeedPostsIsSet = false; +} +utility::string_t GetFeedPostsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetFeedPostsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetFeedPostsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetFeedPostsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetFeedPostsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetFeedPostsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetFeedPostsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetFeedPostsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetFeedPostsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetFeedPostsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetFeedPostsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetFeedPostsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetFeedPostsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetFeedPostsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetFeedPostsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetFeedPostsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetFeedPostsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetFeedPostsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetFeedPostsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetFeedPostsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetFeedPostsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetFeedPostsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetFeedPostsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetFeedPostsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetFeedPostsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetFeedPostsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetFeedPostsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetFeedPostsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetFeedPostsStatsResponse.cpp b/client/src/model/GetFeedPostsStatsResponse.cpp new file mode 100644 index 0000000..a543fe9 --- /dev/null +++ b/client/src/model/GetFeedPostsStatsResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetFeedPostsStatsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetFeedPostsStatsResponse::GetFeedPostsStatsResponse() +{ + m_StatusIsSet = false; + m_StatsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetFeedPostsStatsResponse::~GetFeedPostsStatsResponse() +{ +} + +void GetFeedPostsStatsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetFeedPostsStatsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_StatsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetFeedPostsStatsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("stats")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("stats"))); + if(!fieldValue.is_null()) + { + std::map> refVal_setStats; + ok &= ModelBase::fromJson(fieldValue, refVal_setStats); + setStats(refVal_setStats); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetFeedPostsStatsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_StatsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("stats")), m_Stats)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetFeedPostsStatsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("stats")))) + { + std::map> refVal_setStats; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("stats"))), refVal_setStats ); + setStats(refVal_setStats); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetFeedPostsStatsResponse::getStatus() const +{ + return m_Status; +} + + +void GetFeedPostsStatsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetFeedPostsStatsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetFeedPostsStatsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::map> GetFeedPostsStatsResponse::getStats() const +{ + return m_Stats; +} + + +void GetFeedPostsStatsResponse::setStats(const std::map>& value) +{ + m_Stats = value; + m_StatsIsSet = true; +} + +bool GetFeedPostsStatsResponse::statsIsSet() const +{ + return m_StatsIsSet; +} + +void GetFeedPostsStatsResponse::unsetStats() +{ + m_StatsIsSet = false; +} +utility::string_t GetFeedPostsStatsResponse::getReason() const +{ + return m_Reason; +} + + +void GetFeedPostsStatsResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetFeedPostsStatsResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetFeedPostsStatsResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetFeedPostsStatsResponse::getCode() const +{ + return m_Code; +} + + +void GetFeedPostsStatsResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetFeedPostsStatsResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetFeedPostsStatsResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetFeedPostsStatsResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetFeedPostsStatsResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetFeedPostsStatsResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetFeedPostsStatsResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetFeedPostsStatsResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetFeedPostsStatsResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetFeedPostsStatsResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetFeedPostsStatsResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetFeedPostsStatsResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetFeedPostsStatsResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetFeedPostsStatsResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetFeedPostsStatsResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetFeedPostsStatsResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetFeedPostsStatsResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetFeedPostsStatsResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetFeedPostsStatsResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetFeedPostsStatsResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetFeedPostsStatsResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetFeedPostsStatsResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetFeedPostsStatsResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetLarge_200_response.cpp b/client/src/model/GetGifLargeResponse.cpp similarity index 83% rename from client/src/model/GetLarge_200_response.cpp rename to client/src/model/GetGifLargeResponse.cpp index ffba9dd..26969e8 100644 --- a/client/src/model/GetLarge_200_response.cpp +++ b/client/src/model/GetGifLargeResponse.cpp @@ -11,14 +11,14 @@ -#include "FastCommentsClient/model/GetLarge_200_response.h" +#include "FastCommentsClient/model/GetGifLargeResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -GetLarge_200_response::GetLarge_200_response() +GetGifLargeResponse::GetGifLargeResponse() { m_Src = utility::conversions::to_string_t(""); m_SrcIsSet = false; @@ -38,16 +38,16 @@ GetLarge_200_response::GetLarge_200_response() m_CustomConfigIsSet = false; } -GetLarge_200_response::~GetLarge_200_response() +GetGifLargeResponse::~GetGifLargeResponse() { } -void GetLarge_200_response::validate() +void GetGifLargeResponse::validate() { // TODO: implement validation } -web::json::value GetLarge_200_response::toJson() const +web::json::value GetGifLargeResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_SrcIsSet) @@ -99,7 +99,7 @@ web::json::value GetLarge_200_response::toJson() const return val; } -bool GetLarge_200_response::fromJson(const web::json::value& val) +bool GetGifLargeResponse::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("src")))) @@ -204,7 +204,7 @@ bool GetLarge_200_response::fromJson(const web::json::value& val) return ok; } -void GetLarge_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void GetGifLargeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -249,7 +249,7 @@ void GetLarge_200_response::toMultipart(std::shared_ptr multi } } -bool GetLarge_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool GetGifLargeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -316,190 +316,190 @@ bool GetLarge_200_response::fromMultiPart(std::shared_ptr mul } -utility::string_t GetLarge_200_response::getSrc() const +utility::string_t GetGifLargeResponse::getSrc() const { return m_Src; } -void GetLarge_200_response::setSrc(const utility::string_t& value) +void GetGifLargeResponse::setSrc(const utility::string_t& value) { m_Src = value; m_SrcIsSet = true; } -bool GetLarge_200_response::srcIsSet() const +bool GetGifLargeResponse::srcIsSet() const { return m_SrcIsSet; } -void GetLarge_200_response::unsetSrc() +void GetGifLargeResponse::unsetSrc() { m_SrcIsSet = false; } -std::shared_ptr GetLarge_200_response::getStatus() const +std::shared_ptr GetGifLargeResponse::getStatus() const { return m_Status; } -void GetLarge_200_response::setStatus(const std::shared_ptr& value) +void GetGifLargeResponse::setStatus(const std::shared_ptr& value) { m_Status = value; m_StatusIsSet = true; } -bool GetLarge_200_response::statusIsSet() const +bool GetGifLargeResponse::statusIsSet() const { return m_StatusIsSet; } -void GetLarge_200_response::unsetStatus() +void GetGifLargeResponse::unsetStatus() { m_StatusIsSet = false; } -utility::string_t GetLarge_200_response::getReason() const +utility::string_t GetGifLargeResponse::getReason() const { return m_Reason; } -void GetLarge_200_response::setReason(const utility::string_t& value) +void GetGifLargeResponse::setReason(const utility::string_t& value) { m_Reason = value; m_ReasonIsSet = true; } -bool GetLarge_200_response::reasonIsSet() const +bool GetGifLargeResponse::reasonIsSet() const { return m_ReasonIsSet; } -void GetLarge_200_response::unsetReason() +void GetGifLargeResponse::unsetReason() { m_ReasonIsSet = false; } -utility::string_t GetLarge_200_response::getCode() const +utility::string_t GetGifLargeResponse::getCode() const { return m_Code; } -void GetLarge_200_response::setCode(const utility::string_t& value) +void GetGifLargeResponse::setCode(const utility::string_t& value) { m_Code = value; m_CodeIsSet = true; } -bool GetLarge_200_response::codeIsSet() const +bool GetGifLargeResponse::codeIsSet() const { return m_CodeIsSet; } -void GetLarge_200_response::unsetCode() +void GetGifLargeResponse::unsetCode() { m_CodeIsSet = false; } -utility::string_t GetLarge_200_response::getSecondaryCode() const +utility::string_t GetGifLargeResponse::getSecondaryCode() const { return m_SecondaryCode; } -void GetLarge_200_response::setSecondaryCode(const utility::string_t& value) +void GetGifLargeResponse::setSecondaryCode(const utility::string_t& value) { m_SecondaryCode = value; m_SecondaryCodeIsSet = true; } -bool GetLarge_200_response::secondaryCodeIsSet() const +bool GetGifLargeResponse::secondaryCodeIsSet() const { return m_SecondaryCodeIsSet; } -void GetLarge_200_response::unsetSecondaryCode() +void GetGifLargeResponse::unsetSecondaryCode() { m_SecondaryCodeIsSet = false; } -int64_t GetLarge_200_response::getBannedUntil() const +int64_t GetGifLargeResponse::getBannedUntil() const { return m_BannedUntil; } -void GetLarge_200_response::setBannedUntil(int64_t value) +void GetGifLargeResponse::setBannedUntil(int64_t value) { m_BannedUntil = value; m_BannedUntilIsSet = true; } -bool GetLarge_200_response::bannedUntilIsSet() const +bool GetGifLargeResponse::bannedUntilIsSet() const { return m_BannedUntilIsSet; } -void GetLarge_200_response::unsetBannedUntil() +void GetGifLargeResponse::unsetBannedUntil() { m_BannedUntilIsSet = false; } -int32_t GetLarge_200_response::getMaxCharacterLength() const +int32_t GetGifLargeResponse::getMaxCharacterLength() const { return m_MaxCharacterLength; } -void GetLarge_200_response::setMaxCharacterLength(int32_t value) +void GetGifLargeResponse::setMaxCharacterLength(int32_t value) { m_MaxCharacterLength = value; m_MaxCharacterLengthIsSet = true; } -bool GetLarge_200_response::maxCharacterLengthIsSet() const +bool GetGifLargeResponse::maxCharacterLengthIsSet() const { return m_MaxCharacterLengthIsSet; } -void GetLarge_200_response::unsetMaxCharacterLength() +void GetGifLargeResponse::unsetMaxCharacterLength() { m_MaxCharacterLengthIsSet = false; } -utility::string_t GetLarge_200_response::getTranslatedError() const +utility::string_t GetGifLargeResponse::getTranslatedError() const { return m_TranslatedError; } -void GetLarge_200_response::setTranslatedError(const utility::string_t& value) +void GetGifLargeResponse::setTranslatedError(const utility::string_t& value) { m_TranslatedError = value; m_TranslatedErrorIsSet = true; } -bool GetLarge_200_response::translatedErrorIsSet() const +bool GetGifLargeResponse::translatedErrorIsSet() const { return m_TranslatedErrorIsSet; } -void GetLarge_200_response::unsetTranslatedError() +void GetGifLargeResponse::unsetTranslatedError() { m_TranslatedErrorIsSet = false; } -std::shared_ptr GetLarge_200_response::getCustomConfig() const +std::shared_ptr GetGifLargeResponse::getCustomConfig() const { return m_CustomConfig; } -void GetLarge_200_response::setCustomConfig(const std::shared_ptr& value) +void GetGifLargeResponse::setCustomConfig(const std::shared_ptr& value) { m_CustomConfig = value; m_CustomConfigIsSet = true; } -bool GetLarge_200_response::customConfigIsSet() const +bool GetGifLargeResponse::customConfigIsSet() const { return m_CustomConfigIsSet; } -void GetLarge_200_response::unsetCustomConfig() +void GetGifLargeResponse::unsetCustomConfig() { m_CustomConfigIsSet = false; } diff --git a/client/src/model/GetGifsSearchResponse.cpp b/client/src/model/GetGifsSearchResponse.cpp index 0a5c149..817e2a6 100644 --- a/client/src/model/GetGifsSearchResponse.cpp +++ b/client/src/model/GetGifsSearchResponse.cpp @@ -24,6 +24,17 @@ GetGifsSearchResponse::GetGifsSearchResponse() m_StatusIsSet = false; m_Code = utility::conversions::to_string_t(""); m_CodeIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; } GetGifsSearchResponse::~GetGifsSearchResponse() @@ -53,6 +64,36 @@ web::json::value GetGifsSearchResponse::toJson() const val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } return val; } @@ -93,6 +134,72 @@ bool GetGifsSearchResponse::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } return ok; } @@ -115,6 +222,30 @@ void GetGifsSearchResponse::toMultipart(std::shared_ptr multi { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } } bool GetGifsSearchResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -144,6 +275,42 @@ bool GetGifsSearchResponse::fromMultiPart(std::shared_ptr mul ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); setCode(refVal_setCode); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } return ok; } @@ -211,6 +378,130 @@ void GetGifsSearchResponse::unsetCode() { m_CodeIsSet = false; } +utility::string_t GetGifsSearchResponse::getReason() const +{ + return m_Reason; +} + + +void GetGifsSearchResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetGifsSearchResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetGifsSearchResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetGifsSearchResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetGifsSearchResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetGifsSearchResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetGifsSearchResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetGifsSearchResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetGifsSearchResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetGifsSearchResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetGifsSearchResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetGifsSearchResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetGifsSearchResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetGifsSearchResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetGifsSearchResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetGifsSearchResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetGifsSearchResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetGifsSearchResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetGifsSearchResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetGifsSearchResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetGifsSearchResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetGifsSearchResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetGifsSearchResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} } } diff --git a/client/src/model/GetGlobalEventLogResponse.cpp b/client/src/model/GetGlobalEventLogResponse.cpp new file mode 100644 index 0000000..1903c2f --- /dev/null +++ b/client/src/model/GetGlobalEventLogResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetGlobalEventLogResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetGlobalEventLogResponse::GetGlobalEventLogResponse() +{ + m_EventsIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetGlobalEventLogResponse::~GetGlobalEventLogResponse() +{ +} + +void GetGlobalEventLogResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetGlobalEventLogResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_EventsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("events"))] = ModelBase::toJson(m_Events); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetGlobalEventLogResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("events")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("events"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setEvents; + ok &= ModelBase::fromJson(fieldValue, refVal_setEvents); + setEvents(refVal_setEvents); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetGlobalEventLogResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_EventsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("events")), m_Events)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetGlobalEventLogResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("events")))) + { + std::vector> refVal_setEvents; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("events"))), refVal_setEvents ); + setEvents(refVal_setEvents); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetGlobalEventLogResponse::getEvents() const +{ + return m_Events; +} + + +void GetGlobalEventLogResponse::setEvents(const std::vector>& value) +{ + m_Events = value; + m_EventsIsSet = true; +} + +bool GetGlobalEventLogResponse::eventsIsSet() const +{ + return m_EventsIsSet; +} + +void GetGlobalEventLogResponse::unsetEvents() +{ + m_EventsIsSet = false; +} +std::shared_ptr GetGlobalEventLogResponse::getStatus() const +{ + return m_Status; +} + + +void GetGlobalEventLogResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetGlobalEventLogResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetGlobalEventLogResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetGlobalEventLogResponse::getReason() const +{ + return m_Reason; +} + + +void GetGlobalEventLogResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetGlobalEventLogResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetGlobalEventLogResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetGlobalEventLogResponse::getCode() const +{ + return m_Code; +} + + +void GetGlobalEventLogResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetGlobalEventLogResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetGlobalEventLogResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetGlobalEventLogResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetGlobalEventLogResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetGlobalEventLogResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetGlobalEventLogResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetGlobalEventLogResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetGlobalEventLogResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetGlobalEventLogResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetGlobalEventLogResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetGlobalEventLogResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetGlobalEventLogResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetGlobalEventLogResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetGlobalEventLogResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetGlobalEventLogResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetGlobalEventLogResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetGlobalEventLogResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetGlobalEventLogResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetGlobalEventLogResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetGlobalEventLogResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetGlobalEventLogResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetGlobalEventLogResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetHashTagsResponse_1.cpp b/client/src/model/GetHashTagsResponse_1.cpp new file mode 100644 index 0000000..d586229 --- /dev/null +++ b/client/src/model/GetHashTagsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetHashTagsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetHashTagsResponse_1::GetHashTagsResponse_1() +{ + m_StatusIsSet = false; + m_HashTagsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetHashTagsResponse_1::~GetHashTagsResponse_1() +{ +} + +void GetHashTagsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetHashTagsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_HashTagsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetHashTagsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hashTags")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hashTags"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setHashTags; + ok &= ModelBase::fromJson(fieldValue, refVal_setHashTags); + setHashTags(refVal_setHashTags); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetHashTagsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_HashTagsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hashTags")), m_HashTags)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetHashTagsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hashTags")))) + { + std::vector> refVal_setHashTags; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hashTags"))), refVal_setHashTags ); + setHashTags(refVal_setHashTags); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetHashTagsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetHashTagsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetHashTagsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetHashTagsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetHashTagsResponse_1::getHashTags() const +{ + return m_HashTags; +} + + +void GetHashTagsResponse_1::setHashTags(const std::vector>& value) +{ + m_HashTags = value; + m_HashTagsIsSet = true; +} + +bool GetHashTagsResponse_1::hashTagsIsSet() const +{ + return m_HashTagsIsSet; +} + +void GetHashTagsResponse_1::unsetHashTags() +{ + m_HashTagsIsSet = false; +} +utility::string_t GetHashTagsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetHashTagsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetHashTagsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetHashTagsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetHashTagsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetHashTagsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetHashTagsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetHashTagsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetHashTagsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetHashTagsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetHashTagsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetHashTagsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetHashTagsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetHashTagsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetHashTagsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetHashTagsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetHashTagsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetHashTagsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetHashTagsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetHashTagsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetHashTagsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetHashTagsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetHashTagsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetHashTagsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetHashTagsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetHashTagsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetHashTagsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetHashTagsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetLogsResponse.cpp b/client/src/model/GetLogsResponse.cpp new file mode 100644 index 0000000..6fa92b5 --- /dev/null +++ b/client/src/model/GetLogsResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetLogsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetLogsResponse::GetLogsResponse() +{ + m_LogsIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetLogsResponse::~GetLogsResponse() +{ +} + +void GetLogsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetLogsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_LogsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("logs"))] = ModelBase::toJson(m_Logs); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetLogsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("logs")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("logs"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setLogs; + ok &= ModelBase::fromJson(fieldValue, refVal_setLogs); + setLogs(refVal_setLogs); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetLogsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_LogsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logs")), m_Logs)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetLogsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("logs")))) + { + std::vector> refVal_setLogs; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("logs"))), refVal_setLogs ); + setLogs(refVal_setLogs); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetLogsResponse::getLogs() const +{ + return m_Logs; +} + + +void GetLogsResponse::setLogs(const std::vector>& value) +{ + m_Logs = value; + m_LogsIsSet = true; +} + +bool GetLogsResponse::logsIsSet() const +{ + return m_LogsIsSet; +} + +void GetLogsResponse::unsetLogs() +{ + m_LogsIsSet = false; +} +std::shared_ptr GetLogsResponse::getStatus() const +{ + return m_Status; +} + + +void GetLogsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetLogsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetLogsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetLogsResponse::getReason() const +{ + return m_Reason; +} + + +void GetLogsResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetLogsResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetLogsResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetLogsResponse::getCode() const +{ + return m_Code; +} + + +void GetLogsResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetLogsResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetLogsResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetLogsResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetLogsResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetLogsResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetLogsResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetLogsResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetLogsResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetLogsResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetLogsResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetLogsResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetLogsResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetLogsResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetLogsResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetLogsResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetLogsResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetLogsResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetLogsResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetLogsResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetLogsResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetLogsResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetLogsResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetManualBadgesForUserResponse.cpp b/client/src/model/GetManualBadgesForUserResponse.cpp new file mode 100644 index 0000000..0f0e5ea --- /dev/null +++ b/client/src/model/GetManualBadgesForUserResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetManualBadgesForUserResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetManualBadgesForUserResponse::GetManualBadgesForUserResponse() +{ + m_BadgesIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetManualBadgesForUserResponse::~GetManualBadgesForUserResponse() +{ +} + +void GetManualBadgesForUserResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetManualBadgesForUserResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_BadgesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetManualBadgesForUserResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); + setBadges(refVal_setBadges); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetManualBadgesForUserResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_BadgesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetManualBadgesForUserResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); + setBadges(refVal_setBadges); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetManualBadgesForUserResponse::getBadges() const +{ + return m_Badges; +} + + +void GetManualBadgesForUserResponse::setBadges(const std::vector>& value) +{ + m_Badges = value; + m_BadgesIsSet = true; +} + +bool GetManualBadgesForUserResponse::badgesIsSet() const +{ + return m_BadgesIsSet; +} + +void GetManualBadgesForUserResponse::unsetBadges() +{ + m_BadgesIsSet = false; +} +std::shared_ptr GetManualBadgesForUserResponse::getStatus() const +{ + return m_Status; +} + + +void GetManualBadgesForUserResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetManualBadgesForUserResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetManualBadgesForUserResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetManualBadgesForUserResponse::getReason() const +{ + return m_Reason; +} + + +void GetManualBadgesForUserResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetManualBadgesForUserResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetManualBadgesForUserResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetManualBadgesForUserResponse::getCode() const +{ + return m_Code; +} + + +void GetManualBadgesForUserResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetManualBadgesForUserResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetManualBadgesForUserResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetManualBadgesForUserResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetManualBadgesForUserResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetManualBadgesForUserResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetManualBadgesForUserResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetManualBadgesForUserResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetManualBadgesForUserResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetManualBadgesForUserResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetManualBadgesForUserResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetManualBadgesForUserResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetManualBadgesForUserResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetManualBadgesForUserResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetManualBadgesForUserResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetManualBadgesForUserResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetManualBadgesForUserResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetManualBadgesForUserResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetManualBadgesForUserResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetManualBadgesForUserResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetManualBadgesForUserResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetManualBadgesForUserResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetManualBadgesForUserResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetManualBadgesResponse.cpp b/client/src/model/GetManualBadgesResponse.cpp new file mode 100644 index 0000000..b136486 --- /dev/null +++ b/client/src/model/GetManualBadgesResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetManualBadgesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetManualBadgesResponse::GetManualBadgesResponse() +{ + m_BadgesIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetManualBadgesResponse::~GetManualBadgesResponse() +{ +} + +void GetManualBadgesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetManualBadgesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_BadgesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetManualBadgesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); + setBadges(refVal_setBadges); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetManualBadgesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_BadgesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetManualBadgesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); + setBadges(refVal_setBadges); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetManualBadgesResponse::getBadges() const +{ + return m_Badges; +} + + +void GetManualBadgesResponse::setBadges(const std::vector>& value) +{ + m_Badges = value; + m_BadgesIsSet = true; +} + +bool GetManualBadgesResponse::badgesIsSet() const +{ + return m_BadgesIsSet; +} + +void GetManualBadgesResponse::unsetBadges() +{ + m_BadgesIsSet = false; +} +std::shared_ptr GetManualBadgesResponse::getStatus() const +{ + return m_Status; +} + + +void GetManualBadgesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetManualBadgesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetManualBadgesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetManualBadgesResponse::getReason() const +{ + return m_Reason; +} + + +void GetManualBadgesResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetManualBadgesResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetManualBadgesResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetManualBadgesResponse::getCode() const +{ + return m_Code; +} + + +void GetManualBadgesResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetManualBadgesResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetManualBadgesResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetManualBadgesResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetManualBadgesResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetManualBadgesResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetManualBadgesResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetManualBadgesResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetManualBadgesResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetManualBadgesResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetManualBadgesResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetManualBadgesResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetManualBadgesResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetManualBadgesResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetManualBadgesResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetManualBadgesResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetManualBadgesResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetManualBadgesResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetManualBadgesResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetManualBadgesResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetManualBadgesResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetManualBadgesResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetManualBadgesResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetModerationCommentResponse.cpp b/client/src/model/GetModerationCommentResponse.cpp new file mode 100644 index 0000000..d1e7f80 --- /dev/null +++ b/client/src/model/GetModerationCommentResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetModerationCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetModerationCommentResponse::GetModerationCommentResponse() +{ + m_CommentIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetModerationCommentResponse::~GetModerationCommentResponse() +{ +} + +void GetModerationCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetModerationCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetModerationCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromJson(fieldValue, refVal_setComment); + setComment(refVal_setComment); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetModerationCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetModerationCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); + setComment(refVal_setComment); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetModerationCommentResponse::getComment() const +{ + return m_Comment; +} + + +void GetModerationCommentResponse::setComment(const std::shared_ptr& value) +{ + m_Comment = value; + m_CommentIsSet = true; +} + +bool GetModerationCommentResponse::commentIsSet() const +{ + return m_CommentIsSet; +} + +void GetModerationCommentResponse::unsetComment() +{ + m_CommentIsSet = false; +} +std::shared_ptr GetModerationCommentResponse::getStatus() const +{ + return m_Status; +} + + +void GetModerationCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetModerationCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetModerationCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetModerationCommentResponse::getReason() const +{ + return m_Reason; +} + + +void GetModerationCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetModerationCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetModerationCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetModerationCommentResponse::getCode() const +{ + return m_Code; +} + + +void GetModerationCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetModerationCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetModerationCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetModerationCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetModerationCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetModerationCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetModerationCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetModerationCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetModerationCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetModerationCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetModerationCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetModerationCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetModerationCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetModerationCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetModerationCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetModerationCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetModerationCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetModerationCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetModerationCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetModerationCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetModerationCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetModerationCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetModerationCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetModerationCommentTextResponse.cpp b/client/src/model/GetModerationCommentTextResponse.cpp new file mode 100644 index 0000000..1927822 --- /dev/null +++ b/client/src/model/GetModerationCommentTextResponse.cpp @@ -0,0 +1,509 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetModerationCommentTextResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetModerationCommentTextResponse::GetModerationCommentTextResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetModerationCommentTextResponse::~GetModerationCommentTextResponse() +{ +} + +void GetModerationCommentTextResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetModerationCommentTextResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_Comment.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment.get()); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetModerationCommentTextResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setComment; + ok &= ModelBase::fromJson(fieldValue, refVal_setComment); + setComment(refVal_setComment); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetModerationCommentTextResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_Comment.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment.get())); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetModerationCommentTextResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + utility::string_t refVal_setComment; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); + setComment(refVal_setComment); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +utility::string_t GetModerationCommentTextResponse::getComment() const +{ + return m_Comment.get(); +} + + +void GetModerationCommentTextResponse::setComment(const utility::string_t& value) +{ + m_Comment = value; +} + +bool GetModerationCommentTextResponse::commentIsSet() const +{ + return m_Comment.has_value(); +} + +void GetModerationCommentTextResponse::unsetComment() +{ + m_Comment.reset(); +} +std::shared_ptr GetModerationCommentTextResponse::getStatus() const +{ + return m_Status; +} + + +void GetModerationCommentTextResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetModerationCommentTextResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetModerationCommentTextResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetModerationCommentTextResponse::getReason() const +{ + return m_Reason; +} + + +void GetModerationCommentTextResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetModerationCommentTextResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetModerationCommentTextResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetModerationCommentTextResponse::getCode() const +{ + return m_Code; +} + + +void GetModerationCommentTextResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetModerationCommentTextResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetModerationCommentTextResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetModerationCommentTextResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetModerationCommentTextResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetModerationCommentTextResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetModerationCommentTextResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetModerationCommentTextResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetModerationCommentTextResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetModerationCommentTextResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetModerationCommentTextResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetModerationCommentTextResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetModerationCommentTextResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetModerationCommentTextResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetModerationCommentTextResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetModerationCommentTextResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetModerationCommentTextResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetModerationCommentTextResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetModerationCommentTextResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetModerationCommentTextResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetModerationCommentTextResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetModerationCommentTextResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetModerationCommentTextResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetModeratorResponse_1.cpp b/client/src/model/GetModeratorResponse_1.cpp new file mode 100644 index 0000000..691d7a4 --- /dev/null +++ b/client/src/model/GetModeratorResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetModeratorResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetModeratorResponse_1::GetModeratorResponse_1() +{ + m_StatusIsSet = false; + m_ModeratorIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetModeratorResponse_1::~GetModeratorResponse_1() +{ +} + +void GetModeratorResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetModeratorResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ModeratorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moderator"))] = ModelBase::toJson(m_Moderator); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetModeratorResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderator")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderator"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setModerator; + ok &= ModelBase::fromJson(fieldValue, refVal_setModerator); + setModerator(refVal_setModerator); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetModeratorResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ModeratorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderator")), m_Moderator)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetModeratorResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderator")))) + { + std::shared_ptr refVal_setModerator; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderator"))), refVal_setModerator ); + setModerator(refVal_setModerator); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetModeratorResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetModeratorResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetModeratorResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetModeratorResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetModeratorResponse_1::getModerator() const +{ + return m_Moderator; +} + + +void GetModeratorResponse_1::setModerator(const std::shared_ptr& value) +{ + m_Moderator = value; + m_ModeratorIsSet = true; +} + +bool GetModeratorResponse_1::moderatorIsSet() const +{ + return m_ModeratorIsSet; +} + +void GetModeratorResponse_1::unsetModerator() +{ + m_ModeratorIsSet = false; +} +utility::string_t GetModeratorResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetModeratorResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetModeratorResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetModeratorResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetModeratorResponse_1::getCode() const +{ + return m_Code; +} + + +void GetModeratorResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetModeratorResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetModeratorResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetModeratorResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetModeratorResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetModeratorResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetModeratorResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetModeratorResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetModeratorResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetModeratorResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetModeratorResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetModeratorResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetModeratorResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetModeratorResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetModeratorResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetModeratorResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetModeratorResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetModeratorResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetModeratorResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetModeratorResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetModeratorResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetModeratorResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetModeratorResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetModeratorsResponse_1.cpp b/client/src/model/GetModeratorsResponse_1.cpp new file mode 100644 index 0000000..79c5cef --- /dev/null +++ b/client/src/model/GetModeratorsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetModeratorsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetModeratorsResponse_1::GetModeratorsResponse_1() +{ + m_StatusIsSet = false; + m_ModeratorsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetModeratorsResponse_1::~GetModeratorsResponse_1() +{ +} + +void GetModeratorsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetModeratorsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ModeratorsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moderators"))] = ModelBase::toJson(m_Moderators); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetModeratorsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderators")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderators"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setModerators; + ok &= ModelBase::fromJson(fieldValue, refVal_setModerators); + setModerators(refVal_setModerators); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetModeratorsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ModeratorsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderators")), m_Moderators)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetModeratorsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderators")))) + { + std::vector> refVal_setModerators; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderators"))), refVal_setModerators ); + setModerators(refVal_setModerators); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetModeratorsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetModeratorsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetModeratorsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetModeratorsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetModeratorsResponse_1::getModerators() const +{ + return m_Moderators; +} + + +void GetModeratorsResponse_1::setModerators(const std::vector>& value) +{ + m_Moderators = value; + m_ModeratorsIsSet = true; +} + +bool GetModeratorsResponse_1::moderatorsIsSet() const +{ + return m_ModeratorsIsSet; +} + +void GetModeratorsResponse_1::unsetModerators() +{ + m_ModeratorsIsSet = false; +} +utility::string_t GetModeratorsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetModeratorsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetModeratorsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetModeratorsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetModeratorsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetModeratorsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetModeratorsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetModeratorsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetModeratorsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetModeratorsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetModeratorsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetModeratorsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetModeratorsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetModeratorsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetModeratorsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetModeratorsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetModeratorsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetModeratorsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetModeratorsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetModeratorsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetModeratorsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetModeratorsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetModeratorsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetModeratorsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetModeratorsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetModeratorsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetModeratorsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetModeratorsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetNotificationCountResponse_1.cpp b/client/src/model/GetNotificationCountResponse_1.cpp new file mode 100644 index 0000000..4fa5620 --- /dev/null +++ b/client/src/model/GetNotificationCountResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetNotificationCountResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetNotificationCountResponse_1::GetNotificationCountResponse_1() +{ + m_StatusIsSet = false; + m_Count = 0.0; + m_CountIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetNotificationCountResponse_1::~GetNotificationCountResponse_1() +{ +} + +void GetNotificationCountResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetNotificationCountResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetNotificationCountResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); + if(!fieldValue.is_null()) + { + double refVal_setCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCount); + setCount(refVal_setCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetNotificationCountResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetNotificationCountResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + double refVal_setCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); + setCount(refVal_setCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetNotificationCountResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetNotificationCountResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetNotificationCountResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetNotificationCountResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +double GetNotificationCountResponse_1::getCount() const +{ + return m_Count; +} + +void GetNotificationCountResponse_1::setCount(double value) +{ + m_Count = value; + m_CountIsSet = true; +} + +bool GetNotificationCountResponse_1::countIsSet() const +{ + return m_CountIsSet; +} + +void GetNotificationCountResponse_1::unsetCount() +{ + m_CountIsSet = false; +} +utility::string_t GetNotificationCountResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetNotificationCountResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetNotificationCountResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetNotificationCountResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetNotificationCountResponse_1::getCode() const +{ + return m_Code; +} + + +void GetNotificationCountResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetNotificationCountResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetNotificationCountResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetNotificationCountResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetNotificationCountResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetNotificationCountResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetNotificationCountResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetNotificationCountResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetNotificationCountResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetNotificationCountResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetNotificationCountResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetNotificationCountResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetNotificationCountResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetNotificationCountResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetNotificationCountResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetNotificationCountResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetNotificationCountResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetNotificationCountResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetNotificationCountResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetNotificationCountResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetNotificationCountResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetNotificationCountResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetNotificationCountResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetNotificationsResponse_1.cpp b/client/src/model/GetNotificationsResponse_1.cpp new file mode 100644 index 0000000..12042c0 --- /dev/null +++ b/client/src/model/GetNotificationsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetNotificationsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetNotificationsResponse_1::GetNotificationsResponse_1() +{ + m_StatusIsSet = false; + m_NotificationsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetNotificationsResponse_1::~GetNotificationsResponse_1() +{ +} + +void GetNotificationsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetNotificationsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_NotificationsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("notifications"))] = ModelBase::toJson(m_Notifications); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetNotificationsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notifications")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notifications"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setNotifications; + ok &= ModelBase::fromJson(fieldValue, refVal_setNotifications); + setNotifications(refVal_setNotifications); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetNotificationsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_NotificationsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notifications")), m_Notifications)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetNotificationsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notifications")))) + { + std::vector> refVal_setNotifications; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notifications"))), refVal_setNotifications ); + setNotifications(refVal_setNotifications); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetNotificationsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetNotificationsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetNotificationsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetNotificationsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetNotificationsResponse_1::getNotifications() const +{ + return m_Notifications; +} + + +void GetNotificationsResponse_1::setNotifications(const std::vector>& value) +{ + m_Notifications = value; + m_NotificationsIsSet = true; +} + +bool GetNotificationsResponse_1::notificationsIsSet() const +{ + return m_NotificationsIsSet; +} + +void GetNotificationsResponse_1::unsetNotifications() +{ + m_NotificationsIsSet = false; +} +utility::string_t GetNotificationsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetNotificationsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetNotificationsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetNotificationsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetNotificationsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetNotificationsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetNotificationsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetNotificationsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetNotificationsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetNotificationsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetNotificationsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetNotificationsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetNotificationsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetNotificationsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetNotificationsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetNotificationsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetNotificationsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetNotificationsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetNotificationsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetNotificationsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetNotificationsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetNotificationsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetNotificationsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetNotificationsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetNotificationsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetNotificationsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetNotificationsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetNotificationsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetOfflineUsersResponse.cpp b/client/src/model/GetOfflineUsersResponse.cpp new file mode 100644 index 0000000..3f4acbd --- /dev/null +++ b/client/src/model/GetOfflineUsersResponse.cpp @@ -0,0 +1,603 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetOfflineUsersResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetOfflineUsersResponse::GetOfflineUsersResponse() +{ + m_UsersIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetOfflineUsersResponse::~GetOfflineUsersResponse() +{ +} + +void GetOfflineUsersResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetOfflineUsersResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_NextAfterUserId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId.get()); + } + if(m_NextAfterName.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))] = ModelBase::toJson(m_NextAfterName.get()); + } + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetOfflineUsersResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNextAfterUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterUserId); + setNextAfterUserId(refVal_setNextAfterUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNextAfterName; + ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterName); + setNextAfterName(refVal_setNextAfterName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetOfflineUsersResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_NextAfterUserId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId.get())); + } + if(m_NextAfterName.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName.get())); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetOfflineUsersResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) + { + utility::string_t refVal_setNextAfterUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))), refVal_setNextAfterUserId ); + setNextAfterUserId(refVal_setNextAfterUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) + { + utility::string_t refVal_setNextAfterName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))), refVal_setNextAfterName ); + setNextAfterName(refVal_setNextAfterName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +utility::string_t GetOfflineUsersResponse::getNextAfterUserId() const +{ + return m_NextAfterUserId.get(); +} + + +void GetOfflineUsersResponse::setNextAfterUserId(const utility::string_t& value) +{ + m_NextAfterUserId = value; +} + +bool GetOfflineUsersResponse::nextAfterUserIdIsSet() const +{ + return m_NextAfterUserId.has_value(); +} + +void GetOfflineUsersResponse::unsetNextAfterUserId() +{ + m_NextAfterUserId.reset(); +} +utility::string_t GetOfflineUsersResponse::getNextAfterName() const +{ + return m_NextAfterName.get(); +} + + +void GetOfflineUsersResponse::setNextAfterName(const utility::string_t& value) +{ + m_NextAfterName = value; +} + +bool GetOfflineUsersResponse::nextAfterNameIsSet() const +{ + return m_NextAfterName.has_value(); +} + +void GetOfflineUsersResponse::unsetNextAfterName() +{ + m_NextAfterName.reset(); +} +std::vector> GetOfflineUsersResponse::getUsers() const +{ + return m_Users; +} + + +void GetOfflineUsersResponse::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool GetOfflineUsersResponse::usersIsSet() const +{ + return m_UsersIsSet; +} + +void GetOfflineUsersResponse::unsetUsers() +{ + m_UsersIsSet = false; +} +std::shared_ptr GetOfflineUsersResponse::getStatus() const +{ + return m_Status; +} + + +void GetOfflineUsersResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetOfflineUsersResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetOfflineUsersResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetOfflineUsersResponse::getReason() const +{ + return m_Reason; +} + + +void GetOfflineUsersResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetOfflineUsersResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetOfflineUsersResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetOfflineUsersResponse::getCode() const +{ + return m_Code; +} + + +void GetOfflineUsersResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetOfflineUsersResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetOfflineUsersResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetOfflineUsersResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetOfflineUsersResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetOfflineUsersResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetOfflineUsersResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetOfflineUsersResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetOfflineUsersResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetOfflineUsersResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetOfflineUsersResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetOfflineUsersResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetOfflineUsersResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetOfflineUsersResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetOfflineUsersResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetOfflineUsersResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetOfflineUsersResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetOfflineUsersResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetOfflineUsersResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetOfflineUsersResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetOfflineUsersResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetOfflineUsersResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetOfflineUsersResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetOnlineUsersResponse.cpp b/client/src/model/GetOnlineUsersResponse.cpp new file mode 100644 index 0000000..34f3c0a --- /dev/null +++ b/client/src/model/GetOnlineUsersResponse.cpp @@ -0,0 +1,699 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetOnlineUsersResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetOnlineUsersResponse::GetOnlineUsersResponse() +{ + m_TotalCount = 0.0; + m_TotalCountIsSet = false; + m_AnonCount = 0.0; + m_AnonCountIsSet = false; + m_UsersIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetOnlineUsersResponse::~GetOnlineUsersResponse() +{ +} + +void GetOnlineUsersResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetOnlineUsersResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_NextAfterUserId.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId.get()); + } + if(m_NextAfterName.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))] = ModelBase::toJson(m_NextAfterName.get()); + } + if(m_TotalCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("totalCount"))] = ModelBase::toJson(m_TotalCount); + } + if(m_AnonCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("anonCount"))] = ModelBase::toJson(m_AnonCount); + } + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetOnlineUsersResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNextAfterUserId; + ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterUserId); + setNextAfterUserId(refVal_setNextAfterUserId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNextAfterName; + ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterName); + setNextAfterName(refVal_setNextAfterName); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("totalCount"))); + if(!fieldValue.is_null()) + { + double refVal_setTotalCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setTotalCount); + setTotalCount(refVal_setTotalCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("anonCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("anonCount"))); + if(!fieldValue.is_null()) + { + double refVal_setAnonCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setAnonCount); + setAnonCount(refVal_setAnonCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetOnlineUsersResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_NextAfterUserId.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId.get())); + } + if(m_NextAfterName.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName.get())); + } + if(m_TotalCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("totalCount")), m_TotalCount)); + } + if(m_AnonCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonCount")), m_AnonCount)); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetOnlineUsersResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) + { + utility::string_t refVal_setNextAfterUserId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))), refVal_setNextAfterUserId ); + setNextAfterUserId(refVal_setNextAfterUserId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) + { + utility::string_t refVal_setNextAfterName; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))), refVal_setNextAfterName ); + setNextAfterName(refVal_setNextAfterName); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) + { + double refVal_setTotalCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("totalCount"))), refVal_setTotalCount ); + setTotalCount(refVal_setTotalCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("anonCount")))) + { + double refVal_setAnonCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("anonCount"))), refVal_setAnonCount ); + setAnonCount(refVal_setAnonCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +utility::string_t GetOnlineUsersResponse::getNextAfterUserId() const +{ + return m_NextAfterUserId.get(); +} + + +void GetOnlineUsersResponse::setNextAfterUserId(const utility::string_t& value) +{ + m_NextAfterUserId = value; +} + +bool GetOnlineUsersResponse::nextAfterUserIdIsSet() const +{ + return m_NextAfterUserId.has_value(); +} + +void GetOnlineUsersResponse::unsetNextAfterUserId() +{ + m_NextAfterUserId.reset(); +} +utility::string_t GetOnlineUsersResponse::getNextAfterName() const +{ + return m_NextAfterName.get(); +} + + +void GetOnlineUsersResponse::setNextAfterName(const utility::string_t& value) +{ + m_NextAfterName = value; +} + +bool GetOnlineUsersResponse::nextAfterNameIsSet() const +{ + return m_NextAfterName.has_value(); +} + +void GetOnlineUsersResponse::unsetNextAfterName() +{ + m_NextAfterName.reset(); +} +double GetOnlineUsersResponse::getTotalCount() const +{ + return m_TotalCount; +} + +void GetOnlineUsersResponse::setTotalCount(double value) +{ + m_TotalCount = value; + m_TotalCountIsSet = true; +} + +bool GetOnlineUsersResponse::totalCountIsSet() const +{ + return m_TotalCountIsSet; +} + +void GetOnlineUsersResponse::unsetTotalCount() +{ + m_TotalCountIsSet = false; +} +double GetOnlineUsersResponse::getAnonCount() const +{ + return m_AnonCount; +} + +void GetOnlineUsersResponse::setAnonCount(double value) +{ + m_AnonCount = value; + m_AnonCountIsSet = true; +} + +bool GetOnlineUsersResponse::anonCountIsSet() const +{ + return m_AnonCountIsSet; +} + +void GetOnlineUsersResponse::unsetAnonCount() +{ + m_AnonCountIsSet = false; +} +std::vector> GetOnlineUsersResponse::getUsers() const +{ + return m_Users; +} + + +void GetOnlineUsersResponse::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool GetOnlineUsersResponse::usersIsSet() const +{ + return m_UsersIsSet; +} + +void GetOnlineUsersResponse::unsetUsers() +{ + m_UsersIsSet = false; +} +std::shared_ptr GetOnlineUsersResponse::getStatus() const +{ + return m_Status; +} + + +void GetOnlineUsersResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetOnlineUsersResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetOnlineUsersResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetOnlineUsersResponse::getReason() const +{ + return m_Reason; +} + + +void GetOnlineUsersResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetOnlineUsersResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetOnlineUsersResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetOnlineUsersResponse::getCode() const +{ + return m_Code; +} + + +void GetOnlineUsersResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetOnlineUsersResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetOnlineUsersResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetOnlineUsersResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetOnlineUsersResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetOnlineUsersResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetOnlineUsersResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetOnlineUsersResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetOnlineUsersResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetOnlineUsersResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetOnlineUsersResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetOnlineUsersResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetOnlineUsersResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetOnlineUsersResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetOnlineUsersResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetOnlineUsersResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetOnlineUsersResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetOnlineUsersResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetOnlineUsersResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetOnlineUsersResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetOnlineUsersResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetOnlineUsersResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetOnlineUsersResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetPagesPublic_200_response.cpp b/client/src/model/GetPagesPublicResponse.cpp similarity index 81% rename from client/src/model/GetPagesPublic_200_response.cpp rename to client/src/model/GetPagesPublicResponse.cpp index 04a747a..4b65f4e 100644 --- a/client/src/model/GetPagesPublic_200_response.cpp +++ b/client/src/model/GetPagesPublicResponse.cpp @@ -11,14 +11,14 @@ -#include "FastCommentsClient/model/GetPagesPublic_200_response.h" +#include "FastCommentsClient/model/GetPagesPublicResponse.h" namespace org { namespace openapitools { namespace client { namespace model { -GetPagesPublic_200_response::GetPagesPublic_200_response() +GetPagesPublicResponse::GetPagesPublicResponse() { m_PagesIsSet = false; m_StatusIsSet = false; @@ -37,16 +37,16 @@ GetPagesPublic_200_response::GetPagesPublic_200_response() m_CustomConfigIsSet = false; } -GetPagesPublic_200_response::~GetPagesPublic_200_response() +GetPagesPublicResponse::~GetPagesPublicResponse() { } -void GetPagesPublic_200_response::validate() +void GetPagesPublicResponse::validate() { // TODO: implement validation } -web::json::value GetPagesPublic_200_response::toJson() const +web::json::value GetPagesPublicResponse::toJson() const { web::json::value val = web::json::value::object(); if(m_NextCursor.has_value()) @@ -103,7 +103,7 @@ web::json::value GetPagesPublic_200_response::toJson() const return val; } -bool GetPagesPublic_200_response::fromJson(const web::json::value& val) +bool GetPagesPublicResponse::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextCursor")))) @@ -219,7 +219,7 @@ bool GetPagesPublic_200_response::fromJson(const web::json::value& val) return ok; } -void GetPagesPublic_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void GetPagesPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -268,7 +268,7 @@ void GetPagesPublic_200_response::toMultipart(std::shared_ptr } } -bool GetPagesPublic_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool GetPagesPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -341,210 +341,210 @@ bool GetPagesPublic_200_response::fromMultiPart(std::shared_ptr> GetPagesPublic_200_response::getPages() const +std::vector> GetPagesPublicResponse::getPages() const { return m_Pages; } -void GetPagesPublic_200_response::setPages(const std::vector>& value) +void GetPagesPublicResponse::setPages(const std::vector>& value) { m_Pages = value; m_PagesIsSet = true; } -bool GetPagesPublic_200_response::pagesIsSet() const +bool GetPagesPublicResponse::pagesIsSet() const { return m_PagesIsSet; } -void GetPagesPublic_200_response::unsetPages() +void GetPagesPublicResponse::unsetPages() { m_PagesIsSet = false; } -std::shared_ptr GetPagesPublic_200_response::getStatus() const +std::shared_ptr GetPagesPublicResponse::getStatus() const { return m_Status; } -void GetPagesPublic_200_response::setStatus(const std::shared_ptr& value) +void GetPagesPublicResponse::setStatus(const std::shared_ptr& value) { m_Status = value; m_StatusIsSet = true; } -bool GetPagesPublic_200_response::statusIsSet() const +bool GetPagesPublicResponse::statusIsSet() const { return m_StatusIsSet; } -void GetPagesPublic_200_response::unsetStatus() +void GetPagesPublicResponse::unsetStatus() { m_StatusIsSet = false; } -utility::string_t GetPagesPublic_200_response::getReason() const +utility::string_t GetPagesPublicResponse::getReason() const { return m_Reason; } -void GetPagesPublic_200_response::setReason(const utility::string_t& value) +void GetPagesPublicResponse::setReason(const utility::string_t& value) { m_Reason = value; m_ReasonIsSet = true; } -bool GetPagesPublic_200_response::reasonIsSet() const +bool GetPagesPublicResponse::reasonIsSet() const { return m_ReasonIsSet; } -void GetPagesPublic_200_response::unsetReason() +void GetPagesPublicResponse::unsetReason() { m_ReasonIsSet = false; } -utility::string_t GetPagesPublic_200_response::getCode() const +utility::string_t GetPagesPublicResponse::getCode() const { return m_Code; } -void GetPagesPublic_200_response::setCode(const utility::string_t& value) +void GetPagesPublicResponse::setCode(const utility::string_t& value) { m_Code = value; m_CodeIsSet = true; } -bool GetPagesPublic_200_response::codeIsSet() const +bool GetPagesPublicResponse::codeIsSet() const { return m_CodeIsSet; } -void GetPagesPublic_200_response::unsetCode() +void GetPagesPublicResponse::unsetCode() { m_CodeIsSet = false; } -utility::string_t GetPagesPublic_200_response::getSecondaryCode() const +utility::string_t GetPagesPublicResponse::getSecondaryCode() const { return m_SecondaryCode; } -void GetPagesPublic_200_response::setSecondaryCode(const utility::string_t& value) +void GetPagesPublicResponse::setSecondaryCode(const utility::string_t& value) { m_SecondaryCode = value; m_SecondaryCodeIsSet = true; } -bool GetPagesPublic_200_response::secondaryCodeIsSet() const +bool GetPagesPublicResponse::secondaryCodeIsSet() const { return m_SecondaryCodeIsSet; } -void GetPagesPublic_200_response::unsetSecondaryCode() +void GetPagesPublicResponse::unsetSecondaryCode() { m_SecondaryCodeIsSet = false; } -int64_t GetPagesPublic_200_response::getBannedUntil() const +int64_t GetPagesPublicResponse::getBannedUntil() const { return m_BannedUntil; } -void GetPagesPublic_200_response::setBannedUntil(int64_t value) +void GetPagesPublicResponse::setBannedUntil(int64_t value) { m_BannedUntil = value; m_BannedUntilIsSet = true; } -bool GetPagesPublic_200_response::bannedUntilIsSet() const +bool GetPagesPublicResponse::bannedUntilIsSet() const { return m_BannedUntilIsSet; } -void GetPagesPublic_200_response::unsetBannedUntil() +void GetPagesPublicResponse::unsetBannedUntil() { m_BannedUntilIsSet = false; } -int32_t GetPagesPublic_200_response::getMaxCharacterLength() const +int32_t GetPagesPublicResponse::getMaxCharacterLength() const { return m_MaxCharacterLength; } -void GetPagesPublic_200_response::setMaxCharacterLength(int32_t value) +void GetPagesPublicResponse::setMaxCharacterLength(int32_t value) { m_MaxCharacterLength = value; m_MaxCharacterLengthIsSet = true; } -bool GetPagesPublic_200_response::maxCharacterLengthIsSet() const +bool GetPagesPublicResponse::maxCharacterLengthIsSet() const { return m_MaxCharacterLengthIsSet; } -void GetPagesPublic_200_response::unsetMaxCharacterLength() +void GetPagesPublicResponse::unsetMaxCharacterLength() { m_MaxCharacterLengthIsSet = false; } -utility::string_t GetPagesPublic_200_response::getTranslatedError() const +utility::string_t GetPagesPublicResponse::getTranslatedError() const { return m_TranslatedError; } -void GetPagesPublic_200_response::setTranslatedError(const utility::string_t& value) +void GetPagesPublicResponse::setTranslatedError(const utility::string_t& value) { m_TranslatedError = value; m_TranslatedErrorIsSet = true; } -bool GetPagesPublic_200_response::translatedErrorIsSet() const +bool GetPagesPublicResponse::translatedErrorIsSet() const { return m_TranslatedErrorIsSet; } -void GetPagesPublic_200_response::unsetTranslatedError() +void GetPagesPublicResponse::unsetTranslatedError() { m_TranslatedErrorIsSet = false; } -std::shared_ptr GetPagesPublic_200_response::getCustomConfig() const +std::shared_ptr GetPagesPublicResponse::getCustomConfig() const { return m_CustomConfig; } -void GetPagesPublic_200_response::setCustomConfig(const std::shared_ptr& value) +void GetPagesPublicResponse::setCustomConfig(const std::shared_ptr& value) { m_CustomConfig = value; m_CustomConfigIsSet = true; } -bool GetPagesPublic_200_response::customConfigIsSet() const +bool GetPagesPublicResponse::customConfigIsSet() const { return m_CustomConfigIsSet; } -void GetPagesPublic_200_response::unsetCustomConfig() +void GetPagesPublicResponse::unsetCustomConfig() { m_CustomConfigIsSet = false; } diff --git a/client/src/model/GetPendingWebhookEventCountResponse_1.cpp b/client/src/model/GetPendingWebhookEventCountResponse_1.cpp new file mode 100644 index 0000000..45e1f4a --- /dev/null +++ b/client/src/model/GetPendingWebhookEventCountResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetPendingWebhookEventCountResponse_1::GetPendingWebhookEventCountResponse_1() +{ + m_StatusIsSet = false; + m_Count = 0.0; + m_CountIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetPendingWebhookEventCountResponse_1::~GetPendingWebhookEventCountResponse_1() +{ +} + +void GetPendingWebhookEventCountResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetPendingWebhookEventCountResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetPendingWebhookEventCountResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); + if(!fieldValue.is_null()) + { + double refVal_setCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCount); + setCount(refVal_setCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetPendingWebhookEventCountResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetPendingWebhookEventCountResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + double refVal_setCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); + setCount(refVal_setCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetPendingWebhookEventCountResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetPendingWebhookEventCountResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetPendingWebhookEventCountResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetPendingWebhookEventCountResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +double GetPendingWebhookEventCountResponse_1::getCount() const +{ + return m_Count; +} + +void GetPendingWebhookEventCountResponse_1::setCount(double value) +{ + m_Count = value; + m_CountIsSet = true; +} + +bool GetPendingWebhookEventCountResponse_1::countIsSet() const +{ + return m_CountIsSet; +} + +void GetPendingWebhookEventCountResponse_1::unsetCount() +{ + m_CountIsSet = false; +} +utility::string_t GetPendingWebhookEventCountResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetPendingWebhookEventCountResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetPendingWebhookEventCountResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetPendingWebhookEventCountResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetPendingWebhookEventCountResponse_1::getCode() const +{ + return m_Code; +} + + +void GetPendingWebhookEventCountResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetPendingWebhookEventCountResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetPendingWebhookEventCountResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetPendingWebhookEventCountResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetPendingWebhookEventCountResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetPendingWebhookEventCountResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetPendingWebhookEventCountResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetPendingWebhookEventCountResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetPendingWebhookEventCountResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetPendingWebhookEventCountResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetPendingWebhookEventCountResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetPendingWebhookEventCountResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetPendingWebhookEventCountResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetPendingWebhookEventCountResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetPendingWebhookEventCountResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetPendingWebhookEventCountResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetPendingWebhookEventCountResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetPendingWebhookEventCountResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetPendingWebhookEventCountResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetPendingWebhookEventCountResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetPendingWebhookEventCountResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetPendingWebhookEventCountResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetPendingWebhookEventCountResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetPendingWebhookEventsResponse_1.cpp b/client/src/model/GetPendingWebhookEventsResponse_1.cpp new file mode 100644 index 0000000..9c46d68 --- /dev/null +++ b/client/src/model/GetPendingWebhookEventsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetPendingWebhookEventsResponse_1::GetPendingWebhookEventsResponse_1() +{ + m_StatusIsSet = false; + m_PendingWebhookEventsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetPendingWebhookEventsResponse_1::~GetPendingWebhookEventsResponse_1() +{ +} + +void GetPendingWebhookEventsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetPendingWebhookEventsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_PendingWebhookEventsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))] = ModelBase::toJson(m_PendingWebhookEvents); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetPendingWebhookEventsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setPendingWebhookEvents; + ok &= ModelBase::fromJson(fieldValue, refVal_setPendingWebhookEvents); + setPendingWebhookEvents(refVal_setPendingWebhookEvents); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetPendingWebhookEventsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_PendingWebhookEventsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents")), m_PendingWebhookEvents)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetPendingWebhookEventsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents")))) + { + std::vector> refVal_setPendingWebhookEvents; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))), refVal_setPendingWebhookEvents ); + setPendingWebhookEvents(refVal_setPendingWebhookEvents); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetPendingWebhookEventsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetPendingWebhookEventsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetPendingWebhookEventsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetPendingWebhookEventsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetPendingWebhookEventsResponse_1::getPendingWebhookEvents() const +{ + return m_PendingWebhookEvents; +} + + +void GetPendingWebhookEventsResponse_1::setPendingWebhookEvents(const std::vector>& value) +{ + m_PendingWebhookEvents = value; + m_PendingWebhookEventsIsSet = true; +} + +bool GetPendingWebhookEventsResponse_1::pendingWebhookEventsIsSet() const +{ + return m_PendingWebhookEventsIsSet; +} + +void GetPendingWebhookEventsResponse_1::unsetPendingWebhookEvents() +{ + m_PendingWebhookEventsIsSet = false; +} +utility::string_t GetPendingWebhookEventsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetPendingWebhookEventsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetPendingWebhookEventsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetPendingWebhookEventsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetPendingWebhookEventsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetPendingWebhookEventsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetPendingWebhookEventsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetPendingWebhookEventsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetPendingWebhookEventsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetPendingWebhookEventsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetPendingWebhookEventsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetPendingWebhookEventsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetPendingWebhookEventsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetPendingWebhookEventsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetPendingWebhookEventsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetPendingWebhookEventsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetPendingWebhookEventsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetPendingWebhookEventsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetPendingWebhookEventsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetPendingWebhookEventsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetPendingWebhookEventsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetPendingWebhookEventsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetPendingWebhookEventsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetPendingWebhookEventsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetPendingWebhookEventsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetPendingWebhookEventsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetPendingWebhookEventsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetPendingWebhookEventsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetPreBanSummaryResponse.cpp b/client/src/model/GetPreBanSummaryResponse.cpp new file mode 100644 index 0000000..dc9e50a --- /dev/null +++ b/client/src/model/GetPreBanSummaryResponse.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetPreBanSummaryResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetPreBanSummaryResponse::GetPreBanSummaryResponse() +{ + m_StatusIsSet = false; + m_UsernamesIsSet = false; + m_Count = 0.0; + m_CountIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetPreBanSummaryResponse::~GetPreBanSummaryResponse() +{ +} + +void GetPreBanSummaryResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetPreBanSummaryResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_UsernamesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("usernames"))] = ModelBase::toJson(m_Usernames); + } + if(m_CountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetPreBanSummaryResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("usernames")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("usernames"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setUsernames; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsernames); + setUsernames(refVal_setUsernames); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); + if(!fieldValue.is_null()) + { + double refVal_setCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCount); + setCount(refVal_setCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetPreBanSummaryResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_UsernamesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("usernames")), m_Usernames)); + } + if(m_CountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetPreBanSummaryResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("usernames")))) + { + std::vector refVal_setUsernames; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("usernames"))), refVal_setUsernames ); + setUsernames(refVal_setUsernames); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + double refVal_setCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); + setCount(refVal_setCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetPreBanSummaryResponse::getStatus() const +{ + return m_Status; +} + + +void GetPreBanSummaryResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetPreBanSummaryResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetPreBanSummaryResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector GetPreBanSummaryResponse::getUsernames() const +{ + return m_Usernames; +} + + +void GetPreBanSummaryResponse::setUsernames(const std::vector& value) +{ + m_Usernames = value; + m_UsernamesIsSet = true; +} + +bool GetPreBanSummaryResponse::usernamesIsSet() const +{ + return m_UsernamesIsSet; +} + +void GetPreBanSummaryResponse::unsetUsernames() +{ + m_UsernamesIsSet = false; +} +double GetPreBanSummaryResponse::getCount() const +{ + return m_Count; +} + +void GetPreBanSummaryResponse::setCount(double value) +{ + m_Count = value; + m_CountIsSet = true; +} + +bool GetPreBanSummaryResponse::countIsSet() const +{ + return m_CountIsSet; +} + +void GetPreBanSummaryResponse::unsetCount() +{ + m_CountIsSet = false; +} +utility::string_t GetPreBanSummaryResponse::getReason() const +{ + return m_Reason; +} + + +void GetPreBanSummaryResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetPreBanSummaryResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetPreBanSummaryResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetPreBanSummaryResponse::getCode() const +{ + return m_Code; +} + + +void GetPreBanSummaryResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetPreBanSummaryResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetPreBanSummaryResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetPreBanSummaryResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetPreBanSummaryResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetPreBanSummaryResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetPreBanSummaryResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetPreBanSummaryResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetPreBanSummaryResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetPreBanSummaryResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetPreBanSummaryResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetPreBanSummaryResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetPreBanSummaryResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetPreBanSummaryResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetPreBanSummaryResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetPreBanSummaryResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetPreBanSummaryResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetPreBanSummaryResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetPreBanSummaryResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetPreBanSummaryResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetPreBanSummaryResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetPreBanSummaryResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetPreBanSummaryResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetQuestionConfigResponse_1.cpp b/client/src/model/GetQuestionConfigResponse_1.cpp new file mode 100644 index 0000000..624c3b2 --- /dev/null +++ b/client/src/model/GetQuestionConfigResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetQuestionConfigResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetQuestionConfigResponse_1::GetQuestionConfigResponse_1() +{ + m_StatusIsSet = false; + m_QuestionConfigIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetQuestionConfigResponse_1::~GetQuestionConfigResponse_1() +{ +} + +void GetQuestionConfigResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetQuestionConfigResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_QuestionConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("questionConfig"))] = ModelBase::toJson(m_QuestionConfig); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetQuestionConfigResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setQuestionConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionConfig); + setQuestionConfig(refVal_setQuestionConfig); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetQuestionConfigResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_QuestionConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionConfig")), m_QuestionConfig)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetQuestionConfigResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) + { + std::shared_ptr refVal_setQuestionConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))), refVal_setQuestionConfig ); + setQuestionConfig(refVal_setQuestionConfig); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetQuestionConfigResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetQuestionConfigResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetQuestionConfigResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetQuestionConfigResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetQuestionConfigResponse_1::getQuestionConfig() const +{ + return m_QuestionConfig; +} + + +void GetQuestionConfigResponse_1::setQuestionConfig(const std::shared_ptr& value) +{ + m_QuestionConfig = value; + m_QuestionConfigIsSet = true; +} + +bool GetQuestionConfigResponse_1::questionConfigIsSet() const +{ + return m_QuestionConfigIsSet; +} + +void GetQuestionConfigResponse_1::unsetQuestionConfig() +{ + m_QuestionConfigIsSet = false; +} +utility::string_t GetQuestionConfigResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetQuestionConfigResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetQuestionConfigResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetQuestionConfigResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetQuestionConfigResponse_1::getCode() const +{ + return m_Code; +} + + +void GetQuestionConfigResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetQuestionConfigResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetQuestionConfigResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetQuestionConfigResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetQuestionConfigResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetQuestionConfigResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetQuestionConfigResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetQuestionConfigResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetQuestionConfigResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetQuestionConfigResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetQuestionConfigResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetQuestionConfigResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetQuestionConfigResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetQuestionConfigResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetQuestionConfigResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetQuestionConfigResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetQuestionConfigResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetQuestionConfigResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetQuestionConfigResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetQuestionConfigResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetQuestionConfigResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetQuestionConfigResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetQuestionConfigResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetQuestionConfigsResponse_1.cpp b/client/src/model/GetQuestionConfigsResponse_1.cpp new file mode 100644 index 0000000..56371f8 --- /dev/null +++ b/client/src/model/GetQuestionConfigsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetQuestionConfigsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetQuestionConfigsResponse_1::GetQuestionConfigsResponse_1() +{ + m_StatusIsSet = false; + m_QuestionConfigsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetQuestionConfigsResponse_1::~GetQuestionConfigsResponse_1() +{ +} + +void GetQuestionConfigsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetQuestionConfigsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_QuestionConfigsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))] = ModelBase::toJson(m_QuestionConfigs); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetQuestionConfigsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionConfigs")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setQuestionConfigs; + ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionConfigs); + setQuestionConfigs(refVal_setQuestionConfigs); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetQuestionConfigsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_QuestionConfigsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionConfigs")), m_QuestionConfigs)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetQuestionConfigsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionConfigs")))) + { + std::vector> refVal_setQuestionConfigs; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))), refVal_setQuestionConfigs ); + setQuestionConfigs(refVal_setQuestionConfigs); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetQuestionConfigsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetQuestionConfigsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetQuestionConfigsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetQuestionConfigsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetQuestionConfigsResponse_1::getQuestionConfigs() const +{ + return m_QuestionConfigs; +} + + +void GetQuestionConfigsResponse_1::setQuestionConfigs(const std::vector>& value) +{ + m_QuestionConfigs = value; + m_QuestionConfigsIsSet = true; +} + +bool GetQuestionConfigsResponse_1::questionConfigsIsSet() const +{ + return m_QuestionConfigsIsSet; +} + +void GetQuestionConfigsResponse_1::unsetQuestionConfigs() +{ + m_QuestionConfigsIsSet = false; +} +utility::string_t GetQuestionConfigsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetQuestionConfigsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetQuestionConfigsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetQuestionConfigsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetQuestionConfigsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetQuestionConfigsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetQuestionConfigsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetQuestionConfigsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetQuestionConfigsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetQuestionConfigsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetQuestionConfigsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetQuestionConfigsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetQuestionConfigsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetQuestionConfigsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetQuestionConfigsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetQuestionConfigsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetQuestionConfigsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetQuestionConfigsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetQuestionConfigsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetQuestionConfigsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetQuestionConfigsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetQuestionConfigsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetQuestionConfigsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetQuestionConfigsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetQuestionConfigsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetQuestionConfigsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetQuestionConfigsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetQuestionConfigsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetQuestionResultResponse_1.cpp b/client/src/model/GetQuestionResultResponse_1.cpp new file mode 100644 index 0000000..ea10cda --- /dev/null +++ b/client/src/model/GetQuestionResultResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetQuestionResultResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetQuestionResultResponse_1::GetQuestionResultResponse_1() +{ + m_StatusIsSet = false; + m_QuestionResultIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetQuestionResultResponse_1::~GetQuestionResultResponse_1() +{ +} + +void GetQuestionResultResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetQuestionResultResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_QuestionResultIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("questionResult"))] = ModelBase::toJson(m_QuestionResult); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetQuestionResultResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionResult"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setQuestionResult; + ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionResult); + setQuestionResult(refVal_setQuestionResult); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetQuestionResultResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_QuestionResultIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionResult")), m_QuestionResult)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetQuestionResultResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) + { + std::shared_ptr refVal_setQuestionResult; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionResult"))), refVal_setQuestionResult ); + setQuestionResult(refVal_setQuestionResult); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetQuestionResultResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetQuestionResultResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetQuestionResultResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetQuestionResultResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetQuestionResultResponse_1::getQuestionResult() const +{ + return m_QuestionResult; +} + + +void GetQuestionResultResponse_1::setQuestionResult(const std::shared_ptr& value) +{ + m_QuestionResult = value; + m_QuestionResultIsSet = true; +} + +bool GetQuestionResultResponse_1::questionResultIsSet() const +{ + return m_QuestionResultIsSet; +} + +void GetQuestionResultResponse_1::unsetQuestionResult() +{ + m_QuestionResultIsSet = false; +} +utility::string_t GetQuestionResultResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetQuestionResultResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetQuestionResultResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetQuestionResultResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetQuestionResultResponse_1::getCode() const +{ + return m_Code; +} + + +void GetQuestionResultResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetQuestionResultResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetQuestionResultResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetQuestionResultResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetQuestionResultResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetQuestionResultResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetQuestionResultResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetQuestionResultResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetQuestionResultResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetQuestionResultResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetQuestionResultResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetQuestionResultResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetQuestionResultResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetQuestionResultResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetQuestionResultResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetQuestionResultResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetQuestionResultResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetQuestionResultResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetQuestionResultResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetQuestionResultResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetQuestionResultResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetQuestionResultResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetQuestionResultResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetQuestionResultsResponse_1.cpp b/client/src/model/GetQuestionResultsResponse_1.cpp new file mode 100644 index 0000000..2f2cb8c --- /dev/null +++ b/client/src/model/GetQuestionResultsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetQuestionResultsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetQuestionResultsResponse_1::GetQuestionResultsResponse_1() +{ + m_StatusIsSet = false; + m_QuestionResultsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetQuestionResultsResponse_1::~GetQuestionResultsResponse_1() +{ +} + +void GetQuestionResultsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetQuestionResultsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_QuestionResultsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("questionResults"))] = ModelBase::toJson(m_QuestionResults); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetQuestionResultsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionResults")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionResults"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setQuestionResults; + ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionResults); + setQuestionResults(refVal_setQuestionResults); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetQuestionResultsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_QuestionResultsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionResults")), m_QuestionResults)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetQuestionResultsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionResults")))) + { + std::vector> refVal_setQuestionResults; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionResults"))), refVal_setQuestionResults ); + setQuestionResults(refVal_setQuestionResults); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetQuestionResultsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetQuestionResultsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetQuestionResultsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetQuestionResultsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetQuestionResultsResponse_1::getQuestionResults() const +{ + return m_QuestionResults; +} + + +void GetQuestionResultsResponse_1::setQuestionResults(const std::vector>& value) +{ + m_QuestionResults = value; + m_QuestionResultsIsSet = true; +} + +bool GetQuestionResultsResponse_1::questionResultsIsSet() const +{ + return m_QuestionResultsIsSet; +} + +void GetQuestionResultsResponse_1::unsetQuestionResults() +{ + m_QuestionResultsIsSet = false; +} +utility::string_t GetQuestionResultsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetQuestionResultsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetQuestionResultsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetQuestionResultsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetQuestionResultsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetQuestionResultsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetQuestionResultsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetQuestionResultsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetQuestionResultsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetQuestionResultsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetQuestionResultsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetQuestionResultsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetQuestionResultsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetQuestionResultsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetQuestionResultsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetQuestionResultsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetQuestionResultsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetQuestionResultsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetQuestionResultsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetQuestionResultsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetQuestionResultsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetQuestionResultsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetQuestionResultsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetQuestionResultsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetQuestionResultsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetQuestionResultsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetQuestionResultsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetQuestionResultsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetSearchCommentsSummaryResponse.cpp b/client/src/model/GetSearchCommentsSummaryResponse.cpp new file mode 100644 index 0000000..97bfe27 --- /dev/null +++ b/client/src/model/GetSearchCommentsSummaryResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetSearchCommentsSummaryResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetSearchCommentsSummaryResponse::GetSearchCommentsSummaryResponse() +{ + m_CommentCount = 0; + m_CommentCountIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetSearchCommentsSummaryResponse::~GetSearchCommentsSummaryResponse() +{ +} + +void GetSearchCommentsSummaryResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetSearchCommentsSummaryResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetSearchCommentsSummaryResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); + setCommentCount(refVal_setCommentCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetSearchCommentsSummaryResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetSearchCommentsSummaryResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); + setCommentCount(refVal_setCommentCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +int32_t GetSearchCommentsSummaryResponse::getCommentCount() const +{ + return m_CommentCount; +} + +void GetSearchCommentsSummaryResponse::setCommentCount(int32_t value) +{ + m_CommentCount = value; + m_CommentCountIsSet = true; +} + +bool GetSearchCommentsSummaryResponse::commentCountIsSet() const +{ + return m_CommentCountIsSet; +} + +void GetSearchCommentsSummaryResponse::unsetCommentCount() +{ + m_CommentCountIsSet = false; +} +std::shared_ptr GetSearchCommentsSummaryResponse::getStatus() const +{ + return m_Status; +} + + +void GetSearchCommentsSummaryResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetSearchCommentsSummaryResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetSearchCommentsSummaryResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetSearchCommentsSummaryResponse::getReason() const +{ + return m_Reason; +} + + +void GetSearchCommentsSummaryResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetSearchCommentsSummaryResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetSearchCommentsSummaryResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetSearchCommentsSummaryResponse::getCode() const +{ + return m_Code; +} + + +void GetSearchCommentsSummaryResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetSearchCommentsSummaryResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetSearchCommentsSummaryResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetSearchCommentsSummaryResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetSearchCommentsSummaryResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetSearchCommentsSummaryResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetSearchCommentsSummaryResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetSearchCommentsSummaryResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetSearchCommentsSummaryResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetSearchCommentsSummaryResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetSearchCommentsSummaryResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetSearchCommentsSummaryResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetSearchCommentsSummaryResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetSearchCommentsSummaryResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetSearchCommentsSummaryResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetSearchCommentsSummaryResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetSearchCommentsSummaryResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetSearchCommentsSummaryResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetSearchCommentsSummaryResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetSearchCommentsSummaryResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetSearchCommentsSummaryResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetSearchCommentsSummaryResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetSearchCommentsSummaryResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetSearchPagesResponse.cpp b/client/src/model/GetSearchPagesResponse.cpp new file mode 100644 index 0000000..bde43ff --- /dev/null +++ b/client/src/model/GetSearchPagesResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetSearchPagesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetSearchPagesResponse::GetSearchPagesResponse() +{ + m_PagesIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetSearchPagesResponse::~GetSearchPagesResponse() +{ +} + +void GetSearchPagesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetSearchPagesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_PagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetSearchPagesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pages")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pages"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setPages; + ok &= ModelBase::fromJson(fieldValue, refVal_setPages); + setPages(refVal_setPages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetSearchPagesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_PagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pages")), m_Pages)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetSearchPagesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pages")))) + { + std::vector> refVal_setPages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pages"))), refVal_setPages ); + setPages(refVal_setPages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetSearchPagesResponse::getPages() const +{ + return m_Pages; +} + + +void GetSearchPagesResponse::setPages(const std::vector>& value) +{ + m_Pages = value; + m_PagesIsSet = true; +} + +bool GetSearchPagesResponse::pagesIsSet() const +{ + return m_PagesIsSet; +} + +void GetSearchPagesResponse::unsetPages() +{ + m_PagesIsSet = false; +} +std::shared_ptr GetSearchPagesResponse::getStatus() const +{ + return m_Status; +} + + +void GetSearchPagesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetSearchPagesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetSearchPagesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetSearchPagesResponse::getReason() const +{ + return m_Reason; +} + + +void GetSearchPagesResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetSearchPagesResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetSearchPagesResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetSearchPagesResponse::getCode() const +{ + return m_Code; +} + + +void GetSearchPagesResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetSearchPagesResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetSearchPagesResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetSearchPagesResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetSearchPagesResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetSearchPagesResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetSearchPagesResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetSearchPagesResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetSearchPagesResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetSearchPagesResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetSearchPagesResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetSearchPagesResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetSearchPagesResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetSearchPagesResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetSearchPagesResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetSearchPagesResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetSearchPagesResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetSearchPagesResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetSearchPagesResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetSearchPagesResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetSearchPagesResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetSearchPagesResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetSearchPagesResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetSearchSitesResponse.cpp b/client/src/model/GetSearchSitesResponse.cpp new file mode 100644 index 0000000..b181e44 --- /dev/null +++ b/client/src/model/GetSearchSitesResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetSearchSitesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetSearchSitesResponse::GetSearchSitesResponse() +{ + m_SitesIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetSearchSitesResponse::~GetSearchSitesResponse() +{ +} + +void GetSearchSitesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetSearchSitesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_SitesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("sites"))] = ModelBase::toJson(m_Sites); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetSearchSitesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sites")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sites"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setSites; + ok &= ModelBase::fromJson(fieldValue, refVal_setSites); + setSites(refVal_setSites); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetSearchSitesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_SitesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sites")), m_Sites)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetSearchSitesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sites")))) + { + std::vector> refVal_setSites; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sites"))), refVal_setSites ); + setSites(refVal_setSites); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetSearchSitesResponse::getSites() const +{ + return m_Sites; +} + + +void GetSearchSitesResponse::setSites(const std::vector>& value) +{ + m_Sites = value; + m_SitesIsSet = true; +} + +bool GetSearchSitesResponse::sitesIsSet() const +{ + return m_SitesIsSet; +} + +void GetSearchSitesResponse::unsetSites() +{ + m_SitesIsSet = false; +} +std::shared_ptr GetSearchSitesResponse::getStatus() const +{ + return m_Status; +} + + +void GetSearchSitesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetSearchSitesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetSearchSitesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetSearchSitesResponse::getReason() const +{ + return m_Reason; +} + + +void GetSearchSitesResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetSearchSitesResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetSearchSitesResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetSearchSitesResponse::getCode() const +{ + return m_Code; +} + + +void GetSearchSitesResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetSearchSitesResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetSearchSitesResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetSearchSitesResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetSearchSitesResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetSearchSitesResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetSearchSitesResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetSearchSitesResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetSearchSitesResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetSearchSitesResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetSearchSitesResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetSearchSitesResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetSearchSitesResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetSearchSitesResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetSearchSitesResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetSearchSitesResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetSearchSitesResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetSearchSitesResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetSearchSitesResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetSearchSitesResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetSearchSitesResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetSearchSitesResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetSearchSitesResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetSearchSuggestResponse.cpp b/client/src/model/GetSearchSuggestResponse.cpp new file mode 100644 index 0000000..a99dac9 --- /dev/null +++ b/client/src/model/GetSearchSuggestResponse.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetSearchSuggestResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetSearchSuggestResponse::GetSearchSuggestResponse() +{ + m_StatusIsSet = false; + m_PagesIsSet = false; + m_UsersIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetSearchSuggestResponse::~GetSearchSuggestResponse() +{ +} + +void GetSearchSuggestResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetSearchSuggestResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_PagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); + } + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetSearchSuggestResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pages")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pages"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setPages; + ok &= ModelBase::fromJson(fieldValue, refVal_setPages); + setPages(refVal_setPages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetSearchSuggestResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_PagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pages")), m_Pages)); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetSearchSuggestResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pages")))) + { + std::vector> refVal_setPages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pages"))), refVal_setPages ); + setPages(refVal_setPages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetSearchSuggestResponse::getStatus() const +{ + return m_Status; +} + + +void GetSearchSuggestResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetSearchSuggestResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetSearchSuggestResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetSearchSuggestResponse::getPages() const +{ + return m_Pages; +} + + +void GetSearchSuggestResponse::setPages(const std::vector>& value) +{ + m_Pages = value; + m_PagesIsSet = true; +} + +bool GetSearchSuggestResponse::pagesIsSet() const +{ + return m_PagesIsSet; +} + +void GetSearchSuggestResponse::unsetPages() +{ + m_PagesIsSet = false; +} +std::vector> GetSearchSuggestResponse::getUsers() const +{ + return m_Users; +} + + +void GetSearchSuggestResponse::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool GetSearchSuggestResponse::usersIsSet() const +{ + return m_UsersIsSet; +} + +void GetSearchSuggestResponse::unsetUsers() +{ + m_UsersIsSet = false; +} +utility::string_t GetSearchSuggestResponse::getCode() const +{ + return m_Code; +} + + +void GetSearchSuggestResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetSearchSuggestResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetSearchSuggestResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetSearchSuggestResponse::getReason() const +{ + return m_Reason; +} + + +void GetSearchSuggestResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetSearchSuggestResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetSearchSuggestResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetSearchSuggestResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetSearchSuggestResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetSearchSuggestResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetSearchSuggestResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetSearchSuggestResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetSearchSuggestResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetSearchSuggestResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetSearchSuggestResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetSearchSuggestResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetSearchSuggestResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetSearchSuggestResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetSearchSuggestResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetSearchSuggestResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetSearchSuggestResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetSearchSuggestResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetSearchSuggestResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetSearchSuggestResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetSearchSuggestResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetSearchSuggestResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetSearchSuggestResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetSearchUsersResponse.cpp b/client/src/model/GetSearchUsersResponse.cpp new file mode 100644 index 0000000..c9dad45 --- /dev/null +++ b/client/src/model/GetSearchUsersResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetSearchUsersResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetSearchUsersResponse::GetSearchUsersResponse() +{ + m_UsersIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetSearchUsersResponse::~GetSearchUsersResponse() +{ +} + +void GetSearchUsersResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetSearchUsersResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetSearchUsersResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetSearchUsersResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetSearchUsersResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetSearchUsersResponse::getUsers() const +{ + return m_Users; +} + + +void GetSearchUsersResponse::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool GetSearchUsersResponse::usersIsSet() const +{ + return m_UsersIsSet; +} + +void GetSearchUsersResponse::unsetUsers() +{ + m_UsersIsSet = false; +} +std::shared_ptr GetSearchUsersResponse::getStatus() const +{ + return m_Status; +} + + +void GetSearchUsersResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetSearchUsersResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetSearchUsersResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetSearchUsersResponse::getReason() const +{ + return m_Reason; +} + + +void GetSearchUsersResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetSearchUsersResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetSearchUsersResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetSearchUsersResponse::getCode() const +{ + return m_Code; +} + + +void GetSearchUsersResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetSearchUsersResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetSearchUsersResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetSearchUsersResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetSearchUsersResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetSearchUsersResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetSearchUsersResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetSearchUsersResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetSearchUsersResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetSearchUsersResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetSearchUsersResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetSearchUsersResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetSearchUsersResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetSearchUsersResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetSearchUsersResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetSearchUsersResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetSearchUsersResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetSearchUsersResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetSearchUsersResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetSearchUsersResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetSearchUsersResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetSearchUsersResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetSearchUsersResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetTenantDailyUsagesResponse_1.cpp b/client/src/model/GetTenantDailyUsagesResponse_1.cpp new file mode 100644 index 0000000..e3794a7 --- /dev/null +++ b/client/src/model/GetTenantDailyUsagesResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTenantDailyUsagesResponse_1::GetTenantDailyUsagesResponse_1() +{ + m_StatusIsSet = false; + m_TenantDailyUsagesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetTenantDailyUsagesResponse_1::~GetTenantDailyUsagesResponse_1() +{ +} + +void GetTenantDailyUsagesResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetTenantDailyUsagesResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TenantDailyUsagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))] = ModelBase::toJson(m_TenantDailyUsages); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetTenantDailyUsagesResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setTenantDailyUsages; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantDailyUsages); + setTenantDailyUsages(refVal_setTenantDailyUsages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetTenantDailyUsagesResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TenantDailyUsagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages")), m_TenantDailyUsages)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetTenantDailyUsagesResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages")))) + { + std::vector> refVal_setTenantDailyUsages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))), refVal_setTenantDailyUsages ); + setTenantDailyUsages(refVal_setTenantDailyUsages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetTenantDailyUsagesResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetTenantDailyUsagesResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTenantDailyUsagesResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTenantDailyUsagesResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetTenantDailyUsagesResponse_1::getTenantDailyUsages() const +{ + return m_TenantDailyUsages; +} + + +void GetTenantDailyUsagesResponse_1::setTenantDailyUsages(const std::vector>& value) +{ + m_TenantDailyUsages = value; + m_TenantDailyUsagesIsSet = true; +} + +bool GetTenantDailyUsagesResponse_1::tenantDailyUsagesIsSet() const +{ + return m_TenantDailyUsagesIsSet; +} + +void GetTenantDailyUsagesResponse_1::unsetTenantDailyUsages() +{ + m_TenantDailyUsagesIsSet = false; +} +utility::string_t GetTenantDailyUsagesResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetTenantDailyUsagesResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetTenantDailyUsagesResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetTenantDailyUsagesResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetTenantDailyUsagesResponse_1::getCode() const +{ + return m_Code; +} + + +void GetTenantDailyUsagesResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetTenantDailyUsagesResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetTenantDailyUsagesResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetTenantDailyUsagesResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetTenantDailyUsagesResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetTenantDailyUsagesResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetTenantDailyUsagesResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetTenantDailyUsagesResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetTenantDailyUsagesResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetTenantDailyUsagesResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetTenantDailyUsagesResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetTenantDailyUsagesResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetTenantDailyUsagesResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetTenantDailyUsagesResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetTenantDailyUsagesResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetTenantDailyUsagesResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetTenantDailyUsagesResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetTenantDailyUsagesResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetTenantDailyUsagesResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetTenantDailyUsagesResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetTenantDailyUsagesResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetTenantDailyUsagesResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetTenantDailyUsagesResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetTenantPackageResponse_1.cpp b/client/src/model/GetTenantPackageResponse_1.cpp new file mode 100644 index 0000000..bf3ecba --- /dev/null +++ b/client/src/model/GetTenantPackageResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTenantPackageResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTenantPackageResponse_1::GetTenantPackageResponse_1() +{ + m_StatusIsSet = false; + m_TenantPackageIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetTenantPackageResponse_1::~GetTenantPackageResponse_1() +{ +} + +void GetTenantPackageResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetTenantPackageResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TenantPackageIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))] = ModelBase::toJson(m_TenantPackage); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetTenantPackageResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setTenantPackage; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantPackage); + setTenantPackage(refVal_setTenantPackage); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetTenantPackageResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TenantPackageIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantPackage")), m_TenantPackage)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetTenantPackageResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) + { + std::shared_ptr refVal_setTenantPackage; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))), refVal_setTenantPackage ); + setTenantPackage(refVal_setTenantPackage); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetTenantPackageResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetTenantPackageResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTenantPackageResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTenantPackageResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetTenantPackageResponse_1::getTenantPackage() const +{ + return m_TenantPackage; +} + + +void GetTenantPackageResponse_1::setTenantPackage(const std::shared_ptr& value) +{ + m_TenantPackage = value; + m_TenantPackageIsSet = true; +} + +bool GetTenantPackageResponse_1::tenantPackageIsSet() const +{ + return m_TenantPackageIsSet; +} + +void GetTenantPackageResponse_1::unsetTenantPackage() +{ + m_TenantPackageIsSet = false; +} +utility::string_t GetTenantPackageResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetTenantPackageResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetTenantPackageResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetTenantPackageResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetTenantPackageResponse_1::getCode() const +{ + return m_Code; +} + + +void GetTenantPackageResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetTenantPackageResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetTenantPackageResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetTenantPackageResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetTenantPackageResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetTenantPackageResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetTenantPackageResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetTenantPackageResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetTenantPackageResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetTenantPackageResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetTenantPackageResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetTenantPackageResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetTenantPackageResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetTenantPackageResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetTenantPackageResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetTenantPackageResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetTenantPackageResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetTenantPackageResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetTenantPackageResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetTenantPackageResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetTenantPackageResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetTenantPackageResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetTenantPackageResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetTenantPackagesResponse_1.cpp b/client/src/model/GetTenantPackagesResponse_1.cpp new file mode 100644 index 0000000..5d48f0a --- /dev/null +++ b/client/src/model/GetTenantPackagesResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTenantPackagesResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTenantPackagesResponse_1::GetTenantPackagesResponse_1() +{ + m_StatusIsSet = false; + m_TenantPackagesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetTenantPackagesResponse_1::~GetTenantPackagesResponse_1() +{ +} + +void GetTenantPackagesResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetTenantPackagesResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TenantPackagesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))] = ModelBase::toJson(m_TenantPackages); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetTenantPackagesResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantPackages")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setTenantPackages; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantPackages); + setTenantPackages(refVal_setTenantPackages); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetTenantPackagesResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TenantPackagesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantPackages")), m_TenantPackages)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetTenantPackagesResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackages")))) + { + std::vector> refVal_setTenantPackages; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))), refVal_setTenantPackages ); + setTenantPackages(refVal_setTenantPackages); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetTenantPackagesResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetTenantPackagesResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTenantPackagesResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTenantPackagesResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetTenantPackagesResponse_1::getTenantPackages() const +{ + return m_TenantPackages; +} + + +void GetTenantPackagesResponse_1::setTenantPackages(const std::vector>& value) +{ + m_TenantPackages = value; + m_TenantPackagesIsSet = true; +} + +bool GetTenantPackagesResponse_1::tenantPackagesIsSet() const +{ + return m_TenantPackagesIsSet; +} + +void GetTenantPackagesResponse_1::unsetTenantPackages() +{ + m_TenantPackagesIsSet = false; +} +utility::string_t GetTenantPackagesResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetTenantPackagesResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetTenantPackagesResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetTenantPackagesResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetTenantPackagesResponse_1::getCode() const +{ + return m_Code; +} + + +void GetTenantPackagesResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetTenantPackagesResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetTenantPackagesResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetTenantPackagesResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetTenantPackagesResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetTenantPackagesResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetTenantPackagesResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetTenantPackagesResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetTenantPackagesResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetTenantPackagesResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetTenantPackagesResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetTenantPackagesResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetTenantPackagesResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetTenantPackagesResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetTenantPackagesResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetTenantPackagesResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetTenantPackagesResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetTenantPackagesResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetTenantPackagesResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetTenantPackagesResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetTenantPackagesResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetTenantPackagesResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetTenantPackagesResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/Search_200_response.cpp b/client/src/model/GetTenantResponse_1.cpp similarity index 79% rename from client/src/model/Search_200_response.cpp rename to client/src/model/GetTenantResponse_1.cpp index 6439753..50b8776 100644 --- a/client/src/model/Search_200_response.cpp +++ b/client/src/model/GetTenantResponse_1.cpp @@ -11,21 +11,21 @@ -#include "FastCommentsClient/model/Search_200_response.h" +#include "FastCommentsClient/model/GetTenantResponse_1.h" namespace org { namespace openapitools { namespace client { namespace model { -Search_200_response::Search_200_response() +GetTenantResponse_1::GetTenantResponse_1() { - m_ImagesIsSet = false; m_StatusIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; + m_TenantIsSet = false; m_Reason = utility::conversions::to_string_t(""); m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; m_SecondaryCode = utility::conversions::to_string_t(""); m_SecondaryCodeIsSet = false; m_BannedUntil = 0L; @@ -37,38 +37,38 @@ Search_200_response::Search_200_response() m_CustomConfigIsSet = false; } -Search_200_response::~Search_200_response() +GetTenantResponse_1::~GetTenantResponse_1() { } -void Search_200_response::validate() +void GetTenantResponse_1::validate() { // TODO: implement validation } -web::json::value Search_200_response::toJson() const +web::json::value GetTenantResponse_1::toJson() const { web::json::value val = web::json::value::object(); - if(m_ImagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("images"))] = ModelBase::toJson(m_Images); - } if(m_StatusIsSet) { val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } - if(m_CodeIsSet) + if(m_TenantIsSet) { - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + val[utility::conversions::to_string_t(_XPLATSTR("tenant"))] = ModelBase::toJson(m_Tenant); } if(m_ReasonIsSet) { val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } if(m_SecondaryCodeIsSet) { @@ -98,20 +98,9 @@ web::json::value Search_200_response::toJson() const return val; } -bool Search_200_response::fromJson(const web::json::value& val) +bool GetTenantResponse_1::fromJson(const web::json::value& val) { bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("images")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("images"))); - if(!fieldValue.is_null()) - { - std::vector>> refVal_setImages; - ok &= ModelBase::fromJson(fieldValue, refVal_setImages); - setImages(refVal_setImages); - - } - } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); @@ -123,14 +112,14 @@ bool Search_200_response::fromJson(const web::json::value& val) } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenant")))) { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenant"))); if(!fieldValue.is_null()) { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); + std::shared_ptr refVal_setTenant; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenant); + setTenant(refVal_setTenant); } } @@ -145,6 +134,17 @@ bool Search_200_response::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) { const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); @@ -203,29 +203,29 @@ bool Search_200_response::fromJson(const web::json::value& val) return ok; } -void Search_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void GetTenantResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(m_ImagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("images")), m_Images)); - } if(m_StatusIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } - if(m_CodeIsSet) + if(m_TenantIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenant")), m_Tenant)); } if(m_ReasonIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } if(m_SecondaryCodeIsSet) { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); @@ -248,7 +248,7 @@ void Search_200_response::toMultipart(std::shared_ptr multipa } } -bool Search_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +bool GetTenantResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -257,23 +257,17 @@ bool Search_200_response::fromMultiPart(std::shared_ptr multi namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("images")))) - { - std::vector>> refVal_setImages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("images"))), refVal_setImages ); - setImages(refVal_setImages); - } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) { std::shared_ptr refVal_setStatus; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); setStatus(refVal_setStatus); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenant")))) { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); + std::shared_ptr refVal_setTenant; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenant"))), refVal_setTenant ); + setTenant(refVal_setTenant); } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) { @@ -281,6 +275,12 @@ bool Search_200_response::fromMultiPart(std::shared_ptr multi ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); setReason(refVal_setReason); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) { utility::string_t refVal_setSecondaryCode; @@ -315,190 +315,190 @@ bool Search_200_response::fromMultiPart(std::shared_ptr multi } -std::vector>> Search_200_response::getImages() const +std::shared_ptr GetTenantResponse_1::getStatus() const { - return m_Images; + return m_Status; } -void Search_200_response::setImages(const std::vector>>& value) +void GetTenantResponse_1::setStatus(const std::shared_ptr& value) { - m_Images = value; - m_ImagesIsSet = true; + m_Status = value; + m_StatusIsSet = true; } -bool Search_200_response::imagesIsSet() const +bool GetTenantResponse_1::statusIsSet() const { - return m_ImagesIsSet; + return m_StatusIsSet; } -void Search_200_response::unsetImages() +void GetTenantResponse_1::unsetStatus() { - m_ImagesIsSet = false; + m_StatusIsSet = false; } -std::shared_ptr Search_200_response::getStatus() const +std::shared_ptr GetTenantResponse_1::getTenant() const { - return m_Status; + return m_Tenant; } -void Search_200_response::setStatus(const std::shared_ptr& value) +void GetTenantResponse_1::setTenant(const std::shared_ptr& value) { - m_Status = value; - m_StatusIsSet = true; + m_Tenant = value; + m_TenantIsSet = true; } -bool Search_200_response::statusIsSet() const +bool GetTenantResponse_1::tenantIsSet() const { - return m_StatusIsSet; + return m_TenantIsSet; } -void Search_200_response::unsetStatus() +void GetTenantResponse_1::unsetTenant() { - m_StatusIsSet = false; + m_TenantIsSet = false; } -utility::string_t Search_200_response::getCode() const +utility::string_t GetTenantResponse_1::getReason() const { - return m_Code; + return m_Reason; } -void Search_200_response::setCode(const utility::string_t& value) +void GetTenantResponse_1::setReason(const utility::string_t& value) { - m_Code = value; - m_CodeIsSet = true; + m_Reason = value; + m_ReasonIsSet = true; } -bool Search_200_response::codeIsSet() const +bool GetTenantResponse_1::reasonIsSet() const { - return m_CodeIsSet; + return m_ReasonIsSet; } -void Search_200_response::unsetCode() +void GetTenantResponse_1::unsetReason() { - m_CodeIsSet = false; + m_ReasonIsSet = false; } -utility::string_t Search_200_response::getReason() const +utility::string_t GetTenantResponse_1::getCode() const { - return m_Reason; + return m_Code; } -void Search_200_response::setReason(const utility::string_t& value) +void GetTenantResponse_1::setCode(const utility::string_t& value) { - m_Reason = value; - m_ReasonIsSet = true; + m_Code = value; + m_CodeIsSet = true; } -bool Search_200_response::reasonIsSet() const +bool GetTenantResponse_1::codeIsSet() const { - return m_ReasonIsSet; + return m_CodeIsSet; } -void Search_200_response::unsetReason() +void GetTenantResponse_1::unsetCode() { - m_ReasonIsSet = false; + m_CodeIsSet = false; } -utility::string_t Search_200_response::getSecondaryCode() const +utility::string_t GetTenantResponse_1::getSecondaryCode() const { return m_SecondaryCode; } -void Search_200_response::setSecondaryCode(const utility::string_t& value) +void GetTenantResponse_1::setSecondaryCode(const utility::string_t& value) { m_SecondaryCode = value; m_SecondaryCodeIsSet = true; } -bool Search_200_response::secondaryCodeIsSet() const +bool GetTenantResponse_1::secondaryCodeIsSet() const { return m_SecondaryCodeIsSet; } -void Search_200_response::unsetSecondaryCode() +void GetTenantResponse_1::unsetSecondaryCode() { m_SecondaryCodeIsSet = false; } -int64_t Search_200_response::getBannedUntil() const +int64_t GetTenantResponse_1::getBannedUntil() const { return m_BannedUntil; } -void Search_200_response::setBannedUntil(int64_t value) +void GetTenantResponse_1::setBannedUntil(int64_t value) { m_BannedUntil = value; m_BannedUntilIsSet = true; } -bool Search_200_response::bannedUntilIsSet() const +bool GetTenantResponse_1::bannedUntilIsSet() const { return m_BannedUntilIsSet; } -void Search_200_response::unsetBannedUntil() +void GetTenantResponse_1::unsetBannedUntil() { m_BannedUntilIsSet = false; } -int32_t Search_200_response::getMaxCharacterLength() const +int32_t GetTenantResponse_1::getMaxCharacterLength() const { return m_MaxCharacterLength; } -void Search_200_response::setMaxCharacterLength(int32_t value) +void GetTenantResponse_1::setMaxCharacterLength(int32_t value) { m_MaxCharacterLength = value; m_MaxCharacterLengthIsSet = true; } -bool Search_200_response::maxCharacterLengthIsSet() const +bool GetTenantResponse_1::maxCharacterLengthIsSet() const { return m_MaxCharacterLengthIsSet; } -void Search_200_response::unsetMaxCharacterLength() +void GetTenantResponse_1::unsetMaxCharacterLength() { m_MaxCharacterLengthIsSet = false; } -utility::string_t Search_200_response::getTranslatedError() const +utility::string_t GetTenantResponse_1::getTranslatedError() const { return m_TranslatedError; } -void Search_200_response::setTranslatedError(const utility::string_t& value) +void GetTenantResponse_1::setTranslatedError(const utility::string_t& value) { m_TranslatedError = value; m_TranslatedErrorIsSet = true; } -bool Search_200_response::translatedErrorIsSet() const +bool GetTenantResponse_1::translatedErrorIsSet() const { return m_TranslatedErrorIsSet; } -void Search_200_response::unsetTranslatedError() +void GetTenantResponse_1::unsetTranslatedError() { m_TranslatedErrorIsSet = false; } -std::shared_ptr Search_200_response::getCustomConfig() const +std::shared_ptr GetTenantResponse_1::getCustomConfig() const { return m_CustomConfig; } -void Search_200_response::setCustomConfig(const std::shared_ptr& value) +void GetTenantResponse_1::setCustomConfig(const std::shared_ptr& value) { m_CustomConfig = value; m_CustomConfigIsSet = true; } -bool Search_200_response::customConfigIsSet() const +bool GetTenantResponse_1::customConfigIsSet() const { return m_CustomConfigIsSet; } -void Search_200_response::unsetCustomConfig() +void GetTenantResponse_1::unsetCustomConfig() { m_CustomConfigIsSet = false; } diff --git a/client/src/model/GetTenantUserResponse_1.cpp b/client/src/model/GetTenantUserResponse_1.cpp new file mode 100644 index 0000000..d02509a --- /dev/null +++ b/client/src/model/GetTenantUserResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTenantUserResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTenantUserResponse_1::GetTenantUserResponse_1() +{ + m_StatusIsSet = false; + m_TenantUserIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetTenantUserResponse_1::~GetTenantUserResponse_1() +{ +} + +void GetTenantUserResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetTenantUserResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TenantUserIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantUser"))] = ModelBase::toJson(m_TenantUser); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetTenantUserResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setTenantUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantUser); + setTenantUser(refVal_setTenantUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetTenantUserResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TenantUserIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantUser")), m_TenantUser)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetTenantUserResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) + { + std::shared_ptr refVal_setTenantUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))), refVal_setTenantUser ); + setTenantUser(refVal_setTenantUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetTenantUserResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetTenantUserResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTenantUserResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTenantUserResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetTenantUserResponse_1::getTenantUser() const +{ + return m_TenantUser; +} + + +void GetTenantUserResponse_1::setTenantUser(const std::shared_ptr& value) +{ + m_TenantUser = value; + m_TenantUserIsSet = true; +} + +bool GetTenantUserResponse_1::tenantUserIsSet() const +{ + return m_TenantUserIsSet; +} + +void GetTenantUserResponse_1::unsetTenantUser() +{ + m_TenantUserIsSet = false; +} +utility::string_t GetTenantUserResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetTenantUserResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetTenantUserResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetTenantUserResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetTenantUserResponse_1::getCode() const +{ + return m_Code; +} + + +void GetTenantUserResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetTenantUserResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetTenantUserResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetTenantUserResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetTenantUserResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetTenantUserResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetTenantUserResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetTenantUserResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetTenantUserResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetTenantUserResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetTenantUserResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetTenantUserResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetTenantUserResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetTenantUserResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetTenantUserResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetTenantUserResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetTenantUserResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetTenantUserResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetTenantUserResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetTenantUserResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetTenantUserResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetTenantUserResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetTenantUserResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetTenantUsersResponse_1.cpp b/client/src/model/GetTenantUsersResponse_1.cpp new file mode 100644 index 0000000..37562c8 --- /dev/null +++ b/client/src/model/GetTenantUsersResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTenantUsersResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTenantUsersResponse_1::GetTenantUsersResponse_1() +{ + m_StatusIsSet = false; + m_TenantUsersIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetTenantUsersResponse_1::~GetTenantUsersResponse_1() +{ +} + +void GetTenantUsersResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetTenantUsersResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TenantUsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))] = ModelBase::toJson(m_TenantUsers); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetTenantUsersResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantUsers")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setTenantUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenantUsers); + setTenantUsers(refVal_setTenantUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetTenantUsersResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TenantUsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantUsers")), m_TenantUsers)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetTenantUsersResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantUsers")))) + { + std::vector> refVal_setTenantUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))), refVal_setTenantUsers ); + setTenantUsers(refVal_setTenantUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetTenantUsersResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetTenantUsersResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTenantUsersResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTenantUsersResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetTenantUsersResponse_1::getTenantUsers() const +{ + return m_TenantUsers; +} + + +void GetTenantUsersResponse_1::setTenantUsers(const std::vector>& value) +{ + m_TenantUsers = value; + m_TenantUsersIsSet = true; +} + +bool GetTenantUsersResponse_1::tenantUsersIsSet() const +{ + return m_TenantUsersIsSet; +} + +void GetTenantUsersResponse_1::unsetTenantUsers() +{ + m_TenantUsersIsSet = false; +} +utility::string_t GetTenantUsersResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetTenantUsersResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetTenantUsersResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetTenantUsersResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetTenantUsersResponse_1::getCode() const +{ + return m_Code; +} + + +void GetTenantUsersResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetTenantUsersResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetTenantUsersResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetTenantUsersResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetTenantUsersResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetTenantUsersResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetTenantUsersResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetTenantUsersResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetTenantUsersResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetTenantUsersResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetTenantUsersResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetTenantUsersResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetTenantUsersResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetTenantUsersResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetTenantUsersResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetTenantUsersResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetTenantUsersResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetTenantUsersResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetTenantUsersResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetTenantUsersResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetTenantUsersResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetTenantUsersResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetTenantUsersResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetTenantsResponse_1.cpp b/client/src/model/GetTenantsResponse_1.cpp new file mode 100644 index 0000000..21d6fc0 --- /dev/null +++ b/client/src/model/GetTenantsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTenantsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTenantsResponse_1::GetTenantsResponse_1() +{ + m_StatusIsSet = false; + m_TenantsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetTenantsResponse_1::~GetTenantsResponse_1() +{ +} + +void GetTenantsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetTenantsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TenantsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tenants"))] = ModelBase::toJson(m_Tenants); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetTenantsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenants")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenants"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setTenants; + ok &= ModelBase::fromJson(fieldValue, refVal_setTenants); + setTenants(refVal_setTenants); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetTenantsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TenantsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenants")), m_Tenants)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetTenantsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenants")))) + { + std::vector> refVal_setTenants; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenants"))), refVal_setTenants ); + setTenants(refVal_setTenants); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetTenantsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetTenantsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTenantsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTenantsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetTenantsResponse_1::getTenants() const +{ + return m_Tenants; +} + + +void GetTenantsResponse_1::setTenants(const std::vector>& value) +{ + m_Tenants = value; + m_TenantsIsSet = true; +} + +bool GetTenantsResponse_1::tenantsIsSet() const +{ + return m_TenantsIsSet; +} + +void GetTenantsResponse_1::unsetTenants() +{ + m_TenantsIsSet = false; +} +utility::string_t GetTenantsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetTenantsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetTenantsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetTenantsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetTenantsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetTenantsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetTenantsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetTenantsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetTenantsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetTenantsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetTenantsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetTenantsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetTenantsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetTenantsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetTenantsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetTenantsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetTenantsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetTenantsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetTenantsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetTenantsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetTenantsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetTenantsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetTenantsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetTenantsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetTenantsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetTenantsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetTenantsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetTenantsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetTicketResponse_1.cpp b/client/src/model/GetTicketResponse_1.cpp new file mode 100644 index 0000000..ea7130f --- /dev/null +++ b/client/src/model/GetTicketResponse_1.cpp @@ -0,0 +1,558 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTicketResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTicketResponse_1::GetTicketResponse_1() +{ + m_StatusIsSet = false; + m_TicketIsSet = false; + m_AvailableStatesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetTicketResponse_1::~GetTicketResponse_1() +{ +} + +void GetTicketResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetTicketResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TicketIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); + } + if(m_AvailableStatesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("availableStates"))] = ModelBase::toJson(m_AvailableStates); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetTicketResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ticket")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ticket"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setTicket; + ok &= ModelBase::fromJson(fieldValue, refVal_setTicket); + setTicket(refVal_setTicket); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("availableStates")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("availableStates"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setAvailableStates; + ok &= ModelBase::fromJson(fieldValue, refVal_setAvailableStates); + setAvailableStates(refVal_setAvailableStates); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetTicketResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TicketIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ticket")), m_Ticket)); + } + if(m_AvailableStatesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("availableStates")), m_AvailableStates)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetTicketResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ticket")))) + { + std::shared_ptr refVal_setTicket; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ticket"))), refVal_setTicket ); + setTicket(refVal_setTicket); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("availableStates")))) + { + std::vector refVal_setAvailableStates; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("availableStates"))), refVal_setAvailableStates ); + setAvailableStates(refVal_setAvailableStates); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetTicketResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetTicketResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTicketResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTicketResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetTicketResponse_1::getTicket() const +{ + return m_Ticket; +} + + +void GetTicketResponse_1::setTicket(const std::shared_ptr& value) +{ + m_Ticket = value; + m_TicketIsSet = true; +} + +bool GetTicketResponse_1::ticketIsSet() const +{ + return m_TicketIsSet; +} + +void GetTicketResponse_1::unsetTicket() +{ + m_TicketIsSet = false; +} +std::vector GetTicketResponse_1::getAvailableStates() const +{ + return m_AvailableStates; +} + +void GetTicketResponse_1::setAvailableStates(std::vector value) +{ + m_AvailableStates = value; + m_AvailableStatesIsSet = true; +} + +bool GetTicketResponse_1::availableStatesIsSet() const +{ + return m_AvailableStatesIsSet; +} + +void GetTicketResponse_1::unsetAvailableStates() +{ + m_AvailableStatesIsSet = false; +} +utility::string_t GetTicketResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetTicketResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetTicketResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetTicketResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetTicketResponse_1::getCode() const +{ + return m_Code; +} + + +void GetTicketResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetTicketResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetTicketResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetTicketResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetTicketResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetTicketResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetTicketResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetTicketResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetTicketResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetTicketResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetTicketResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetTicketResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetTicketResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetTicketResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetTicketResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetTicketResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetTicketResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetTicketResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetTicketResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetTicketResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetTicketResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetTicketResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetTicketResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetTicketsResponse_1.cpp b/client/src/model/GetTicketsResponse_1.cpp new file mode 100644 index 0000000..93eb75f --- /dev/null +++ b/client/src/model/GetTicketsResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTicketsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTicketsResponse_1::GetTicketsResponse_1() +{ + m_StatusIsSet = false; + m_TicketsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetTicketsResponse_1::~GetTicketsResponse_1() +{ +} + +void GetTicketsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetTicketsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TicketsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("tickets"))] = ModelBase::toJson(m_Tickets); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetTicketsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tickets")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tickets"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setTickets; + ok &= ModelBase::fromJson(fieldValue, refVal_setTickets); + setTickets(refVal_setTickets); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetTicketsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TicketsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tickets")), m_Tickets)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetTicketsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tickets")))) + { + std::vector> refVal_setTickets; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tickets"))), refVal_setTickets ); + setTickets(refVal_setTickets); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetTicketsResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetTicketsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTicketsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTicketsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetTicketsResponse_1::getTickets() const +{ + return m_Tickets; +} + + +void GetTicketsResponse_1::setTickets(const std::vector>& value) +{ + m_Tickets = value; + m_TicketsIsSet = true; +} + +bool GetTicketsResponse_1::ticketsIsSet() const +{ + return m_TicketsIsSet; +} + +void GetTicketsResponse_1::unsetTickets() +{ + m_TicketsIsSet = false; +} +utility::string_t GetTicketsResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetTicketsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetTicketsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetTicketsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetTicketsResponse_1::getCode() const +{ + return m_Code; +} + + +void GetTicketsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetTicketsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetTicketsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetTicketsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetTicketsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetTicketsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetTicketsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetTicketsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetTicketsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetTicketsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetTicketsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetTicketsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetTicketsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetTicketsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetTicketsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetTicketsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetTicketsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetTicketsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetTicketsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetTicketsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetTicketsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetTicketsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetTicketsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetTranslations_200_response.cpp b/client/src/model/GetTranslationsResponse_1.cpp similarity index 81% rename from client/src/model/GetTranslations_200_response.cpp rename to client/src/model/GetTranslationsResponse_1.cpp index d486d38..ebc44aa 100644 --- a/client/src/model/GetTranslations_200_response.cpp +++ b/client/src/model/GetTranslationsResponse_1.cpp @@ -11,14 +11,14 @@ -#include "FastCommentsClient/model/GetTranslations_200_response.h" +#include "FastCommentsClient/model/GetTranslationsResponse_1.h" namespace org { namespace openapitools { namespace client { namespace model { -GetTranslations_200_response::GetTranslations_200_response() +GetTranslationsResponse_1::GetTranslationsResponse_1() { m_TranslationsIsSet = false; m_StatusIsSet = false; @@ -37,16 +37,16 @@ GetTranslations_200_response::GetTranslations_200_response() m_CustomConfigIsSet = false; } -GetTranslations_200_response::~GetTranslations_200_response() +GetTranslationsResponse_1::~GetTranslationsResponse_1() { } -void GetTranslations_200_response::validate() +void GetTranslationsResponse_1::validate() { // TODO: implement validation } -web::json::value GetTranslations_200_response::toJson() const +web::json::value GetTranslationsResponse_1::toJson() const { web::json::value val = web::json::value::object(); if(m_TranslationsIsSet) @@ -98,7 +98,7 @@ web::json::value GetTranslations_200_response::toJson() const return val; } -bool GetTranslations_200_response::fromJson(const web::json::value& val) +bool GetTranslationsResponse_1::fromJson(const web::json::value& val) { bool ok = true; if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translations")))) @@ -203,7 +203,7 @@ bool GetTranslations_200_response::fromJson(const web::json::value& val) return ok; } -void GetTranslations_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +void GetTranslationsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const { utility::string_t namePrefix = prefix; if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) @@ -248,7 +248,7 @@ void GetTranslations_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) +bool GetTranslationsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) { bool ok = true; utility::string_t namePrefix = prefix; @@ -315,190 +315,190 @@ bool GetTranslations_200_response::fromMultiPart(std::shared_ptr GetTranslations_200_response::getTranslations() const +std::map GetTranslationsResponse_1::getTranslations() const { return m_Translations; } -void GetTranslations_200_response::setTranslations(const std::map& value) +void GetTranslationsResponse_1::setTranslations(const std::map& value) { m_Translations = value; m_TranslationsIsSet = true; } -bool GetTranslations_200_response::translationsIsSet() const +bool GetTranslationsResponse_1::translationsIsSet() const { return m_TranslationsIsSet; } -void GetTranslations_200_response::unsetTranslations() +void GetTranslationsResponse_1::unsetTranslations() { m_TranslationsIsSet = false; } -std::shared_ptr GetTranslations_200_response::getStatus() const +std::shared_ptr GetTranslationsResponse_1::getStatus() const { return m_Status; } -void GetTranslations_200_response::setStatus(const std::shared_ptr& value) +void GetTranslationsResponse_1::setStatus(const std::shared_ptr& value) { m_Status = value; m_StatusIsSet = true; } -bool GetTranslations_200_response::statusIsSet() const +bool GetTranslationsResponse_1::statusIsSet() const { return m_StatusIsSet; } -void GetTranslations_200_response::unsetStatus() +void GetTranslationsResponse_1::unsetStatus() { m_StatusIsSet = false; } -utility::string_t GetTranslations_200_response::getReason() const +utility::string_t GetTranslationsResponse_1::getReason() const { return m_Reason; } -void GetTranslations_200_response::setReason(const utility::string_t& value) +void GetTranslationsResponse_1::setReason(const utility::string_t& value) { m_Reason = value; m_ReasonIsSet = true; } -bool GetTranslations_200_response::reasonIsSet() const +bool GetTranslationsResponse_1::reasonIsSet() const { return m_ReasonIsSet; } -void GetTranslations_200_response::unsetReason() +void GetTranslationsResponse_1::unsetReason() { m_ReasonIsSet = false; } -utility::string_t GetTranslations_200_response::getCode() const +utility::string_t GetTranslationsResponse_1::getCode() const { return m_Code; } -void GetTranslations_200_response::setCode(const utility::string_t& value) +void GetTranslationsResponse_1::setCode(const utility::string_t& value) { m_Code = value; m_CodeIsSet = true; } -bool GetTranslations_200_response::codeIsSet() const +bool GetTranslationsResponse_1::codeIsSet() const { return m_CodeIsSet; } -void GetTranslations_200_response::unsetCode() +void GetTranslationsResponse_1::unsetCode() { m_CodeIsSet = false; } -utility::string_t GetTranslations_200_response::getSecondaryCode() const +utility::string_t GetTranslationsResponse_1::getSecondaryCode() const { return m_SecondaryCode; } -void GetTranslations_200_response::setSecondaryCode(const utility::string_t& value) +void GetTranslationsResponse_1::setSecondaryCode(const utility::string_t& value) { m_SecondaryCode = value; m_SecondaryCodeIsSet = true; } -bool GetTranslations_200_response::secondaryCodeIsSet() const +bool GetTranslationsResponse_1::secondaryCodeIsSet() const { return m_SecondaryCodeIsSet; } -void GetTranslations_200_response::unsetSecondaryCode() +void GetTranslationsResponse_1::unsetSecondaryCode() { m_SecondaryCodeIsSet = false; } -int64_t GetTranslations_200_response::getBannedUntil() const +int64_t GetTranslationsResponse_1::getBannedUntil() const { return m_BannedUntil; } -void GetTranslations_200_response::setBannedUntil(int64_t value) +void GetTranslationsResponse_1::setBannedUntil(int64_t value) { m_BannedUntil = value; m_BannedUntilIsSet = true; } -bool GetTranslations_200_response::bannedUntilIsSet() const +bool GetTranslationsResponse_1::bannedUntilIsSet() const { return m_BannedUntilIsSet; } -void GetTranslations_200_response::unsetBannedUntil() +void GetTranslationsResponse_1::unsetBannedUntil() { m_BannedUntilIsSet = false; } -int32_t GetTranslations_200_response::getMaxCharacterLength() const +int32_t GetTranslationsResponse_1::getMaxCharacterLength() const { return m_MaxCharacterLength; } -void GetTranslations_200_response::setMaxCharacterLength(int32_t value) +void GetTranslationsResponse_1::setMaxCharacterLength(int32_t value) { m_MaxCharacterLength = value; m_MaxCharacterLengthIsSet = true; } -bool GetTranslations_200_response::maxCharacterLengthIsSet() const +bool GetTranslationsResponse_1::maxCharacterLengthIsSet() const { return m_MaxCharacterLengthIsSet; } -void GetTranslations_200_response::unsetMaxCharacterLength() +void GetTranslationsResponse_1::unsetMaxCharacterLength() { m_MaxCharacterLengthIsSet = false; } -utility::string_t GetTranslations_200_response::getTranslatedError() const +utility::string_t GetTranslationsResponse_1::getTranslatedError() const { return m_TranslatedError; } -void GetTranslations_200_response::setTranslatedError(const utility::string_t& value) +void GetTranslationsResponse_1::setTranslatedError(const utility::string_t& value) { m_TranslatedError = value; m_TranslatedErrorIsSet = true; } -bool GetTranslations_200_response::translatedErrorIsSet() const +bool GetTranslationsResponse_1::translatedErrorIsSet() const { return m_TranslatedErrorIsSet; } -void GetTranslations_200_response::unsetTranslatedError() +void GetTranslationsResponse_1::unsetTranslatedError() { m_TranslatedErrorIsSet = false; } -std::shared_ptr GetTranslations_200_response::getCustomConfig() const +std::shared_ptr GetTranslationsResponse_1::getCustomConfig() const { return m_CustomConfig; } -void GetTranslations_200_response::setCustomConfig(const std::shared_ptr& value) +void GetTranslationsResponse_1::setCustomConfig(const std::shared_ptr& value) { m_CustomConfig = value; m_CustomConfigIsSet = true; } -bool GetTranslations_200_response::customConfigIsSet() const +bool GetTranslationsResponse_1::customConfigIsSet() const { return m_CustomConfigIsSet; } -void GetTranslations_200_response::unsetCustomConfig() +void GetTranslationsResponse_1::unsetCustomConfig() { m_CustomConfigIsSet = false; } diff --git a/client/src/model/GetTrending_200_response.cpp b/client/src/model/GetTrending_200_response.cpp deleted file mode 100644 index 23e966a..0000000 --- a/client/src/model/GetTrending_200_response.cpp +++ /dev/null @@ -1,220 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTrending_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTrending_200_response::GetTrending_200_response() -{ - m_ImagesIsSet = false; - m_StatusIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; -} - -GetTrending_200_response::~GetTrending_200_response() -{ -} - -void GetTrending_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTrending_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_ImagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("images"))] = ModelBase::toJson(m_Images); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - - return val; -} - -bool GetTrending_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("images")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("images"))); - if(!fieldValue.is_null()) - { - std::vector>> refVal_setImages; - ok &= ModelBase::fromJson(fieldValue, refVal_setImages); - setImages(refVal_setImages); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - return ok; -} - -void GetTrending_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_ImagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("images")), m_Images)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } -} - -bool GetTrending_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("images")))) - { - std::vector>> refVal_setImages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("images"))), refVal_setImages ); - setImages(refVal_setImages); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - return ok; -} - - -std::vector>> GetTrending_200_response::getImages() const -{ - return m_Images; -} - - -void GetTrending_200_response::setImages(const std::vector>>& value) -{ - m_Images = value; - m_ImagesIsSet = true; -} - -bool GetTrending_200_response::imagesIsSet() const -{ - return m_ImagesIsSet; -} - -void GetTrending_200_response::unsetImages() -{ - m_ImagesIsSet = false; -} -std::shared_ptr GetTrending_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTrending_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTrending_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTrending_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetTrending_200_response::getCode() const -{ - return m_Code; -} - - -void GetTrending_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTrending_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTrending_200_response::unsetCode() -{ - m_CodeIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTrustFactorResponse.cpp b/client/src/model/GetTrustFactorResponse.cpp new file mode 100644 index 0000000..d492056 --- /dev/null +++ b/client/src/model/GetTrustFactorResponse.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetTrustFactorResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetTrustFactorResponse::GetTrustFactorResponse() +{ + m_ManualTrustFactor = 0.0; + m_ManualTrustFactorIsSet = false; + m_AutoTrustFactor = 0.0; + m_AutoTrustFactorIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetTrustFactorResponse::~GetTrustFactorResponse() +{ +} + +void GetTrustFactorResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetTrustFactorResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ManualTrustFactorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))] = ModelBase::toJson(m_ManualTrustFactor); + } + if(m_AutoTrustFactorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))] = ModelBase::toJson(m_AutoTrustFactor); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetTrustFactorResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))); + if(!fieldValue.is_null()) + { + double refVal_setManualTrustFactor; + ok &= ModelBase::fromJson(fieldValue, refVal_setManualTrustFactor); + setManualTrustFactor(refVal_setManualTrustFactor); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))); + if(!fieldValue.is_null()) + { + double refVal_setAutoTrustFactor; + ok &= ModelBase::fromJson(fieldValue, refVal_setAutoTrustFactor); + setAutoTrustFactor(refVal_setAutoTrustFactor); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetTrustFactorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ManualTrustFactorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor")), m_ManualTrustFactor)); + } + if(m_AutoTrustFactorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor")), m_AutoTrustFactor)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetTrustFactorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor")))) + { + double refVal_setManualTrustFactor; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))), refVal_setManualTrustFactor ); + setManualTrustFactor(refVal_setManualTrustFactor); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor")))) + { + double refVal_setAutoTrustFactor; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))), refVal_setAutoTrustFactor ); + setAutoTrustFactor(refVal_setAutoTrustFactor); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +double GetTrustFactorResponse::getManualTrustFactor() const +{ + return m_ManualTrustFactor; +} + +void GetTrustFactorResponse::setManualTrustFactor(double value) +{ + m_ManualTrustFactor = value; + m_ManualTrustFactorIsSet = true; +} + +bool GetTrustFactorResponse::manualTrustFactorIsSet() const +{ + return m_ManualTrustFactorIsSet; +} + +void GetTrustFactorResponse::unsetManualTrustFactor() +{ + m_ManualTrustFactorIsSet = false; +} +double GetTrustFactorResponse::getAutoTrustFactor() const +{ + return m_AutoTrustFactor; +} + +void GetTrustFactorResponse::setAutoTrustFactor(double value) +{ + m_AutoTrustFactor = value; + m_AutoTrustFactorIsSet = true; +} + +bool GetTrustFactorResponse::autoTrustFactorIsSet() const +{ + return m_AutoTrustFactorIsSet; +} + +void GetTrustFactorResponse::unsetAutoTrustFactor() +{ + m_AutoTrustFactorIsSet = false; +} +std::shared_ptr GetTrustFactorResponse::getStatus() const +{ + return m_Status; +} + + +void GetTrustFactorResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetTrustFactorResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetTrustFactorResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetTrustFactorResponse::getReason() const +{ + return m_Reason; +} + + +void GetTrustFactorResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetTrustFactorResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetTrustFactorResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetTrustFactorResponse::getCode() const +{ + return m_Code; +} + + +void GetTrustFactorResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetTrustFactorResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetTrustFactorResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetTrustFactorResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetTrustFactorResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetTrustFactorResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetTrustFactorResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetTrustFactorResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetTrustFactorResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetTrustFactorResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetTrustFactorResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetTrustFactorResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetTrustFactorResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetTrustFactorResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetTrustFactorResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetTrustFactorResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetTrustFactorResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetTrustFactorResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetTrustFactorResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetTrustFactorResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetTrustFactorResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetTrustFactorResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetTrustFactorResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserBadgeProgressByIdResponse.cpp b/client/src/model/GetUserBadgeProgressByIdResponse.cpp new file mode 100644 index 0000000..fe0b2cc --- /dev/null +++ b/client/src/model/GetUserBadgeProgressByIdResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserBadgeProgressByIdResponse::GetUserBadgeProgressByIdResponse() +{ + m_StatusIsSet = false; + m_UserBadgeProgressIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserBadgeProgressByIdResponse::~GetUserBadgeProgressByIdResponse() +{ +} + +void GetUserBadgeProgressByIdResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserBadgeProgressByIdResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_UserBadgeProgressIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))] = ModelBase::toJson(m_UserBadgeProgress); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserBadgeProgressByIdResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUserBadgeProgress; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadgeProgress); + setUserBadgeProgress(refVal_setUserBadgeProgress); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserBadgeProgressByIdResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_UserBadgeProgressIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")), m_UserBadgeProgress)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserBadgeProgressByIdResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")))) + { + std::shared_ptr refVal_setUserBadgeProgress; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))), refVal_setUserBadgeProgress ); + setUserBadgeProgress(refVal_setUserBadgeProgress); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserBadgeProgressByIdResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserBadgeProgressByIdResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserBadgeProgressByIdResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserBadgeProgressByIdResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetUserBadgeProgressByIdResponse::getUserBadgeProgress() const +{ + return m_UserBadgeProgress; +} + + +void GetUserBadgeProgressByIdResponse::setUserBadgeProgress(const std::shared_ptr& value) +{ + m_UserBadgeProgress = value; + m_UserBadgeProgressIsSet = true; +} + +bool GetUserBadgeProgressByIdResponse::userBadgeProgressIsSet() const +{ + return m_UserBadgeProgressIsSet; +} + +void GetUserBadgeProgressByIdResponse::unsetUserBadgeProgress() +{ + m_UserBadgeProgressIsSet = false; +} +utility::string_t GetUserBadgeProgressByIdResponse::getReason() const +{ + return m_Reason; +} + + +void GetUserBadgeProgressByIdResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserBadgeProgressByIdResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserBadgeProgressByIdResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserBadgeProgressByIdResponse::getCode() const +{ + return m_Code; +} + + +void GetUserBadgeProgressByIdResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserBadgeProgressByIdResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserBadgeProgressByIdResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserBadgeProgressByIdResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserBadgeProgressByIdResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserBadgeProgressByIdResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserBadgeProgressByIdResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserBadgeProgressByIdResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserBadgeProgressByIdResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserBadgeProgressByIdResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserBadgeProgressByIdResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserBadgeProgressByIdResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserBadgeProgressByIdResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserBadgeProgressByIdResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserBadgeProgressByIdResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserBadgeProgressByIdResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserBadgeProgressByIdResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserBadgeProgressByIdResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserBadgeProgressByIdResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserBadgeProgressByIdResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserBadgeProgressByIdResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserBadgeProgressByIdResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserBadgeProgressByIdResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserBadgeProgressByUserIdResponse.cpp b/client/src/model/GetUserBadgeProgressByUserIdResponse.cpp new file mode 100644 index 0000000..2462756 --- /dev/null +++ b/client/src/model/GetUserBadgeProgressByUserIdResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserBadgeProgressByUserIdResponse::GetUserBadgeProgressByUserIdResponse() +{ + m_StatusIsSet = false; + m_UserBadgeProgressIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserBadgeProgressByUserIdResponse::~GetUserBadgeProgressByUserIdResponse() +{ +} + +void GetUserBadgeProgressByUserIdResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserBadgeProgressByUserIdResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_UserBadgeProgressIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))] = ModelBase::toJson(m_UserBadgeProgress); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserBadgeProgressByUserIdResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUserBadgeProgress; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadgeProgress); + setUserBadgeProgress(refVal_setUserBadgeProgress); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserBadgeProgressByUserIdResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_UserBadgeProgressIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")), m_UserBadgeProgress)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserBadgeProgressByUserIdResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")))) + { + std::shared_ptr refVal_setUserBadgeProgress; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))), refVal_setUserBadgeProgress ); + setUserBadgeProgress(refVal_setUserBadgeProgress); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserBadgeProgressByUserIdResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserBadgeProgressByUserIdResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserBadgeProgressByUserIdResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserBadgeProgressByUserIdResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetUserBadgeProgressByUserIdResponse::getUserBadgeProgress() const +{ + return m_UserBadgeProgress; +} + + +void GetUserBadgeProgressByUserIdResponse::setUserBadgeProgress(const std::shared_ptr& value) +{ + m_UserBadgeProgress = value; + m_UserBadgeProgressIsSet = true; +} + +bool GetUserBadgeProgressByUserIdResponse::userBadgeProgressIsSet() const +{ + return m_UserBadgeProgressIsSet; +} + +void GetUserBadgeProgressByUserIdResponse::unsetUserBadgeProgress() +{ + m_UserBadgeProgressIsSet = false; +} +utility::string_t GetUserBadgeProgressByUserIdResponse::getReason() const +{ + return m_Reason; +} + + +void GetUserBadgeProgressByUserIdResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserBadgeProgressByUserIdResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserBadgeProgressByUserIdResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserBadgeProgressByUserIdResponse::getCode() const +{ + return m_Code; +} + + +void GetUserBadgeProgressByUserIdResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserBadgeProgressByUserIdResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserBadgeProgressByUserIdResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserBadgeProgressByUserIdResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserBadgeProgressByUserIdResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserBadgeProgressByUserIdResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserBadgeProgressByUserIdResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserBadgeProgressByUserIdResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserBadgeProgressByUserIdResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserBadgeProgressByUserIdResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserBadgeProgressByUserIdResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserBadgeProgressByUserIdResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserBadgeProgressByUserIdResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserBadgeProgressByUserIdResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserBadgeProgressByUserIdResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserBadgeProgressByUserIdResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserBadgeProgressByUserIdResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserBadgeProgressByUserIdResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserBadgeProgressByUserIdResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserBadgeProgressByUserIdResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserBadgeProgressByUserIdResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserBadgeProgressByUserIdResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserBadgeProgressByUserIdResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserBadgeProgressListResponse.cpp b/client/src/model/GetUserBadgeProgressListResponse.cpp new file mode 100644 index 0000000..8eccde7 --- /dev/null +++ b/client/src/model/GetUserBadgeProgressListResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserBadgeProgressListResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserBadgeProgressListResponse::GetUserBadgeProgressListResponse() +{ + m_StatusIsSet = false; + m_UserBadgeProgressesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserBadgeProgressListResponse::~GetUserBadgeProgressListResponse() +{ +} + +void GetUserBadgeProgressListResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserBadgeProgressListResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_UserBadgeProgressesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))] = ModelBase::toJson(m_UserBadgeProgresses); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserBadgeProgressListResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUserBadgeProgresses; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadgeProgresses); + setUserBadgeProgresses(refVal_setUserBadgeProgresses); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserBadgeProgressListResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_UserBadgeProgressesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses")), m_UserBadgeProgresses)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserBadgeProgressListResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses")))) + { + std::vector> refVal_setUserBadgeProgresses; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))), refVal_setUserBadgeProgresses ); + setUserBadgeProgresses(refVal_setUserBadgeProgresses); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserBadgeProgressListResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserBadgeProgressListResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserBadgeProgressListResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserBadgeProgressListResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetUserBadgeProgressListResponse::getUserBadgeProgresses() const +{ + return m_UserBadgeProgresses; +} + + +void GetUserBadgeProgressListResponse::setUserBadgeProgresses(const std::vector>& value) +{ + m_UserBadgeProgresses = value; + m_UserBadgeProgressesIsSet = true; +} + +bool GetUserBadgeProgressListResponse::userBadgeProgressesIsSet() const +{ + return m_UserBadgeProgressesIsSet; +} + +void GetUserBadgeProgressListResponse::unsetUserBadgeProgresses() +{ + m_UserBadgeProgressesIsSet = false; +} +utility::string_t GetUserBadgeProgressListResponse::getReason() const +{ + return m_Reason; +} + + +void GetUserBadgeProgressListResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserBadgeProgressListResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserBadgeProgressListResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserBadgeProgressListResponse::getCode() const +{ + return m_Code; +} + + +void GetUserBadgeProgressListResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserBadgeProgressListResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserBadgeProgressListResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserBadgeProgressListResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserBadgeProgressListResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserBadgeProgressListResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserBadgeProgressListResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserBadgeProgressListResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserBadgeProgressListResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserBadgeProgressListResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserBadgeProgressListResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserBadgeProgressListResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserBadgeProgressListResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserBadgeProgressListResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserBadgeProgressListResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserBadgeProgressListResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserBadgeProgressListResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserBadgeProgressListResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserBadgeProgressListResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserBadgeProgressListResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserBadgeProgressListResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserBadgeProgressListResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserBadgeProgressListResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserBadgeResponse.cpp b/client/src/model/GetUserBadgeResponse.cpp new file mode 100644 index 0000000..2a4da04 --- /dev/null +++ b/client/src/model/GetUserBadgeResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserBadgeResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserBadgeResponse::GetUserBadgeResponse() +{ + m_StatusIsSet = false; + m_UserBadgeIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserBadgeResponse::~GetUserBadgeResponse() +{ +} + +void GetUserBadgeResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserBadgeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_UserBadgeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userBadge"))] = ModelBase::toJson(m_UserBadge); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserBadgeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadge"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUserBadge; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadge); + setUserBadge(refVal_setUserBadge); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_UserBadgeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadge")), m_UserBadge)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) + { + std::shared_ptr refVal_setUserBadge; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadge"))), refVal_setUserBadge ); + setUserBadge(refVal_setUserBadge); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserBadgeResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserBadgeResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserBadgeResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserBadgeResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetUserBadgeResponse::getUserBadge() const +{ + return m_UserBadge; +} + + +void GetUserBadgeResponse::setUserBadge(const std::shared_ptr& value) +{ + m_UserBadge = value; + m_UserBadgeIsSet = true; +} + +bool GetUserBadgeResponse::userBadgeIsSet() const +{ + return m_UserBadgeIsSet; +} + +void GetUserBadgeResponse::unsetUserBadge() +{ + m_UserBadgeIsSet = false; +} +utility::string_t GetUserBadgeResponse::getReason() const +{ + return m_Reason; +} + + +void GetUserBadgeResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserBadgeResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserBadgeResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserBadgeResponse::getCode() const +{ + return m_Code; +} + + +void GetUserBadgeResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserBadgeResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserBadgeResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserBadgeResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserBadgeResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserBadgeResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserBadgeResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserBadgeResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserBadgeResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserBadgeResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserBadgeResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserBadgeResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserBadgeResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserBadgeResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserBadgeResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserBadgeResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserBadgeResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserBadgeResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserBadgeResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserBadgeResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserBadgeResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserBadgeResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserBadgeResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserBadgesResponse.cpp b/client/src/model/GetUserBadgesResponse.cpp new file mode 100644 index 0000000..39ac783 --- /dev/null +++ b/client/src/model/GetUserBadgesResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserBadgesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserBadgesResponse::GetUserBadgesResponse() +{ + m_StatusIsSet = false; + m_UserBadgesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserBadgesResponse::~GetUserBadgesResponse() +{ +} + +void GetUserBadgesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserBadgesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_UserBadgesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userBadges"))] = ModelBase::toJson(m_UserBadges); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserBadgesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadges")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadges"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUserBadges; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadges); + setUserBadges(refVal_setUserBadges); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserBadgesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_UserBadgesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadges")), m_UserBadges)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserBadgesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadges")))) + { + std::vector> refVal_setUserBadges; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadges"))), refVal_setUserBadges ); + setUserBadges(refVal_setUserBadges); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserBadgesResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserBadgesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserBadgesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserBadgesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetUserBadgesResponse::getUserBadges() const +{ + return m_UserBadges; +} + + +void GetUserBadgesResponse::setUserBadges(const std::vector>& value) +{ + m_UserBadges = value; + m_UserBadgesIsSet = true; +} + +bool GetUserBadgesResponse::userBadgesIsSet() const +{ + return m_UserBadgesIsSet; +} + +void GetUserBadgesResponse::unsetUserBadges() +{ + m_UserBadgesIsSet = false; +} +utility::string_t GetUserBadgesResponse::getReason() const +{ + return m_Reason; +} + + +void GetUserBadgesResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserBadgesResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserBadgesResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserBadgesResponse::getCode() const +{ + return m_Code; +} + + +void GetUserBadgesResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserBadgesResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserBadgesResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserBadgesResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserBadgesResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserBadgesResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserBadgesResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserBadgesResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserBadgesResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserBadgesResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserBadgesResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserBadgesResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserBadgesResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserBadgesResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserBadgesResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserBadgesResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserBadgesResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserBadgesResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserBadgesResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserBadgesResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserBadgesResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserBadgesResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserBadgesResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserBanPreferenceResponse.cpp b/client/src/model/GetUserBanPreferenceResponse.cpp new file mode 100644 index 0000000..bbc4c98 --- /dev/null +++ b/client/src/model/GetUserBanPreferenceResponse.cpp @@ -0,0 +1,509 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserBanPreferenceResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserBanPreferenceResponse::GetUserBanPreferenceResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserBanPreferenceResponse::~GetUserBanPreferenceResponse() +{ +} + +void GetUserBanPreferenceResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserBanPreferenceResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_Preferences.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("preferences"))] = ModelBase::toJson(m_Preferences.get()); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserBanPreferenceResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("preferences")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("preferences"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setPreferences; + ok &= ModelBase::fromJson(fieldValue, refVal_setPreferences); + setPreferences(refVal_setPreferences); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserBanPreferenceResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_Preferences.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("preferences")), m_Preferences.get())); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserBanPreferenceResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("preferences")))) + { + std::shared_ptr refVal_setPreferences; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("preferences"))), refVal_setPreferences ); + setPreferences(refVal_setPreferences); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserBanPreferenceResponse::getPreferences() const +{ + return m_Preferences.get(); +} + + +void GetUserBanPreferenceResponse::setPreferences(const std::shared_ptr& value) +{ + m_Preferences = value; +} + +bool GetUserBanPreferenceResponse::preferencesIsSet() const +{ + return m_Preferences.has_value(); +} + +void GetUserBanPreferenceResponse::unsetPreferences() +{ + m_Preferences.reset(); +} +std::shared_ptr GetUserBanPreferenceResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserBanPreferenceResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserBanPreferenceResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserBanPreferenceResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetUserBanPreferenceResponse::getReason() const +{ + return m_Reason; +} + + +void GetUserBanPreferenceResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserBanPreferenceResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserBanPreferenceResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserBanPreferenceResponse::getCode() const +{ + return m_Code; +} + + +void GetUserBanPreferenceResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserBanPreferenceResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserBanPreferenceResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserBanPreferenceResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserBanPreferenceResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserBanPreferenceResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserBanPreferenceResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserBanPreferenceResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserBanPreferenceResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserBanPreferenceResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserBanPreferenceResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserBanPreferenceResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserBanPreferenceResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserBanPreferenceResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserBanPreferenceResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserBanPreferenceResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserBanPreferenceResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserBanPreferenceResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserBanPreferenceResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserBanPreferenceResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserBanPreferenceResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserBanPreferenceResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserBanPreferenceResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserInternalProfileResponse_1.cpp b/client/src/model/GetUserInternalProfileResponse_1.cpp new file mode 100644 index 0000000..51068d1 --- /dev/null +++ b/client/src/model/GetUserInternalProfileResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserInternalProfileResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserInternalProfileResponse_1::GetUserInternalProfileResponse_1() +{ + m_ProfileIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserInternalProfileResponse_1::~GetUserInternalProfileResponse_1() +{ +} + +void GetUserInternalProfileResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserInternalProfileResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ProfileIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("profile"))] = ModelBase::toJson(m_Profile); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserInternalProfileResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("profile")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("profile"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setProfile; + ok &= ModelBase::fromJson(fieldValue, refVal_setProfile); + setProfile(refVal_setProfile); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserInternalProfileResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ProfileIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("profile")), m_Profile)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserInternalProfileResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("profile")))) + { + std::shared_ptr refVal_setProfile; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("profile"))), refVal_setProfile ); + setProfile(refVal_setProfile); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserInternalProfileResponse_1::getProfile() const +{ + return m_Profile; +} + + +void GetUserInternalProfileResponse_1::setProfile(const std::shared_ptr& value) +{ + m_Profile = value; + m_ProfileIsSet = true; +} + +bool GetUserInternalProfileResponse_1::profileIsSet() const +{ + return m_ProfileIsSet; +} + +void GetUserInternalProfileResponse_1::unsetProfile() +{ + m_ProfileIsSet = false; +} +std::shared_ptr GetUserInternalProfileResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetUserInternalProfileResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserInternalProfileResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserInternalProfileResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetUserInternalProfileResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserInternalProfileResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserInternalProfileResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_1::getCode() const +{ + return m_Code; +} + + +void GetUserInternalProfileResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserInternalProfileResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserInternalProfileResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserInternalProfileResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserInternalProfileResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserInternalProfileResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserInternalProfileResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserInternalProfileResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserInternalProfileResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserInternalProfileResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserInternalProfileResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserInternalProfileResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserInternalProfileResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserInternalProfileResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserInternalProfileResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserInternalProfileResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserInternalProfileResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserInternalProfileResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserInternalProfileResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserInternalProfileResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserInternalProfileResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserInternalProfileResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserNotificationCountResponse_1.cpp b/client/src/model/GetUserNotificationCountResponse_1.cpp new file mode 100644 index 0000000..377d48b --- /dev/null +++ b/client/src/model/GetUserNotificationCountResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserNotificationCountResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserNotificationCountResponse_1::GetUserNotificationCountResponse_1() +{ + m_StatusIsSet = false; + m_Count = 0L; + m_CountIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserNotificationCountResponse_1::~GetUserNotificationCountResponse_1() +{ +} + +void GetUserNotificationCountResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserNotificationCountResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserNotificationCountResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCount); + setCount(refVal_setCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserNotificationCountResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserNotificationCountResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) + { + int64_t refVal_setCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); + setCount(refVal_setCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserNotificationCountResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetUserNotificationCountResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserNotificationCountResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserNotificationCountResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +int64_t GetUserNotificationCountResponse_1::getCount() const +{ + return m_Count; +} + +void GetUserNotificationCountResponse_1::setCount(int64_t value) +{ + m_Count = value; + m_CountIsSet = true; +} + +bool GetUserNotificationCountResponse_1::countIsSet() const +{ + return m_CountIsSet; +} + +void GetUserNotificationCountResponse_1::unsetCount() +{ + m_CountIsSet = false; +} +utility::string_t GetUserNotificationCountResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetUserNotificationCountResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserNotificationCountResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserNotificationCountResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserNotificationCountResponse_1::getCode() const +{ + return m_Code; +} + + +void GetUserNotificationCountResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserNotificationCountResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserNotificationCountResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserNotificationCountResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserNotificationCountResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserNotificationCountResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserNotificationCountResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserNotificationCountResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserNotificationCountResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserNotificationCountResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserNotificationCountResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserNotificationCountResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserNotificationCountResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserNotificationCountResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserNotificationCountResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserNotificationCountResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserNotificationCountResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserNotificationCountResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserNotificationCountResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserNotificationCountResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserNotificationCountResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserNotificationCountResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserNotificationCountResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserNotificationsResponse.cpp b/client/src/model/GetUserNotificationsResponse.cpp new file mode 100644 index 0000000..15f8c2d --- /dev/null +++ b/client/src/model/GetUserNotificationsResponse.cpp @@ -0,0 +1,655 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserNotificationsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserNotificationsResponse::GetUserNotificationsResponse() +{ + m_TranslationsIsSet = false; + m_IsSubscribed = false; + m_IsSubscribedIsSet = false; + m_HasMore = false; + m_HasMoreIsSet = false; + m_NotificationsIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserNotificationsResponse::~GetUserNotificationsResponse() +{ +} + +void GetUserNotificationsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserNotificationsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_TranslationsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); + } + if(m_IsSubscribedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))] = ModelBase::toJson(m_IsSubscribed); + } + if(m_HasMoreIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); + } + if(m_NotificationsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("notifications"))] = ModelBase::toJson(m_Notifications); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserNotificationsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translations")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translations"))); + if(!fieldValue.is_null()) + { + std::map refVal_setTranslations; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslations); + setTranslations(refVal_setTranslations); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isSubscribed")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsSubscribed; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsSubscribed); + setIsSubscribed(refVal_setIsSubscribed); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); + if(!fieldValue.is_null()) + { + bool refVal_setHasMore; + ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); + setHasMore(refVal_setHasMore); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notifications")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notifications"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setNotifications; + ok &= ModelBase::fromJson(fieldValue, refVal_setNotifications); + setNotifications(refVal_setNotifications); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserNotificationsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_TranslationsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); + } + if(m_IsSubscribedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSubscribed")), m_IsSubscribed)); + } + if(m_HasMoreIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); + } + if(m_NotificationsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notifications")), m_Notifications)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserNotificationsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translations")))) + { + std::map refVal_setTranslations; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translations"))), refVal_setTranslations ); + setTranslations(refVal_setTranslations); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isSubscribed")))) + { + bool refVal_setIsSubscribed; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))), refVal_setIsSubscribed ); + setIsSubscribed(refVal_setIsSubscribed); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) + { + bool refVal_setHasMore; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); + setHasMore(refVal_setHasMore); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notifications")))) + { + std::vector> refVal_setNotifications; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notifications"))), refVal_setNotifications ); + setNotifications(refVal_setNotifications); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::map GetUserNotificationsResponse::getTranslations() const +{ + return m_Translations; +} + + +void GetUserNotificationsResponse::setTranslations(const std::map& value) +{ + m_Translations = value; + m_TranslationsIsSet = true; +} + +bool GetUserNotificationsResponse::translationsIsSet() const +{ + return m_TranslationsIsSet; +} + +void GetUserNotificationsResponse::unsetTranslations() +{ + m_TranslationsIsSet = false; +} +bool GetUserNotificationsResponse::isIsSubscribed() const +{ + return m_IsSubscribed; +} + +void GetUserNotificationsResponse::setIsSubscribed(bool value) +{ + m_IsSubscribed = value; + m_IsSubscribedIsSet = true; +} + +bool GetUserNotificationsResponse::isSubscribedIsSet() const +{ + return m_IsSubscribedIsSet; +} + +void GetUserNotificationsResponse::unsetIsSubscribed() +{ + m_IsSubscribedIsSet = false; +} +bool GetUserNotificationsResponse::isHasMore() const +{ + return m_HasMore; +} + +void GetUserNotificationsResponse::setHasMore(bool value) +{ + m_HasMore = value; + m_HasMoreIsSet = true; +} + +bool GetUserNotificationsResponse::hasMoreIsSet() const +{ + return m_HasMoreIsSet; +} + +void GetUserNotificationsResponse::unsetHasMore() +{ + m_HasMoreIsSet = false; +} +std::vector> GetUserNotificationsResponse::getNotifications() const +{ + return m_Notifications; +} + + +void GetUserNotificationsResponse::setNotifications(const std::vector>& value) +{ + m_Notifications = value; + m_NotificationsIsSet = true; +} + +bool GetUserNotificationsResponse::notificationsIsSet() const +{ + return m_NotificationsIsSet; +} + +void GetUserNotificationsResponse::unsetNotifications() +{ + m_NotificationsIsSet = false; +} +std::shared_ptr GetUserNotificationsResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserNotificationsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserNotificationsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserNotificationsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetUserNotificationsResponse::getReason() const +{ + return m_Reason; +} + + +void GetUserNotificationsResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserNotificationsResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserNotificationsResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserNotificationsResponse::getCode() const +{ + return m_Code; +} + + +void GetUserNotificationsResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserNotificationsResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserNotificationsResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserNotificationsResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserNotificationsResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserNotificationsResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserNotificationsResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserNotificationsResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserNotificationsResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserNotificationsResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserNotificationsResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserNotificationsResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserNotificationsResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserNotificationsResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserNotificationsResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserNotificationsResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserNotificationsResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserNotificationsResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserNotificationsResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserNotificationsResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserNotificationsResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserNotificationsResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserNotificationsResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserPresenceStatusesResponse_1.cpp b/client/src/model/GetUserPresenceStatusesResponse_1.cpp new file mode 100644 index 0000000..8efb3cf --- /dev/null +++ b/client/src/model/GetUserPresenceStatusesResponse_1.cpp @@ -0,0 +1,510 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserPresenceStatusesResponse_1::GetUserPresenceStatusesResponse_1() +{ + m_StatusIsSet = false; + m_UserIdsOnlineIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserPresenceStatusesResponse_1::~GetUserPresenceStatusesResponse_1() +{ +} + +void GetUserPresenceStatusesResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserPresenceStatusesResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_UserIdsOnlineIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))] = ModelBase::toJson(m_UserIdsOnline); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserPresenceStatusesResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))); + if(!fieldValue.is_null()) + { + std::map refVal_setUserIdsOnline; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdsOnline); + setUserIdsOnline(refVal_setUserIdsOnline); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserPresenceStatusesResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_UserIdsOnlineIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdsOnline")), m_UserIdsOnline)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserPresenceStatusesResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline")))) + { + std::map refVal_setUserIdsOnline; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))), refVal_setUserIdsOnline ); + setUserIdsOnline(refVal_setUserIdsOnline); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserPresenceStatusesResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetUserPresenceStatusesResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserPresenceStatusesResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserPresenceStatusesResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::map GetUserPresenceStatusesResponse_1::getUserIdsOnline() const +{ + return m_UserIdsOnline; +} + +void GetUserPresenceStatusesResponse_1::setUserIdsOnline(std::map value) +{ + m_UserIdsOnline = value; + m_UserIdsOnlineIsSet = true; +} + +bool GetUserPresenceStatusesResponse_1::userIdsOnlineIsSet() const +{ + return m_UserIdsOnlineIsSet; +} + +void GetUserPresenceStatusesResponse_1::unsetUserIdsOnline() +{ + m_UserIdsOnlineIsSet = false; +} +utility::string_t GetUserPresenceStatusesResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetUserPresenceStatusesResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserPresenceStatusesResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserPresenceStatusesResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserPresenceStatusesResponse_1::getCode() const +{ + return m_Code; +} + + +void GetUserPresenceStatusesResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserPresenceStatusesResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserPresenceStatusesResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserPresenceStatusesResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserPresenceStatusesResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserPresenceStatusesResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserPresenceStatusesResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserPresenceStatusesResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserPresenceStatusesResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserPresenceStatusesResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserPresenceStatusesResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserPresenceStatusesResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserPresenceStatusesResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserPresenceStatusesResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserPresenceStatusesResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserPresenceStatusesResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserPresenceStatusesResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserPresenceStatusesResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserPresenceStatusesResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserPresenceStatusesResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserPresenceStatusesResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserPresenceStatusesResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserPresenceStatusesResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserReactsPublicResponse.cpp b/client/src/model/GetUserReactsPublicResponse.cpp new file mode 100644 index 0000000..c1d884a --- /dev/null +++ b/client/src/model/GetUserReactsPublicResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserReactsPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserReactsPublicResponse::GetUserReactsPublicResponse() +{ + m_StatusIsSet = false; + m_ReactsIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserReactsPublicResponse::~GetUserReactsPublicResponse() +{ +} + +void GetUserReactsPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserReactsPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReactsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reacts"))] = ModelBase::toJson(m_Reacts); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserReactsPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reacts")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reacts"))); + if(!fieldValue.is_null()) + { + std::map> refVal_setReacts; + ok &= ModelBase::fromJson(fieldValue, refVal_setReacts); + setReacts(refVal_setReacts); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserReactsPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReactsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reacts")), m_Reacts)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserReactsPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reacts")))) + { + std::map> refVal_setReacts; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reacts"))), refVal_setReacts ); + setReacts(refVal_setReacts); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserReactsPublicResponse::getStatus() const +{ + return m_Status; +} + + +void GetUserReactsPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserReactsPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserReactsPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::map> GetUserReactsPublicResponse::getReacts() const +{ + return m_Reacts; +} + + +void GetUserReactsPublicResponse::setReacts(const std::map>& value) +{ + m_Reacts = value; + m_ReactsIsSet = true; +} + +bool GetUserReactsPublicResponse::reactsIsSet() const +{ + return m_ReactsIsSet; +} + +void GetUserReactsPublicResponse::unsetReacts() +{ + m_ReactsIsSet = false; +} +utility::string_t GetUserReactsPublicResponse::getReason() const +{ + return m_Reason; +} + + +void GetUserReactsPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserReactsPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserReactsPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserReactsPublicResponse::getCode() const +{ + return m_Code; +} + + +void GetUserReactsPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserReactsPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserReactsPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserReactsPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserReactsPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserReactsPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserReactsPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserReactsPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserReactsPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserReactsPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserReactsPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserReactsPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserReactsPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserReactsPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserReactsPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserReactsPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserReactsPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserReactsPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserReactsPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserReactsPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserReactsPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserReactsPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserReactsPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUserResponse_1.cpp b/client/src/model/GetUserResponse_1.cpp new file mode 100644 index 0000000..d167807 --- /dev/null +++ b/client/src/model/GetUserResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUserResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUserResponse_1::GetUserResponse_1() +{ + m_StatusIsSet = false; + m_UserIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUserResponse_1::~GetUserResponse_1() +{ +} + +void GetUserResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetUserResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_UserIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUserResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setUser); + setUser(refVal_setUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUserResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_UserIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUserResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); + setUser(refVal_setUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetUserResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetUserResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUserResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUserResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr GetUserResponse_1::getUser() const +{ + return m_User; +} + + +void GetUserResponse_1::setUser(const std::shared_ptr& value) +{ + m_User = value; + m_UserIsSet = true; +} + +bool GetUserResponse_1::userIsSet() const +{ + return m_UserIsSet; +} + +void GetUserResponse_1::unsetUser() +{ + m_UserIsSet = false; +} +utility::string_t GetUserResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetUserResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUserResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUserResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUserResponse_1::getCode() const +{ + return m_Code; +} + + +void GetUserResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUserResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUserResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUserResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUserResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUserResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUserResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUserResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUserResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUserResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUserResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUserResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUserResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUserResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUserResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUserResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUserResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUserResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUserResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUserResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUserResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUserResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUserResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetUsersInfoResponse.cpp b/client/src/model/GetUsersInfoResponse.cpp new file mode 100644 index 0000000..603d513 --- /dev/null +++ b/client/src/model/GetUsersInfoResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetUsersInfoResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetUsersInfoResponse::GetUsersInfoResponse() +{ + m_UsersIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetUsersInfoResponse::~GetUsersInfoResponse() +{ +} + +void GetUsersInfoResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetUsersInfoResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetUsersInfoResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetUsersInfoResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetUsersInfoResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> GetUsersInfoResponse::getUsers() const +{ + return m_Users; +} + + +void GetUsersInfoResponse::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool GetUsersInfoResponse::usersIsSet() const +{ + return m_UsersIsSet; +} + +void GetUsersInfoResponse::unsetUsers() +{ + m_UsersIsSet = false; +} +std::shared_ptr GetUsersInfoResponse::getStatus() const +{ + return m_Status; +} + + +void GetUsersInfoResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetUsersInfoResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetUsersInfoResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetUsersInfoResponse::getReason() const +{ + return m_Reason; +} + + +void GetUsersInfoResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetUsersInfoResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetUsersInfoResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetUsersInfoResponse::getCode() const +{ + return m_Code; +} + + +void GetUsersInfoResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetUsersInfoResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetUsersInfoResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetUsersInfoResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetUsersInfoResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetUsersInfoResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetUsersInfoResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetUsersInfoResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetUsersInfoResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetUsersInfoResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetUsersInfoResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetUsersInfoResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetUsersInfoResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetUsersInfoResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetUsersInfoResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetUsersInfoResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetUsersInfoResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetUsersInfoResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetUsersInfoResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetUsersInfoResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetUsersInfoResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetUsersInfoResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetUsersInfoResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetV1PageLikesResponse.cpp b/client/src/model/GetV1PageLikesResponse.cpp new file mode 100644 index 0000000..f2e3f3c --- /dev/null +++ b/client/src/model/GetV1PageLikesResponse.cpp @@ -0,0 +1,656 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetV1PageLikesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetV1PageLikesResponse::GetV1PageLikesResponse() +{ + m_UrlIdWS = utility::conversions::to_string_t(""); + m_UrlIdWSIsSet = false; + m_DidLike = false; + m_DidLikeIsSet = false; + m_CommentCount = 0; + m_CommentCountIsSet = false; + m_LikeCount = 0; + m_LikeCountIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetV1PageLikesResponse::~GetV1PageLikesResponse() +{ +} + +void GetV1PageLikesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetV1PageLikesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UrlIdWSIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); + } + if(m_DidLikeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("didLike"))] = ModelBase::toJson(m_DidLike); + } + if(m_CommentCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); + } + if(m_LikeCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("likeCount"))] = ModelBase::toJson(m_LikeCount); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetV1PageLikesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setUrlIdWS; + ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdWS); + setUrlIdWS(refVal_setUrlIdWS); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("didLike")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("didLike"))); + if(!fieldValue.is_null()) + { + bool refVal_setDidLike; + ok &= ModelBase::fromJson(fieldValue, refVal_setDidLike); + setDidLike(refVal_setDidLike); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); + setCommentCount(refVal_setCommentCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("likeCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("likeCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setLikeCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setLikeCount); + setLikeCount(refVal_setLikeCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetV1PageLikesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UrlIdWSIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdWS")), m_UrlIdWS)); + } + if(m_DidLikeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("didLike")), m_DidLike)); + } + if(m_CommentCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); + } + if(m_LikeCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("likeCount")), m_LikeCount)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetV1PageLikesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) + { + utility::string_t refVal_setUrlIdWS; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))), refVal_setUrlIdWS ); + setUrlIdWS(refVal_setUrlIdWS); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("didLike")))) + { + bool refVal_setDidLike; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("didLike"))), refVal_setDidLike ); + setDidLike(refVal_setDidLike); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) + { + int32_t refVal_setCommentCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); + setCommentCount(refVal_setCommentCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("likeCount")))) + { + int32_t refVal_setLikeCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("likeCount"))), refVal_setLikeCount ); + setLikeCount(refVal_setLikeCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +utility::string_t GetV1PageLikesResponse::getUrlIdWS() const +{ + return m_UrlIdWS; +} + + +void GetV1PageLikesResponse::setUrlIdWS(const utility::string_t& value) +{ + m_UrlIdWS = value; + m_UrlIdWSIsSet = true; +} + +bool GetV1PageLikesResponse::urlIdWSIsSet() const +{ + return m_UrlIdWSIsSet; +} + +void GetV1PageLikesResponse::unsetUrlIdWS() +{ + m_UrlIdWSIsSet = false; +} +bool GetV1PageLikesResponse::isDidLike() const +{ + return m_DidLike; +} + +void GetV1PageLikesResponse::setDidLike(bool value) +{ + m_DidLike = value; + m_DidLikeIsSet = true; +} + +bool GetV1PageLikesResponse::didLikeIsSet() const +{ + return m_DidLikeIsSet; +} + +void GetV1PageLikesResponse::unsetDidLike() +{ + m_DidLikeIsSet = false; +} +int32_t GetV1PageLikesResponse::getCommentCount() const +{ + return m_CommentCount; +} + +void GetV1PageLikesResponse::setCommentCount(int32_t value) +{ + m_CommentCount = value; + m_CommentCountIsSet = true; +} + +bool GetV1PageLikesResponse::commentCountIsSet() const +{ + return m_CommentCountIsSet; +} + +void GetV1PageLikesResponse::unsetCommentCount() +{ + m_CommentCountIsSet = false; +} +int32_t GetV1PageLikesResponse::getLikeCount() const +{ + return m_LikeCount; +} + +void GetV1PageLikesResponse::setLikeCount(int32_t value) +{ + m_LikeCount = value; + m_LikeCountIsSet = true; +} + +bool GetV1PageLikesResponse::likeCountIsSet() const +{ + return m_LikeCountIsSet; +} + +void GetV1PageLikesResponse::unsetLikeCount() +{ + m_LikeCountIsSet = false; +} +std::shared_ptr GetV1PageLikesResponse::getStatus() const +{ + return m_Status; +} + + +void GetV1PageLikesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetV1PageLikesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetV1PageLikesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetV1PageLikesResponse::getReason() const +{ + return m_Reason; +} + + +void GetV1PageLikesResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetV1PageLikesResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetV1PageLikesResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetV1PageLikesResponse::getCode() const +{ + return m_Code; +} + + +void GetV1PageLikesResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetV1PageLikesResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetV1PageLikesResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetV1PageLikesResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetV1PageLikesResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetV1PageLikesResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetV1PageLikesResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetV1PageLikesResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetV1PageLikesResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetV1PageLikesResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetV1PageLikesResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetV1PageLikesResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetV1PageLikesResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetV1PageLikesResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetV1PageLikesResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetV1PageLikesResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetV1PageLikesResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetV1PageLikesResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetV1PageLikesResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetV1PageLikesResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetV1PageLikesResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetV1PageLikesResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetV1PageLikesResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetV2PageReactUsersResponse_1.cpp b/client/src/model/GetV2PageReactUsersResponse_1.cpp new file mode 100644 index 0000000..a7f78c9 --- /dev/null +++ b/client/src/model/GetV2PageReactUsersResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetV2PageReactUsersResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetV2PageReactUsersResponse_1::GetV2PageReactUsersResponse_1() +{ + m_UserNamesIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetV2PageReactUsersResponse_1::~GetV2PageReactUsersResponse_1() +{ +} + +void GetV2PageReactUsersResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetV2PageReactUsersResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_UserNamesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userNames"))] = ModelBase::toJson(m_UserNames); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetV2PageReactUsersResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userNames")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userNames"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setUserNames; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserNames); + setUserNames(refVal_setUserNames); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetV2PageReactUsersResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_UserNamesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userNames")), m_UserNames)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetV2PageReactUsersResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userNames")))) + { + std::vector refVal_setUserNames; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userNames"))), refVal_setUserNames ); + setUserNames(refVal_setUserNames); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector GetV2PageReactUsersResponse_1::getUserNames() const +{ + return m_UserNames; +} + + +void GetV2PageReactUsersResponse_1::setUserNames(const std::vector& value) +{ + m_UserNames = value; + m_UserNamesIsSet = true; +} + +bool GetV2PageReactUsersResponse_1::userNamesIsSet() const +{ + return m_UserNamesIsSet; +} + +void GetV2PageReactUsersResponse_1::unsetUserNames() +{ + m_UserNamesIsSet = false; +} +std::shared_ptr GetV2PageReactUsersResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetV2PageReactUsersResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetV2PageReactUsersResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetV2PageReactUsersResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetV2PageReactUsersResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetV2PageReactUsersResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetV2PageReactUsersResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetV2PageReactUsersResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetV2PageReactUsersResponse_1::getCode() const +{ + return m_Code; +} + + +void GetV2PageReactUsersResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetV2PageReactUsersResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetV2PageReactUsersResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetV2PageReactUsersResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetV2PageReactUsersResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetV2PageReactUsersResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetV2PageReactUsersResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetV2PageReactUsersResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetV2PageReactUsersResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetV2PageReactUsersResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetV2PageReactUsersResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetV2PageReactUsersResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetV2PageReactUsersResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetV2PageReactUsersResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetV2PageReactUsersResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetV2PageReactUsersResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetV2PageReactUsersResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetV2PageReactUsersResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetV2PageReactUsersResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetV2PageReactUsersResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetV2PageReactUsersResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetV2PageReactUsersResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetV2PageReactUsersResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetV2PageReactsResponse.cpp b/client/src/model/GetV2PageReactsResponse.cpp new file mode 100644 index 0000000..8307acc --- /dev/null +++ b/client/src/model/GetV2PageReactsResponse.cpp @@ -0,0 +1,558 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetV2PageReactsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetV2PageReactsResponse::GetV2PageReactsResponse() +{ + m_ReactedIdsIsSet = false; + m_CountsIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetV2PageReactsResponse::~GetV2PageReactsResponse() +{ +} + +void GetV2PageReactsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value GetV2PageReactsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_ReactedIdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reactedIds"))] = ModelBase::toJson(m_ReactedIds); + } + if(m_CountsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("counts"))] = ModelBase::toJson(m_Counts); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetV2PageReactsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reactedIds")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reactedIds"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setReactedIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setReactedIds); + setReactedIds(refVal_setReactedIds); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("counts")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("counts"))); + if(!fieldValue.is_null()) + { + std::map refVal_setCounts; + ok &= ModelBase::fromJson(fieldValue, refVal_setCounts); + setCounts(refVal_setCounts); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetV2PageReactsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_ReactedIdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reactedIds")), m_ReactedIds)); + } + if(m_CountsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("counts")), m_Counts)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetV2PageReactsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reactedIds")))) + { + std::vector refVal_setReactedIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reactedIds"))), refVal_setReactedIds ); + setReactedIds(refVal_setReactedIds); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("counts")))) + { + std::map refVal_setCounts; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("counts"))), refVal_setCounts ); + setCounts(refVal_setCounts); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector GetV2PageReactsResponse::getReactedIds() const +{ + return m_ReactedIds; +} + + +void GetV2PageReactsResponse::setReactedIds(const std::vector& value) +{ + m_ReactedIds = value; + m_ReactedIdsIsSet = true; +} + +bool GetV2PageReactsResponse::reactedIdsIsSet() const +{ + return m_ReactedIdsIsSet; +} + +void GetV2PageReactsResponse::unsetReactedIds() +{ + m_ReactedIdsIsSet = false; +} +std::map GetV2PageReactsResponse::getCounts() const +{ + return m_Counts; +} + +void GetV2PageReactsResponse::setCounts(std::map value) +{ + m_Counts = value; + m_CountsIsSet = true; +} + +bool GetV2PageReactsResponse::countsIsSet() const +{ + return m_CountsIsSet; +} + +void GetV2PageReactsResponse::unsetCounts() +{ + m_CountsIsSet = false; +} +std::shared_ptr GetV2PageReactsResponse::getStatus() const +{ + return m_Status; +} + + +void GetV2PageReactsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetV2PageReactsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetV2PageReactsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t GetV2PageReactsResponse::getReason() const +{ + return m_Reason; +} + + +void GetV2PageReactsResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetV2PageReactsResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetV2PageReactsResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetV2PageReactsResponse::getCode() const +{ + return m_Code; +} + + +void GetV2PageReactsResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetV2PageReactsResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetV2PageReactsResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetV2PageReactsResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetV2PageReactsResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetV2PageReactsResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetV2PageReactsResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetV2PageReactsResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetV2PageReactsResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetV2PageReactsResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetV2PageReactsResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetV2PageReactsResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetV2PageReactsResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetV2PageReactsResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetV2PageReactsResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetV2PageReactsResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetV2PageReactsResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetV2PageReactsResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetV2PageReactsResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetV2PageReactsResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetV2PageReactsResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetV2PageReactsResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetV2PageReactsResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetVotesForUserResponse_1.cpp b/client/src/model/GetVotesForUserResponse_1.cpp new file mode 100644 index 0000000..acfc6df --- /dev/null +++ b/client/src/model/GetVotesForUserResponse_1.cpp @@ -0,0 +1,607 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetVotesForUserResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetVotesForUserResponse_1::GetVotesForUserResponse_1() +{ + m_StatusIsSet = false; + m_AppliedAuthorizedVotesIsSet = false; + m_AppliedAnonymousVotesIsSet = false; + m_PendingVotesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetVotesForUserResponse_1::~GetVotesForUserResponse_1() +{ +} + +void GetVotesForUserResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetVotesForUserResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_AppliedAuthorizedVotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))] = ModelBase::toJson(m_AppliedAuthorizedVotes); + } + if(m_AppliedAnonymousVotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))] = ModelBase::toJson(m_AppliedAnonymousVotes); + } + if(m_PendingVotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))] = ModelBase::toJson(m_PendingVotes); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetVotesForUserResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setAppliedAuthorizedVotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAuthorizedVotes); + setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setAppliedAnonymousVotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAnonymousVotes); + setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setPendingVotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setPendingVotes); + setPendingVotes(refVal_setPendingVotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetVotesForUserResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_AppliedAuthorizedVotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")), m_AppliedAuthorizedVotes)); + } + if(m_AppliedAnonymousVotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")), m_AppliedAnonymousVotes)); + } + if(m_PendingVotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pendingVotes")), m_PendingVotes)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetVotesForUserResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) + { + std::vector> refVal_setAppliedAuthorizedVotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))), refVal_setAppliedAuthorizedVotes ); + setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) + { + std::vector> refVal_setAppliedAnonymousVotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))), refVal_setAppliedAnonymousVotes ); + setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) + { + std::vector> refVal_setPendingVotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))), refVal_setPendingVotes ); + setPendingVotes(refVal_setPendingVotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetVotesForUserResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetVotesForUserResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetVotesForUserResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetVotesForUserResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetVotesForUserResponse_1::getAppliedAuthorizedVotes() const +{ + return m_AppliedAuthorizedVotes; +} + + +void GetVotesForUserResponse_1::setAppliedAuthorizedVotes(const std::vector>& value) +{ + m_AppliedAuthorizedVotes = value; + m_AppliedAuthorizedVotesIsSet = true; +} + +bool GetVotesForUserResponse_1::appliedAuthorizedVotesIsSet() const +{ + return m_AppliedAuthorizedVotesIsSet; +} + +void GetVotesForUserResponse_1::unsetAppliedAuthorizedVotes() +{ + m_AppliedAuthorizedVotesIsSet = false; +} +std::vector> GetVotesForUserResponse_1::getAppliedAnonymousVotes() const +{ + return m_AppliedAnonymousVotes; +} + + +void GetVotesForUserResponse_1::setAppliedAnonymousVotes(const std::vector>& value) +{ + m_AppliedAnonymousVotes = value; + m_AppliedAnonymousVotesIsSet = true; +} + +bool GetVotesForUserResponse_1::appliedAnonymousVotesIsSet() const +{ + return m_AppliedAnonymousVotesIsSet; +} + +void GetVotesForUserResponse_1::unsetAppliedAnonymousVotes() +{ + m_AppliedAnonymousVotesIsSet = false; +} +std::vector> GetVotesForUserResponse_1::getPendingVotes() const +{ + return m_PendingVotes; +} + + +void GetVotesForUserResponse_1::setPendingVotes(const std::vector>& value) +{ + m_PendingVotes = value; + m_PendingVotesIsSet = true; +} + +bool GetVotesForUserResponse_1::pendingVotesIsSet() const +{ + return m_PendingVotesIsSet; +} + +void GetVotesForUserResponse_1::unsetPendingVotes() +{ + m_PendingVotesIsSet = false; +} +utility::string_t GetVotesForUserResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetVotesForUserResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetVotesForUserResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetVotesForUserResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetVotesForUserResponse_1::getCode() const +{ + return m_Code; +} + + +void GetVotesForUserResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetVotesForUserResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetVotesForUserResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetVotesForUserResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetVotesForUserResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetVotesForUserResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetVotesForUserResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetVotesForUserResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetVotesForUserResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetVotesForUserResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetVotesForUserResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetVotesForUserResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetVotesForUserResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetVotesForUserResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetVotesForUserResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetVotesForUserResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetVotesForUserResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetVotesForUserResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetVotesForUserResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetVotesForUserResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetVotesForUserResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetVotesForUserResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetVotesForUserResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/GetVotesResponse_1.cpp b/client/src/model/GetVotesResponse_1.cpp new file mode 100644 index 0000000..4597874 --- /dev/null +++ b/client/src/model/GetVotesResponse_1.cpp @@ -0,0 +1,607 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/GetVotesResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +GetVotesResponse_1::GetVotesResponse_1() +{ + m_StatusIsSet = false; + m_AppliedAuthorizedVotesIsSet = false; + m_AppliedAnonymousVotesIsSet = false; + m_PendingVotesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +GetVotesResponse_1::~GetVotesResponse_1() +{ +} + +void GetVotesResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value GetVotesResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_AppliedAuthorizedVotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))] = ModelBase::toJson(m_AppliedAuthorizedVotes); + } + if(m_AppliedAnonymousVotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))] = ModelBase::toJson(m_AppliedAnonymousVotes); + } + if(m_PendingVotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))] = ModelBase::toJson(m_PendingVotes); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool GetVotesResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setAppliedAuthorizedVotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAuthorizedVotes); + setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setAppliedAnonymousVotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAnonymousVotes); + setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setPendingVotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setPendingVotes); + setPendingVotes(refVal_setPendingVotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void GetVotesResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_AppliedAuthorizedVotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")), m_AppliedAuthorizedVotes)); + } + if(m_AppliedAnonymousVotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")), m_AppliedAnonymousVotes)); + } + if(m_PendingVotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pendingVotes")), m_PendingVotes)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool GetVotesResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) + { + std::vector> refVal_setAppliedAuthorizedVotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))), refVal_setAppliedAuthorizedVotes ); + setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) + { + std::vector> refVal_setAppliedAnonymousVotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))), refVal_setAppliedAnonymousVotes ); + setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) + { + std::vector> refVal_setPendingVotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))), refVal_setPendingVotes ); + setPendingVotes(refVal_setPendingVotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr GetVotesResponse_1::getStatus() const +{ + return m_Status; +} + + +void GetVotesResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool GetVotesResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void GetVotesResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> GetVotesResponse_1::getAppliedAuthorizedVotes() const +{ + return m_AppliedAuthorizedVotes; +} + + +void GetVotesResponse_1::setAppliedAuthorizedVotes(const std::vector>& value) +{ + m_AppliedAuthorizedVotes = value; + m_AppliedAuthorizedVotesIsSet = true; +} + +bool GetVotesResponse_1::appliedAuthorizedVotesIsSet() const +{ + return m_AppliedAuthorizedVotesIsSet; +} + +void GetVotesResponse_1::unsetAppliedAuthorizedVotes() +{ + m_AppliedAuthorizedVotesIsSet = false; +} +std::vector> GetVotesResponse_1::getAppliedAnonymousVotes() const +{ + return m_AppliedAnonymousVotes; +} + + +void GetVotesResponse_1::setAppliedAnonymousVotes(const std::vector>& value) +{ + m_AppliedAnonymousVotes = value; + m_AppliedAnonymousVotesIsSet = true; +} + +bool GetVotesResponse_1::appliedAnonymousVotesIsSet() const +{ + return m_AppliedAnonymousVotesIsSet; +} + +void GetVotesResponse_1::unsetAppliedAnonymousVotes() +{ + m_AppliedAnonymousVotesIsSet = false; +} +std::vector> GetVotesResponse_1::getPendingVotes() const +{ + return m_PendingVotes; +} + + +void GetVotesResponse_1::setPendingVotes(const std::vector>& value) +{ + m_PendingVotes = value; + m_PendingVotesIsSet = true; +} + +bool GetVotesResponse_1::pendingVotesIsSet() const +{ + return m_PendingVotesIsSet; +} + +void GetVotesResponse_1::unsetPendingVotes() +{ + m_PendingVotesIsSet = false; +} +utility::string_t GetVotesResponse_1::getReason() const +{ + return m_Reason; +} + + +void GetVotesResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool GetVotesResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void GetVotesResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t GetVotesResponse_1::getCode() const +{ + return m_Code; +} + + +void GetVotesResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool GetVotesResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void GetVotesResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t GetVotesResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void GetVotesResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool GetVotesResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void GetVotesResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t GetVotesResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void GetVotesResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool GetVotesResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void GetVotesResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t GetVotesResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void GetVotesResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool GetVotesResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void GetVotesResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t GetVotesResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void GetVotesResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool GetVotesResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void GetVotesResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr GetVotesResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void GetVotesResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool GetVotesResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void GetVotesResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/LockCommentResponse.cpp b/client/src/model/LockCommentResponse.cpp new file mode 100644 index 0000000..0a488c9 --- /dev/null +++ b/client/src/model/LockCommentResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/LockCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +LockCommentResponse::LockCommentResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +LockCommentResponse::~LockCommentResponse() +{ +} + +void LockCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value LockCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool LockCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void LockCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool LockCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr LockCommentResponse::getStatus() const +{ + return m_Status; +} + + +void LockCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool LockCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void LockCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t LockCommentResponse::getReason() const +{ + return m_Reason; +} + + +void LockCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool LockCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void LockCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t LockCommentResponse::getCode() const +{ + return m_Code; +} + + +void LockCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool LockCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void LockCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t LockCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void LockCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool LockCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void LockCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t LockCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void LockCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool LockCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void LockCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t LockCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void LockCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool LockCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void LockCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t LockCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void LockCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool LockCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void LockCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr LockCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void LockCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool LockCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void LockCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PatchHashTagResponse.cpp b/client/src/model/PatchHashTagResponse.cpp new file mode 100644 index 0000000..f486659 --- /dev/null +++ b/client/src/model/PatchHashTagResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PatchHashTagResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PatchHashTagResponse::PatchHashTagResponse() +{ + m_StatusIsSet = false; + m_HashTagIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PatchHashTagResponse::~PatchHashTagResponse() +{ +} + +void PatchHashTagResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PatchHashTagResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_HashTagIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PatchHashTagResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hashTag")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hashTag"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setHashTag; + ok &= ModelBase::fromJson(fieldValue, refVal_setHashTag); + setHashTag(refVal_setHashTag); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PatchHashTagResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_HashTagIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hashTag")), m_HashTag)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PatchHashTagResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hashTag")))) + { + std::shared_ptr refVal_setHashTag; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hashTag"))), refVal_setHashTag ); + setHashTag(refVal_setHashTag); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PatchHashTagResponse::getStatus() const +{ + return m_Status; +} + + +void PatchHashTagResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PatchHashTagResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PatchHashTagResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr PatchHashTagResponse::getHashTag() const +{ + return m_HashTag; +} + + +void PatchHashTagResponse::setHashTag(const std::shared_ptr& value) +{ + m_HashTag = value; + m_HashTagIsSet = true; +} + +bool PatchHashTagResponse::hashTagIsSet() const +{ + return m_HashTagIsSet; +} + +void PatchHashTagResponse::unsetHashTag() +{ + m_HashTagIsSet = false; +} +utility::string_t PatchHashTagResponse::getReason() const +{ + return m_Reason; +} + + +void PatchHashTagResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PatchHashTagResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PatchHashTagResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PatchHashTagResponse::getCode() const +{ + return m_Code; +} + + +void PatchHashTagResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PatchHashTagResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PatchHashTagResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PatchHashTagResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PatchHashTagResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PatchHashTagResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PatchHashTagResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PatchHashTagResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PatchHashTagResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PatchHashTagResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PatchHashTagResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PatchHashTagResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PatchHashTagResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PatchHashTagResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PatchHashTagResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PatchHashTagResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PatchHashTagResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PatchHashTagResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PatchHashTagResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PatchHashTagResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PatchHashTagResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PatchHashTagResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PatchHashTagResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PinCommentResponse.cpp b/client/src/model/PinCommentResponse.cpp new file mode 100644 index 0000000..6799585 --- /dev/null +++ b/client/src/model/PinCommentResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PinCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PinCommentResponse::PinCommentResponse() +{ + m_CommentPositionsIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PinCommentResponse::~PinCommentResponse() +{ +} + +void PinCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PinCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentPositionsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentPositions"))] = ModelBase::toJson(m_CommentPositions); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PinCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentPositions")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentPositions"))); + if(!fieldValue.is_null()) + { + std::map> refVal_setCommentPositions; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentPositions); + setCommentPositions(refVal_setCommentPositions); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PinCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentPositionsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentPositions")), m_CommentPositions)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PinCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentPositions")))) + { + std::map> refVal_setCommentPositions; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentPositions"))), refVal_setCommentPositions ); + setCommentPositions(refVal_setCommentPositions); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::map> PinCommentResponse::getCommentPositions() const +{ + return m_CommentPositions; +} + + +void PinCommentResponse::setCommentPositions(const std::map>& value) +{ + m_CommentPositions = value; + m_CommentPositionsIsSet = true; +} + +bool PinCommentResponse::commentPositionsIsSet() const +{ + return m_CommentPositionsIsSet; +} + +void PinCommentResponse::unsetCommentPositions() +{ + m_CommentPositionsIsSet = false; +} +std::shared_ptr PinCommentResponse::getStatus() const +{ + return m_Status; +} + + +void PinCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PinCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PinCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PinCommentResponse::getReason() const +{ + return m_Reason; +} + + +void PinCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PinCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PinCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PinCommentResponse::getCode() const +{ + return m_Code; +} + + +void PinCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PinCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PinCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PinCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PinCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PinCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PinCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PinCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PinCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PinCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PinCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PinCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PinCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PinCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PinCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PinCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PinCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PinCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PinCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PinCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PinCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PinCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PinCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostAdjustCommentVotesResponse.cpp b/client/src/model/PostAdjustCommentVotesResponse.cpp new file mode 100644 index 0000000..5e6d410 --- /dev/null +++ b/client/src/model/PostAdjustCommentVotesResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostAdjustCommentVotesResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostAdjustCommentVotesResponse::PostAdjustCommentVotesResponse() +{ + m_StatusIsSet = false; + m_NewCommentVotes = 0; + m_NewCommentVotesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostAdjustCommentVotesResponse::~PostAdjustCommentVotesResponse() +{ +} + +void PostAdjustCommentVotesResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostAdjustCommentVotesResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_NewCommentVotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("newCommentVotes"))] = ModelBase::toJson(m_NewCommentVotes); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostAdjustCommentVotesResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setNewCommentVotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setNewCommentVotes); + setNewCommentVotes(refVal_setNewCommentVotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostAdjustCommentVotesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_NewCommentVotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("newCommentVotes")), m_NewCommentVotes)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostAdjustCommentVotesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes")))) + { + int32_t refVal_setNewCommentVotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes"))), refVal_setNewCommentVotes ); + setNewCommentVotes(refVal_setNewCommentVotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostAdjustCommentVotesResponse::getStatus() const +{ + return m_Status; +} + + +void PostAdjustCommentVotesResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostAdjustCommentVotesResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostAdjustCommentVotesResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +int32_t PostAdjustCommentVotesResponse::getNewCommentVotes() const +{ + return m_NewCommentVotes; +} + +void PostAdjustCommentVotesResponse::setNewCommentVotes(int32_t value) +{ + m_NewCommentVotes = value; + m_NewCommentVotesIsSet = true; +} + +bool PostAdjustCommentVotesResponse::newCommentVotesIsSet() const +{ + return m_NewCommentVotesIsSet; +} + +void PostAdjustCommentVotesResponse::unsetNewCommentVotes() +{ + m_NewCommentVotesIsSet = false; +} +utility::string_t PostAdjustCommentVotesResponse::getReason() const +{ + return m_Reason; +} + + +void PostAdjustCommentVotesResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostAdjustCommentVotesResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostAdjustCommentVotesResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostAdjustCommentVotesResponse::getCode() const +{ + return m_Code; +} + + +void PostAdjustCommentVotesResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostAdjustCommentVotesResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostAdjustCommentVotesResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostAdjustCommentVotesResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostAdjustCommentVotesResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostAdjustCommentVotesResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostAdjustCommentVotesResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostAdjustCommentVotesResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostAdjustCommentVotesResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostAdjustCommentVotesResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostAdjustCommentVotesResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostAdjustCommentVotesResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostAdjustCommentVotesResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostAdjustCommentVotesResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostAdjustCommentVotesResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostAdjustCommentVotesResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostAdjustCommentVotesResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostAdjustCommentVotesResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostAdjustCommentVotesResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostAdjustCommentVotesResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostAdjustCommentVotesResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostAdjustCommentVotesResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostAdjustCommentVotesResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostApiExportResponse.cpp b/client/src/model/PostApiExportResponse.cpp new file mode 100644 index 0000000..daf8b00 --- /dev/null +++ b/client/src/model/PostApiExportResponse.cpp @@ -0,0 +1,512 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostApiExportResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostApiExportResponse::PostApiExportResponse() +{ + m_StatusIsSet = false; + m_BatchJobId = utility::conversions::to_string_t(""); + m_BatchJobIdIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostApiExportResponse::~PostApiExportResponse() +{ +} + +void PostApiExportResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostApiExportResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_BatchJobIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("batchJobId"))] = ModelBase::toJson(m_BatchJobId); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostApiExportResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("batchJobId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("batchJobId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setBatchJobId; + ok &= ModelBase::fromJson(fieldValue, refVal_setBatchJobId); + setBatchJobId(refVal_setBatchJobId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostApiExportResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_BatchJobIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("batchJobId")), m_BatchJobId)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostApiExportResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("batchJobId")))) + { + utility::string_t refVal_setBatchJobId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("batchJobId"))), refVal_setBatchJobId ); + setBatchJobId(refVal_setBatchJobId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostApiExportResponse::getStatus() const +{ + return m_Status; +} + + +void PostApiExportResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostApiExportResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostApiExportResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostApiExportResponse::getBatchJobId() const +{ + return m_BatchJobId; +} + + +void PostApiExportResponse::setBatchJobId(const utility::string_t& value) +{ + m_BatchJobId = value; + m_BatchJobIdIsSet = true; +} + +bool PostApiExportResponse::batchJobIdIsSet() const +{ + return m_BatchJobIdIsSet; +} + +void PostApiExportResponse::unsetBatchJobId() +{ + m_BatchJobIdIsSet = false; +} +utility::string_t PostApiExportResponse::getReason() const +{ + return m_Reason; +} + + +void PostApiExportResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostApiExportResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostApiExportResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostApiExportResponse::getCode() const +{ + return m_Code; +} + + +void PostApiExportResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostApiExportResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostApiExportResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostApiExportResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostApiExportResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostApiExportResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostApiExportResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostApiExportResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostApiExportResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostApiExportResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostApiExportResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostApiExportResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostApiExportResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostApiExportResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostApiExportResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostApiExportResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostApiExportResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostApiExportResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostApiExportResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostApiExportResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostApiExportResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostApiExportResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostApiExportResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostBanUserFromCommentResponse.cpp b/client/src/model/PostBanUserFromCommentResponse.cpp new file mode 100644 index 0000000..77de047 --- /dev/null +++ b/client/src/model/PostBanUserFromCommentResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostBanUserFromCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostBanUserFromCommentResponse::PostBanUserFromCommentResponse() +{ + m_StatusIsSet = false; + m_ChangelogIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostBanUserFromCommentResponse::~PostBanUserFromCommentResponse() +{ +} + +void PostBanUserFromCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostBanUserFromCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ChangelogIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("changelog"))] = ModelBase::toJson(m_Changelog); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostBanUserFromCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("changelog")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("changelog"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setChangelog; + ok &= ModelBase::fromJson(fieldValue, refVal_setChangelog); + setChangelog(refVal_setChangelog); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostBanUserFromCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ChangelogIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("changelog")), m_Changelog)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostBanUserFromCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("changelog")))) + { + std::shared_ptr refVal_setChangelog; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("changelog"))), refVal_setChangelog ); + setChangelog(refVal_setChangelog); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostBanUserFromCommentResponse::getStatus() const +{ + return m_Status; +} + + +void PostBanUserFromCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostBanUserFromCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostBanUserFromCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr PostBanUserFromCommentResponse::getChangelog() const +{ + return m_Changelog; +} + + +void PostBanUserFromCommentResponse::setChangelog(const std::shared_ptr& value) +{ + m_Changelog = value; + m_ChangelogIsSet = true; +} + +bool PostBanUserFromCommentResponse::changelogIsSet() const +{ + return m_ChangelogIsSet; +} + +void PostBanUserFromCommentResponse::unsetChangelog() +{ + m_ChangelogIsSet = false; +} +utility::string_t PostBanUserFromCommentResponse::getCode() const +{ + return m_Code; +} + + +void PostBanUserFromCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostBanUserFromCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostBanUserFromCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostBanUserFromCommentResponse::getReason() const +{ + return m_Reason; +} + + +void PostBanUserFromCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostBanUserFromCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostBanUserFromCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostBanUserFromCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostBanUserFromCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostBanUserFromCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostBanUserFromCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostBanUserFromCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostBanUserFromCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostBanUserFromCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostBanUserFromCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostBanUserFromCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostBanUserFromCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostBanUserFromCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostBanUserFromCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostBanUserFromCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostBanUserFromCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostBanUserFromCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostBanUserFromCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostBanUserFromCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostBanUserFromCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostBanUserFromCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostBanUserFromCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostBanUserUndoResponse.cpp b/client/src/model/PostBanUserUndoResponse.cpp new file mode 100644 index 0000000..4894a06 --- /dev/null +++ b/client/src/model/PostBanUserUndoResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostBanUserUndoResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostBanUserUndoResponse::PostBanUserUndoResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostBanUserUndoResponse::~PostBanUserUndoResponse() +{ +} + +void PostBanUserUndoResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostBanUserUndoResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostBanUserUndoResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostBanUserUndoResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostBanUserUndoResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostBanUserUndoResponse::getStatus() const +{ + return m_Status; +} + + +void PostBanUserUndoResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostBanUserUndoResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostBanUserUndoResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostBanUserUndoResponse::getReason() const +{ + return m_Reason; +} + + +void PostBanUserUndoResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostBanUserUndoResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostBanUserUndoResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostBanUserUndoResponse::getCode() const +{ + return m_Code; +} + + +void PostBanUserUndoResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostBanUserUndoResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostBanUserUndoResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostBanUserUndoResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostBanUserUndoResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostBanUserUndoResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostBanUserUndoResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostBanUserUndoResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostBanUserUndoResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostBanUserUndoResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostBanUserUndoResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostBanUserUndoResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostBanUserUndoResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostBanUserUndoResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostBanUserUndoResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostBanUserUndoResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostBanUserUndoResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostBanUserUndoResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostBanUserUndoResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostBanUserUndoResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostBanUserUndoResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostBanUserUndoResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostBanUserUndoResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostBulkPreBanSummaryResponse.cpp b/client/src/model/PostBulkPreBanSummaryResponse.cpp new file mode 100644 index 0000000..0d83259 --- /dev/null +++ b/client/src/model/PostBulkPreBanSummaryResponse.cpp @@ -0,0 +1,703 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostBulkPreBanSummaryResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostBulkPreBanSummaryResponse::PostBulkPreBanSummaryResponse() +{ + m_StatusIsSet = false; + m_TotalRelatedCommentCount = 0; + m_TotalRelatedCommentCountIsSet = false; + m_EmailDomainsIsSet = false; + m_EmailsIsSet = false; + m_UserIdsIsSet = false; + m_IpHashesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostBulkPreBanSummaryResponse::~PostBulkPreBanSummaryResponse() +{ +} + +void PostBulkPreBanSummaryResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostBulkPreBanSummaryResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_TotalRelatedCommentCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount"))] = ModelBase::toJson(m_TotalRelatedCommentCount); + } + if(m_EmailDomainsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("emailDomains"))] = ModelBase::toJson(m_EmailDomains); + } + if(m_EmailsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("emails"))] = ModelBase::toJson(m_Emails); + } + if(m_UserIdsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("userIds"))] = ModelBase::toJson(m_UserIds); + } + if(m_IpHashesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("ipHashes"))] = ModelBase::toJson(m_IpHashes); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostBulkPreBanSummaryResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setTotalRelatedCommentCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setTotalRelatedCommentCount); + setTotalRelatedCommentCount(refVal_setTotalRelatedCommentCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailDomains")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailDomains"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setEmailDomains; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmailDomains); + setEmailDomains(refVal_setEmailDomains); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emails")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emails"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setEmails; + ok &= ModelBase::fromJson(fieldValue, refVal_setEmails); + setEmails(refVal_setEmails); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIds")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIds"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setUserIds; + ok &= ModelBase::fromJson(fieldValue, refVal_setUserIds); + setUserIds(refVal_setUserIds); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ipHashes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ipHashes"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setIpHashes; + ok &= ModelBase::fromJson(fieldValue, refVal_setIpHashes); + setIpHashes(refVal_setIpHashes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostBulkPreBanSummaryResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_TotalRelatedCommentCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount")), m_TotalRelatedCommentCount)); + } + if(m_EmailDomainsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailDomains")), m_EmailDomains)); + } + if(m_EmailsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emails")), m_Emails)); + } + if(m_UserIdsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIds")), m_UserIds)); + } + if(m_IpHashesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHashes")), m_IpHashes)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostBulkPreBanSummaryResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount")))) + { + int32_t refVal_setTotalRelatedCommentCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount"))), refVal_setTotalRelatedCommentCount ); + setTotalRelatedCommentCount(refVal_setTotalRelatedCommentCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailDomains")))) + { + std::vector refVal_setEmailDomains; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailDomains"))), refVal_setEmailDomains ); + setEmailDomains(refVal_setEmailDomains); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emails")))) + { + std::vector refVal_setEmails; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emails"))), refVal_setEmails ); + setEmails(refVal_setEmails); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIds")))) + { + std::vector refVal_setUserIds; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIds"))), refVal_setUserIds ); + setUserIds(refVal_setUserIds); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ipHashes")))) + { + std::vector refVal_setIpHashes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ipHashes"))), refVal_setIpHashes ); + setIpHashes(refVal_setIpHashes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostBulkPreBanSummaryResponse::getStatus() const +{ + return m_Status; +} + + +void PostBulkPreBanSummaryResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +int32_t PostBulkPreBanSummaryResponse::getTotalRelatedCommentCount() const +{ + return m_TotalRelatedCommentCount; +} + +void PostBulkPreBanSummaryResponse::setTotalRelatedCommentCount(int32_t value) +{ + m_TotalRelatedCommentCount = value; + m_TotalRelatedCommentCountIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::totalRelatedCommentCountIsSet() const +{ + return m_TotalRelatedCommentCountIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetTotalRelatedCommentCount() +{ + m_TotalRelatedCommentCountIsSet = false; +} +std::vector PostBulkPreBanSummaryResponse::getEmailDomains() const +{ + return m_EmailDomains; +} + + +void PostBulkPreBanSummaryResponse::setEmailDomains(const std::vector& value) +{ + m_EmailDomains = value; + m_EmailDomainsIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::emailDomainsIsSet() const +{ + return m_EmailDomainsIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetEmailDomains() +{ + m_EmailDomainsIsSet = false; +} +std::vector PostBulkPreBanSummaryResponse::getEmails() const +{ + return m_Emails; +} + + +void PostBulkPreBanSummaryResponse::setEmails(const std::vector& value) +{ + m_Emails = value; + m_EmailsIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::emailsIsSet() const +{ + return m_EmailsIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetEmails() +{ + m_EmailsIsSet = false; +} +std::vector PostBulkPreBanSummaryResponse::getUserIds() const +{ + return m_UserIds; +} + + +void PostBulkPreBanSummaryResponse::setUserIds(const std::vector& value) +{ + m_UserIds = value; + m_UserIdsIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::userIdsIsSet() const +{ + return m_UserIdsIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetUserIds() +{ + m_UserIdsIsSet = false; +} +std::vector PostBulkPreBanSummaryResponse::getIpHashes() const +{ + return m_IpHashes; +} + + +void PostBulkPreBanSummaryResponse::setIpHashes(const std::vector& value) +{ + m_IpHashes = value; + m_IpHashesIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::ipHashesIsSet() const +{ + return m_IpHashesIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetIpHashes() +{ + m_IpHashesIsSet = false; +} +utility::string_t PostBulkPreBanSummaryResponse::getReason() const +{ + return m_Reason; +} + + +void PostBulkPreBanSummaryResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostBulkPreBanSummaryResponse::getCode() const +{ + return m_Code; +} + + +void PostBulkPreBanSummaryResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostBulkPreBanSummaryResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostBulkPreBanSummaryResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostBulkPreBanSummaryResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostBulkPreBanSummaryResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostBulkPreBanSummaryResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostBulkPreBanSummaryResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostBulkPreBanSummaryResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostBulkPreBanSummaryResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostBulkPreBanSummaryResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostBulkPreBanSummaryResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostBulkPreBanSummaryResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostBulkPreBanSummaryResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostCommentsByIdsResponse.cpp b/client/src/model/PostCommentsByIdsResponse.cpp new file mode 100644 index 0000000..e2bc56a --- /dev/null +++ b/client/src/model/PostCommentsByIdsResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostCommentsByIdsResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostCommentsByIdsResponse::PostCommentsByIdsResponse() +{ + m_CommentsIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostCommentsByIdsResponse::~PostCommentsByIdsResponse() +{ +} + +void PostCommentsByIdsResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostCommentsByIdsResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostCommentsByIdsResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromJson(fieldValue, refVal_setComments); + setComments(refVal_setComments); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostCommentsByIdsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostCommentsByIdsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) + { + std::vector> refVal_setComments; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); + setComments(refVal_setComments); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> PostCommentsByIdsResponse::getComments() const +{ + return m_Comments; +} + + +void PostCommentsByIdsResponse::setComments(const std::vector>& value) +{ + m_Comments = value; + m_CommentsIsSet = true; +} + +bool PostCommentsByIdsResponse::commentsIsSet() const +{ + return m_CommentsIsSet; +} + +void PostCommentsByIdsResponse::unsetComments() +{ + m_CommentsIsSet = false; +} +std::shared_ptr PostCommentsByIdsResponse::getStatus() const +{ + return m_Status; +} + + +void PostCommentsByIdsResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostCommentsByIdsResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostCommentsByIdsResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostCommentsByIdsResponse::getReason() const +{ + return m_Reason; +} + + +void PostCommentsByIdsResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostCommentsByIdsResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostCommentsByIdsResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostCommentsByIdsResponse::getCode() const +{ + return m_Code; +} + + +void PostCommentsByIdsResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostCommentsByIdsResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostCommentsByIdsResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostCommentsByIdsResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostCommentsByIdsResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostCommentsByIdsResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostCommentsByIdsResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostCommentsByIdsResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostCommentsByIdsResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostCommentsByIdsResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostCommentsByIdsResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostCommentsByIdsResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostCommentsByIdsResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostCommentsByIdsResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostCommentsByIdsResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostCommentsByIdsResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostCommentsByIdsResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostCommentsByIdsResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostCommentsByIdsResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostCommentsByIdsResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostCommentsByIdsResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostCommentsByIdsResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostCommentsByIdsResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostFlagCommentResponse.cpp b/client/src/model/PostFlagCommentResponse.cpp new file mode 100644 index 0000000..a10e5e3 --- /dev/null +++ b/client/src/model/PostFlagCommentResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostFlagCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostFlagCommentResponse::PostFlagCommentResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostFlagCommentResponse::~PostFlagCommentResponse() +{ +} + +void PostFlagCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostFlagCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostFlagCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostFlagCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostFlagCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostFlagCommentResponse::getStatus() const +{ + return m_Status; +} + + +void PostFlagCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostFlagCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostFlagCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostFlagCommentResponse::getReason() const +{ + return m_Reason; +} + + +void PostFlagCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostFlagCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostFlagCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostFlagCommentResponse::getCode() const +{ + return m_Code; +} + + +void PostFlagCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostFlagCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostFlagCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostFlagCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostFlagCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostFlagCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostFlagCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostFlagCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostFlagCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostFlagCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostFlagCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostFlagCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostFlagCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostFlagCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostFlagCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostFlagCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostFlagCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostFlagCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostFlagCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostFlagCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostFlagCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostFlagCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostFlagCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostRemoveCommentResponse.cpp b/client/src/model/PostRemoveCommentResponse.cpp index 99f1262..c6fb4be 100644 --- a/client/src/model/PostRemoveCommentResponse.cpp +++ b/client/src/model/PostRemoveCommentResponse.cpp @@ -22,8 +22,20 @@ PostRemoveCommentResponse::PostRemoveCommentResponse() { m_Action = utility::conversions::to_string_t(""); m_ActionIsSet = false; - m_Status = utility::conversions::to_string_t(""); m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; } PostRemoveCommentResponse::~PostRemoveCommentResponse() @@ -48,6 +60,41 @@ web::json::value PostRemoveCommentResponse::toJson() const val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } return val; } @@ -71,12 +118,89 @@ bool PostRemoveCommentResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); if(!fieldValue.is_null()) { - utility::string_t refVal_setStatus; + std::shared_ptr refVal_setStatus; ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); setStatus(refVal_setStatus); } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } return ok; } @@ -95,6 +219,34 @@ void PostRemoveCommentResponse::toMultipart(std::shared_ptr m { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } } bool PostRemoveCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -114,10 +266,52 @@ bool PostRemoveCommentResponse::fromMultiPart(std::shared_ptr } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) { - utility::string_t refVal_setStatus; + std::shared_ptr refVal_setStatus; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); setStatus(refVal_setStatus); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } return ok; } @@ -143,13 +337,13 @@ void PostRemoveCommentResponse::unsetAction() { m_ActionIsSet = false; } -utility::string_t PostRemoveCommentResponse::getStatus() const +std::shared_ptr PostRemoveCommentResponse::getStatus() const { return m_Status; } -void PostRemoveCommentResponse::setStatus(const utility::string_t& value) +void PostRemoveCommentResponse::setStatus(const std::shared_ptr& value) { m_Status = value; m_StatusIsSet = true; @@ -164,6 +358,151 @@ void PostRemoveCommentResponse::unsetStatus() { m_StatusIsSet = false; } +utility::string_t PostRemoveCommentResponse::getReason() const +{ + return m_Reason; +} + + +void PostRemoveCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostRemoveCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostRemoveCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostRemoveCommentResponse::getCode() const +{ + return m_Code; +} + + +void PostRemoveCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostRemoveCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostRemoveCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostRemoveCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostRemoveCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostRemoveCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostRemoveCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostRemoveCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostRemoveCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostRemoveCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostRemoveCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostRemoveCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostRemoveCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostRemoveCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostRemoveCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostRemoveCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostRemoveCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostRemoveCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostRemoveCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostRemoveCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostRemoveCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostRemoveCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostRemoveCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} } } diff --git a/client/src/model/PostRestoreDeletedCommentResponse.cpp b/client/src/model/PostRestoreDeletedCommentResponse.cpp new file mode 100644 index 0000000..4a773b2 --- /dev/null +++ b/client/src/model/PostRestoreDeletedCommentResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostRestoreDeletedCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostRestoreDeletedCommentResponse::PostRestoreDeletedCommentResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostRestoreDeletedCommentResponse::~PostRestoreDeletedCommentResponse() +{ +} + +void PostRestoreDeletedCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostRestoreDeletedCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostRestoreDeletedCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostRestoreDeletedCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostRestoreDeletedCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostRestoreDeletedCommentResponse::getStatus() const +{ + return m_Status; +} + + +void PostRestoreDeletedCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostRestoreDeletedCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostRestoreDeletedCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostRestoreDeletedCommentResponse::getReason() const +{ + return m_Reason; +} + + +void PostRestoreDeletedCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostRestoreDeletedCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostRestoreDeletedCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostRestoreDeletedCommentResponse::getCode() const +{ + return m_Code; +} + + +void PostRestoreDeletedCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostRestoreDeletedCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostRestoreDeletedCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostRestoreDeletedCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostRestoreDeletedCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostRestoreDeletedCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostRestoreDeletedCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostRestoreDeletedCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostRestoreDeletedCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostRestoreDeletedCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostRestoreDeletedCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostRestoreDeletedCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostRestoreDeletedCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostRestoreDeletedCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostRestoreDeletedCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostRestoreDeletedCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostRestoreDeletedCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostRestoreDeletedCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostRestoreDeletedCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostRestoreDeletedCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostRestoreDeletedCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostRestoreDeletedCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostRestoreDeletedCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostSetCommentApprovalStatusResponse.cpp b/client/src/model/PostSetCommentApprovalStatusResponse.cpp new file mode 100644 index 0000000..b8e0bd5 --- /dev/null +++ b/client/src/model/PostSetCommentApprovalStatusResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostSetCommentApprovalStatusResponse::PostSetCommentApprovalStatusResponse() +{ + m_DidResetFlaggedCount = false; + m_DidResetFlaggedCountIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostSetCommentApprovalStatusResponse::~PostSetCommentApprovalStatusResponse() +{ +} + +void PostSetCommentApprovalStatusResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostSetCommentApprovalStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_DidResetFlaggedCountIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount"))] = ModelBase::toJson(m_DidResetFlaggedCount); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostSetCommentApprovalStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount"))); + if(!fieldValue.is_null()) + { + bool refVal_setDidResetFlaggedCount; + ok &= ModelBase::fromJson(fieldValue, refVal_setDidResetFlaggedCount); + setDidResetFlaggedCount(refVal_setDidResetFlaggedCount); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostSetCommentApprovalStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_DidResetFlaggedCountIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount")), m_DidResetFlaggedCount)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostSetCommentApprovalStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount")))) + { + bool refVal_setDidResetFlaggedCount; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount"))), refVal_setDidResetFlaggedCount ); + setDidResetFlaggedCount(refVal_setDidResetFlaggedCount); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +bool PostSetCommentApprovalStatusResponse::isDidResetFlaggedCount() const +{ + return m_DidResetFlaggedCount; +} + +void PostSetCommentApprovalStatusResponse::setDidResetFlaggedCount(bool value) +{ + m_DidResetFlaggedCount = value; + m_DidResetFlaggedCountIsSet = true; +} + +bool PostSetCommentApprovalStatusResponse::didResetFlaggedCountIsSet() const +{ + return m_DidResetFlaggedCountIsSet; +} + +void PostSetCommentApprovalStatusResponse::unsetDidResetFlaggedCount() +{ + m_DidResetFlaggedCountIsSet = false; +} +std::shared_ptr PostSetCommentApprovalStatusResponse::getStatus() const +{ + return m_Status; +} + + +void PostSetCommentApprovalStatusResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostSetCommentApprovalStatusResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostSetCommentApprovalStatusResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostSetCommentApprovalStatusResponse::getReason() const +{ + return m_Reason; +} + + +void PostSetCommentApprovalStatusResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostSetCommentApprovalStatusResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostSetCommentApprovalStatusResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostSetCommentApprovalStatusResponse::getCode() const +{ + return m_Code; +} + + +void PostSetCommentApprovalStatusResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostSetCommentApprovalStatusResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostSetCommentApprovalStatusResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostSetCommentApprovalStatusResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostSetCommentApprovalStatusResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostSetCommentApprovalStatusResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostSetCommentApprovalStatusResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostSetCommentApprovalStatusResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostSetCommentApprovalStatusResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostSetCommentApprovalStatusResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostSetCommentApprovalStatusResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostSetCommentApprovalStatusResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostSetCommentApprovalStatusResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostSetCommentApprovalStatusResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostSetCommentApprovalStatusResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostSetCommentApprovalStatusResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostSetCommentApprovalStatusResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostSetCommentApprovalStatusResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostSetCommentApprovalStatusResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostSetCommentApprovalStatusResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostSetCommentApprovalStatusResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostSetCommentApprovalStatusResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostSetCommentApprovalStatusResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostSetCommentReviewStatusResponse.cpp b/client/src/model/PostSetCommentReviewStatusResponse.cpp new file mode 100644 index 0000000..5509284 --- /dev/null +++ b/client/src/model/PostSetCommentReviewStatusResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostSetCommentReviewStatusResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostSetCommentReviewStatusResponse::PostSetCommentReviewStatusResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostSetCommentReviewStatusResponse::~PostSetCommentReviewStatusResponse() +{ +} + +void PostSetCommentReviewStatusResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostSetCommentReviewStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostSetCommentReviewStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostSetCommentReviewStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostSetCommentReviewStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostSetCommentReviewStatusResponse::getStatus() const +{ + return m_Status; +} + + +void PostSetCommentReviewStatusResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostSetCommentReviewStatusResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostSetCommentReviewStatusResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostSetCommentReviewStatusResponse::getReason() const +{ + return m_Reason; +} + + +void PostSetCommentReviewStatusResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostSetCommentReviewStatusResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostSetCommentReviewStatusResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostSetCommentReviewStatusResponse::getCode() const +{ + return m_Code; +} + + +void PostSetCommentReviewStatusResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostSetCommentReviewStatusResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostSetCommentReviewStatusResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostSetCommentReviewStatusResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostSetCommentReviewStatusResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostSetCommentReviewStatusResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostSetCommentReviewStatusResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostSetCommentReviewStatusResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostSetCommentReviewStatusResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostSetCommentReviewStatusResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostSetCommentReviewStatusResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostSetCommentReviewStatusResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostSetCommentReviewStatusResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostSetCommentReviewStatusResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostSetCommentReviewStatusResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostSetCommentReviewStatusResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostSetCommentReviewStatusResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostSetCommentReviewStatusResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostSetCommentReviewStatusResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostSetCommentReviewStatusResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostSetCommentReviewStatusResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostSetCommentReviewStatusResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostSetCommentReviewStatusResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostSetCommentSpamStatusResponse.cpp b/client/src/model/PostSetCommentSpamStatusResponse.cpp new file mode 100644 index 0000000..27af4b3 --- /dev/null +++ b/client/src/model/PostSetCommentSpamStatusResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostSetCommentSpamStatusResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostSetCommentSpamStatusResponse::PostSetCommentSpamStatusResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostSetCommentSpamStatusResponse::~PostSetCommentSpamStatusResponse() +{ +} + +void PostSetCommentSpamStatusResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostSetCommentSpamStatusResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostSetCommentSpamStatusResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostSetCommentSpamStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostSetCommentSpamStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostSetCommentSpamStatusResponse::getStatus() const +{ + return m_Status; +} + + +void PostSetCommentSpamStatusResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostSetCommentSpamStatusResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostSetCommentSpamStatusResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostSetCommentSpamStatusResponse::getReason() const +{ + return m_Reason; +} + + +void PostSetCommentSpamStatusResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostSetCommentSpamStatusResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostSetCommentSpamStatusResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostSetCommentSpamStatusResponse::getCode() const +{ + return m_Code; +} + + +void PostSetCommentSpamStatusResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostSetCommentSpamStatusResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostSetCommentSpamStatusResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostSetCommentSpamStatusResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostSetCommentSpamStatusResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostSetCommentSpamStatusResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostSetCommentSpamStatusResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostSetCommentSpamStatusResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostSetCommentSpamStatusResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostSetCommentSpamStatusResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostSetCommentSpamStatusResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostSetCommentSpamStatusResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostSetCommentSpamStatusResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostSetCommentSpamStatusResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostSetCommentSpamStatusResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostSetCommentSpamStatusResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostSetCommentSpamStatusResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostSetCommentSpamStatusResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostSetCommentSpamStatusResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostSetCommentSpamStatusResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostSetCommentSpamStatusResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostSetCommentSpamStatusResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostSetCommentSpamStatusResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostSetCommentTextResponse.cpp b/client/src/model/PostSetCommentTextResponse.cpp new file mode 100644 index 0000000..914dd66 --- /dev/null +++ b/client/src/model/PostSetCommentTextResponse.cpp @@ -0,0 +1,512 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostSetCommentTextResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostSetCommentTextResponse::PostSetCommentTextResponse() +{ + m_NewCommentTextHTML = utility::conversions::to_string_t(""); + m_NewCommentTextHTMLIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostSetCommentTextResponse::~PostSetCommentTextResponse() +{ +} + +void PostSetCommentTextResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostSetCommentTextResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_NewCommentTextHTMLIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML"))] = ModelBase::toJson(m_NewCommentTextHTML); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostSetCommentTextResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setNewCommentTextHTML; + ok &= ModelBase::fromJson(fieldValue, refVal_setNewCommentTextHTML); + setNewCommentTextHTML(refVal_setNewCommentTextHTML); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostSetCommentTextResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_NewCommentTextHTMLIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML")), m_NewCommentTextHTML)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostSetCommentTextResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML")))) + { + utility::string_t refVal_setNewCommentTextHTML; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML"))), refVal_setNewCommentTextHTML ); + setNewCommentTextHTML(refVal_setNewCommentTextHTML); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +utility::string_t PostSetCommentTextResponse::getNewCommentTextHTML() const +{ + return m_NewCommentTextHTML; +} + + +void PostSetCommentTextResponse::setNewCommentTextHTML(const utility::string_t& value) +{ + m_NewCommentTextHTML = value; + m_NewCommentTextHTMLIsSet = true; +} + +bool PostSetCommentTextResponse::newCommentTextHTMLIsSet() const +{ + return m_NewCommentTextHTMLIsSet; +} + +void PostSetCommentTextResponse::unsetNewCommentTextHTML() +{ + m_NewCommentTextHTMLIsSet = false; +} +std::shared_ptr PostSetCommentTextResponse::getStatus() const +{ + return m_Status; +} + + +void PostSetCommentTextResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostSetCommentTextResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostSetCommentTextResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostSetCommentTextResponse::getReason() const +{ + return m_Reason; +} + + +void PostSetCommentTextResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostSetCommentTextResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostSetCommentTextResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostSetCommentTextResponse::getCode() const +{ + return m_Code; +} + + +void PostSetCommentTextResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostSetCommentTextResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostSetCommentTextResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostSetCommentTextResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostSetCommentTextResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostSetCommentTextResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostSetCommentTextResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostSetCommentTextResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostSetCommentTextResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostSetCommentTextResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostSetCommentTextResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostSetCommentTextResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostSetCommentTextResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostSetCommentTextResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostSetCommentTextResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostSetCommentTextResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostSetCommentTextResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostSetCommentTextResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostSetCommentTextResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostSetCommentTextResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostSetCommentTextResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostSetCommentTextResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostSetCommentTextResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostUnFlagCommentResponse.cpp b/client/src/model/PostUnFlagCommentResponse.cpp new file mode 100644 index 0000000..327c1d6 --- /dev/null +++ b/client/src/model/PostUnFlagCommentResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostUnFlagCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostUnFlagCommentResponse::PostUnFlagCommentResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostUnFlagCommentResponse::~PostUnFlagCommentResponse() +{ +} + +void PostUnFlagCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostUnFlagCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostUnFlagCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostUnFlagCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostUnFlagCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostUnFlagCommentResponse::getStatus() const +{ + return m_Status; +} + + +void PostUnFlagCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostUnFlagCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostUnFlagCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostUnFlagCommentResponse::getReason() const +{ + return m_Reason; +} + + +void PostUnFlagCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostUnFlagCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostUnFlagCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostUnFlagCommentResponse::getCode() const +{ + return m_Code; +} + + +void PostUnFlagCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostUnFlagCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostUnFlagCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostUnFlagCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostUnFlagCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostUnFlagCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostUnFlagCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostUnFlagCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostUnFlagCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostUnFlagCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostUnFlagCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostUnFlagCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostUnFlagCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostUnFlagCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostUnFlagCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostUnFlagCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostUnFlagCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostUnFlagCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostUnFlagCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostUnFlagCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostUnFlagCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostUnFlagCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostUnFlagCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PostVoteResponse.cpp b/client/src/model/PostVoteResponse.cpp new file mode 100644 index 0000000..ec114f3 --- /dev/null +++ b/client/src/model/PostVoteResponse.cpp @@ -0,0 +1,657 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PostVoteResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PostVoteResponse::PostVoteResponse() +{ + m_StatusIsSet = false; + m_VoteId = utility::conversions::to_string_t(""); + m_VoteIdIsSet = false; + m_IsVerified = false; + m_IsVerifiedIsSet = false; + m_UserIsSet = false; + m_EditKey = utility::conversions::to_string_t(""); + m_EditKeyIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PostVoteResponse::~PostVoteResponse() +{ +} + +void PostVoteResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PostVoteResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_VoteIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("voteId"))] = ModelBase::toJson(m_VoteId); + } + if(m_IsVerifiedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isVerified"))] = ModelBase::toJson(m_IsVerified); + } + if(m_UserIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + } + if(m_EditKeyIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PostVoteResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("voteId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("voteId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setVoteId; + ok &= ModelBase::fromJson(fieldValue, refVal_setVoteId); + setVoteId(refVal_setVoteId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isVerified"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsVerified; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsVerified); + setIsVerified(refVal_setIsVerified); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setUser); + setUser(refVal_setUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("editKey")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("editKey"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setEditKey; + ok &= ModelBase::fromJson(fieldValue, refVal_setEditKey); + setEditKey(refVal_setEditKey); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PostVoteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_VoteIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteId")), m_VoteId)); + } + if(m_IsVerifiedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isVerified")), m_IsVerified)); + } + if(m_UserIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + } + if(m_EditKeyIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("editKey")), m_EditKey)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PostVoteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteId")))) + { + utility::string_t refVal_setVoteId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("voteId"))), refVal_setVoteId ); + setVoteId(refVal_setVoteId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) + { + bool refVal_setIsVerified; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isVerified"))), refVal_setIsVerified ); + setIsVerified(refVal_setIsVerified); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); + setUser(refVal_setUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("editKey")))) + { + utility::string_t refVal_setEditKey; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("editKey"))), refVal_setEditKey ); + setEditKey(refVal_setEditKey); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PostVoteResponse::getStatus() const +{ + return m_Status; +} + + +void PostVoteResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PostVoteResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PostVoteResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PostVoteResponse::getVoteId() const +{ + return m_VoteId; +} + + +void PostVoteResponse::setVoteId(const utility::string_t& value) +{ + m_VoteId = value; + m_VoteIdIsSet = true; +} + +bool PostVoteResponse::voteIdIsSet() const +{ + return m_VoteIdIsSet; +} + +void PostVoteResponse::unsetVoteId() +{ + m_VoteIdIsSet = false; +} +bool PostVoteResponse::isIsVerified() const +{ + return m_IsVerified; +} + +void PostVoteResponse::setIsVerified(bool value) +{ + m_IsVerified = value; + m_IsVerifiedIsSet = true; +} + +bool PostVoteResponse::isVerifiedIsSet() const +{ + return m_IsVerifiedIsSet; +} + +void PostVoteResponse::unsetIsVerified() +{ + m_IsVerifiedIsSet = false; +} +std::shared_ptr PostVoteResponse::getUser() const +{ + return m_User; +} + + +void PostVoteResponse::setUser(const std::shared_ptr& value) +{ + m_User = value; + m_UserIsSet = true; +} + +bool PostVoteResponse::userIsSet() const +{ + return m_UserIsSet; +} + +void PostVoteResponse::unsetUser() +{ + m_UserIsSet = false; +} +utility::string_t PostVoteResponse::getEditKey() const +{ + return m_EditKey; +} + + +void PostVoteResponse::setEditKey(const utility::string_t& value) +{ + m_EditKey = value; + m_EditKeyIsSet = true; +} + +bool PostVoteResponse::editKeyIsSet() const +{ + return m_EditKeyIsSet; +} + +void PostVoteResponse::unsetEditKey() +{ + m_EditKeyIsSet = false; +} +utility::string_t PostVoteResponse::getReason() const +{ + return m_Reason; +} + + +void PostVoteResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PostVoteResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PostVoteResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PostVoteResponse::getCode() const +{ + return m_Code; +} + + +void PostVoteResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PostVoteResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PostVoteResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PostVoteResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PostVoteResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PostVoteResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PostVoteResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PostVoteResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PostVoteResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PostVoteResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PostVoteResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PostVoteResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PostVoteResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PostVoteResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PostVoteResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PostVoteResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PostVoteResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PostVoteResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PostVoteResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PostVoteResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PostVoteResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PostVoteResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PostVoteResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PutAwardBadgeResponse.cpp b/client/src/model/PutAwardBadgeResponse.cpp new file mode 100644 index 0000000..5949f66 --- /dev/null +++ b/client/src/model/PutAwardBadgeResponse.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PutAwardBadgeResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PutAwardBadgeResponse::PutAwardBadgeResponse() +{ + m_NotesIsSet = false; + m_BadgesIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PutAwardBadgeResponse::~PutAwardBadgeResponse() +{ +} + +void PutAwardBadgeResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PutAwardBadgeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_NotesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("notes"))] = ModelBase::toJson(m_Notes); + } + if(m_BadgesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PutAwardBadgeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notes")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notes"))); + if(!fieldValue.is_null()) + { + std::vector refVal_setNotes; + ok &= ModelBase::fromJson(fieldValue, refVal_setNotes); + setNotes(refVal_setNotes); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); + setBadges(refVal_setBadges); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PutAwardBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_NotesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notes")), m_Notes)); + } + if(m_BadgesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PutAwardBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notes")))) + { + std::vector refVal_setNotes; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notes"))), refVal_setNotes ); + setNotes(refVal_setNotes); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); + setBadges(refVal_setBadges); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector PutAwardBadgeResponse::getNotes() const +{ + return m_Notes; +} + + +void PutAwardBadgeResponse::setNotes(const std::vector& value) +{ + m_Notes = value; + m_NotesIsSet = true; +} + +bool PutAwardBadgeResponse::notesIsSet() const +{ + return m_NotesIsSet; +} + +void PutAwardBadgeResponse::unsetNotes() +{ + m_NotesIsSet = false; +} +std::vector> PutAwardBadgeResponse::getBadges() const +{ + return m_Badges; +} + + +void PutAwardBadgeResponse::setBadges(const std::vector>& value) +{ + m_Badges = value; + m_BadgesIsSet = true; +} + +bool PutAwardBadgeResponse::badgesIsSet() const +{ + return m_BadgesIsSet; +} + +void PutAwardBadgeResponse::unsetBadges() +{ + m_BadgesIsSet = false; +} +std::shared_ptr PutAwardBadgeResponse::getStatus() const +{ + return m_Status; +} + + +void PutAwardBadgeResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PutAwardBadgeResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PutAwardBadgeResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PutAwardBadgeResponse::getReason() const +{ + return m_Reason; +} + + +void PutAwardBadgeResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PutAwardBadgeResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PutAwardBadgeResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PutAwardBadgeResponse::getCode() const +{ + return m_Code; +} + + +void PutAwardBadgeResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PutAwardBadgeResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PutAwardBadgeResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PutAwardBadgeResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PutAwardBadgeResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PutAwardBadgeResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PutAwardBadgeResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PutAwardBadgeResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PutAwardBadgeResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PutAwardBadgeResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PutAwardBadgeResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PutAwardBadgeResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PutAwardBadgeResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PutAwardBadgeResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PutAwardBadgeResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PutAwardBadgeResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PutAwardBadgeResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PutAwardBadgeResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PutAwardBadgeResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PutAwardBadgeResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PutAwardBadgeResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PutAwardBadgeResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PutAwardBadgeResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PutCloseThreadResponse.cpp b/client/src/model/PutCloseThreadResponse.cpp new file mode 100644 index 0000000..c9e9d0d --- /dev/null +++ b/client/src/model/PutCloseThreadResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PutCloseThreadResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PutCloseThreadResponse::PutCloseThreadResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PutCloseThreadResponse::~PutCloseThreadResponse() +{ +} + +void PutCloseThreadResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PutCloseThreadResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PutCloseThreadResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PutCloseThreadResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PutCloseThreadResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PutCloseThreadResponse::getStatus() const +{ + return m_Status; +} + + +void PutCloseThreadResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PutCloseThreadResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PutCloseThreadResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PutCloseThreadResponse::getReason() const +{ + return m_Reason; +} + + +void PutCloseThreadResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PutCloseThreadResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PutCloseThreadResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PutCloseThreadResponse::getCode() const +{ + return m_Code; +} + + +void PutCloseThreadResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PutCloseThreadResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PutCloseThreadResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PutCloseThreadResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PutCloseThreadResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PutCloseThreadResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PutCloseThreadResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PutCloseThreadResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PutCloseThreadResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PutCloseThreadResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PutCloseThreadResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PutCloseThreadResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PutCloseThreadResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PutCloseThreadResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PutCloseThreadResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PutCloseThreadResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PutCloseThreadResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PutCloseThreadResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PutCloseThreadResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PutCloseThreadResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PutCloseThreadResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PutCloseThreadResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PutCloseThreadResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PutRemoveBadgeResponse.cpp b/client/src/model/PutRemoveBadgeResponse.cpp new file mode 100644 index 0000000..f2ff2f3 --- /dev/null +++ b/client/src/model/PutRemoveBadgeResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PutRemoveBadgeResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PutRemoveBadgeResponse::PutRemoveBadgeResponse() +{ + m_BadgesIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PutRemoveBadgeResponse::~PutRemoveBadgeResponse() +{ +} + +void PutRemoveBadgeResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PutRemoveBadgeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_BadgesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PutRemoveBadgeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); + setBadges(refVal_setBadges); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PutRemoveBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_BadgesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PutRemoveBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) + { + std::vector> refVal_setBadges; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); + setBadges(refVal_setBadges); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::vector> PutRemoveBadgeResponse::getBadges() const +{ + return m_Badges; +} + + +void PutRemoveBadgeResponse::setBadges(const std::vector>& value) +{ + m_Badges = value; + m_BadgesIsSet = true; +} + +bool PutRemoveBadgeResponse::badgesIsSet() const +{ + return m_BadgesIsSet; +} + +void PutRemoveBadgeResponse::unsetBadges() +{ + m_BadgesIsSet = false; +} +std::shared_ptr PutRemoveBadgeResponse::getStatus() const +{ + return m_Status; +} + + +void PutRemoveBadgeResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PutRemoveBadgeResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PutRemoveBadgeResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PutRemoveBadgeResponse::getReason() const +{ + return m_Reason; +} + + +void PutRemoveBadgeResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PutRemoveBadgeResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PutRemoveBadgeResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PutRemoveBadgeResponse::getCode() const +{ + return m_Code; +} + + +void PutRemoveBadgeResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PutRemoveBadgeResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PutRemoveBadgeResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PutRemoveBadgeResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PutRemoveBadgeResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PutRemoveBadgeResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PutRemoveBadgeResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PutRemoveBadgeResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PutRemoveBadgeResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PutRemoveBadgeResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PutRemoveBadgeResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PutRemoveBadgeResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PutRemoveBadgeResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PutRemoveBadgeResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PutRemoveBadgeResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PutRemoveBadgeResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PutRemoveBadgeResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PutRemoveBadgeResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PutRemoveBadgeResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PutRemoveBadgeResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PutRemoveBadgeResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PutRemoveBadgeResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PutRemoveBadgeResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/PutReopenThreadResponse.cpp b/client/src/model/PutReopenThreadResponse.cpp new file mode 100644 index 0000000..e1a4ee8 --- /dev/null +++ b/client/src/model/PutReopenThreadResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/PutReopenThreadResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +PutReopenThreadResponse::PutReopenThreadResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +PutReopenThreadResponse::~PutReopenThreadResponse() +{ +} + +void PutReopenThreadResponse::validate() +{ + // TODO: implement validation +} + +web::json::value PutReopenThreadResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool PutReopenThreadResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void PutReopenThreadResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool PutReopenThreadResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr PutReopenThreadResponse::getStatus() const +{ + return m_Status; +} + + +void PutReopenThreadResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool PutReopenThreadResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void PutReopenThreadResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t PutReopenThreadResponse::getReason() const +{ + return m_Reason; +} + + +void PutReopenThreadResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool PutReopenThreadResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void PutReopenThreadResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t PutReopenThreadResponse::getCode() const +{ + return m_Code; +} + + +void PutReopenThreadResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool PutReopenThreadResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void PutReopenThreadResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t PutReopenThreadResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void PutReopenThreadResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool PutReopenThreadResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void PutReopenThreadResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t PutReopenThreadResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void PutReopenThreadResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool PutReopenThreadResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void PutReopenThreadResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t PutReopenThreadResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void PutReopenThreadResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool PutReopenThreadResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void PutReopenThreadResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t PutReopenThreadResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void PutReopenThreadResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool PutReopenThreadResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void PutReopenThreadResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr PutReopenThreadResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void PutReopenThreadResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool PutReopenThreadResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void PutReopenThreadResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ReactFeedPostPublicResponse.cpp b/client/src/model/ReactFeedPostPublicResponse.cpp new file mode 100644 index 0000000..7a188d1 --- /dev/null +++ b/client/src/model/ReactFeedPostPublicResponse.cpp @@ -0,0 +1,560 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ReactFeedPostPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ReactFeedPostPublicResponse::ReactFeedPostPublicResponse() +{ + m_StatusIsSet = false; + m_ReactType = utility::conversions::to_string_t(""); + m_ReactTypeIsSet = false; + m_IsUndo = false; + m_IsUndoIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +ReactFeedPostPublicResponse::~ReactFeedPostPublicResponse() +{ +} + +void ReactFeedPostPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ReactFeedPostPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReactTypeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reactType"))] = ModelBase::toJson(m_ReactType); + } + if(m_IsUndoIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isUndo"))] = ModelBase::toJson(m_IsUndo); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool ReactFeedPostPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reactType")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reactType"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReactType; + ok &= ModelBase::fromJson(fieldValue, refVal_setReactType); + setReactType(refVal_setReactType); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isUndo")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isUndo"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsUndo; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsUndo); + setIsUndo(refVal_setIsUndo); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void ReactFeedPostPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReactTypeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reactType")), m_ReactType)); + } + if(m_IsUndoIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isUndo")), m_IsUndo)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool ReactFeedPostPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reactType")))) + { + utility::string_t refVal_setReactType; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reactType"))), refVal_setReactType ); + setReactType(refVal_setReactType); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isUndo")))) + { + bool refVal_setIsUndo; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isUndo"))), refVal_setIsUndo ); + setIsUndo(refVal_setIsUndo); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr ReactFeedPostPublicResponse::getStatus() const +{ + return m_Status; +} + + +void ReactFeedPostPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ReactFeedPostPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ReactFeedPostPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t ReactFeedPostPublicResponse::getReactType() const +{ + return m_ReactType; +} + + +void ReactFeedPostPublicResponse::setReactType(const utility::string_t& value) +{ + m_ReactType = value; + m_ReactTypeIsSet = true; +} + +bool ReactFeedPostPublicResponse::reactTypeIsSet() const +{ + return m_ReactTypeIsSet; +} + +void ReactFeedPostPublicResponse::unsetReactType() +{ + m_ReactTypeIsSet = false; +} +bool ReactFeedPostPublicResponse::isIsUndo() const +{ + return m_IsUndo; +} + +void ReactFeedPostPublicResponse::setIsUndo(bool value) +{ + m_IsUndo = value; + m_IsUndoIsSet = true; +} + +bool ReactFeedPostPublicResponse::isUndoIsSet() const +{ + return m_IsUndoIsSet; +} + +void ReactFeedPostPublicResponse::unsetIsUndo() +{ + m_IsUndoIsSet = false; +} +utility::string_t ReactFeedPostPublicResponse::getReason() const +{ + return m_Reason; +} + + +void ReactFeedPostPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool ReactFeedPostPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void ReactFeedPostPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t ReactFeedPostPublicResponse::getCode() const +{ + return m_Code; +} + + +void ReactFeedPostPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool ReactFeedPostPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void ReactFeedPostPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t ReactFeedPostPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void ReactFeedPostPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool ReactFeedPostPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void ReactFeedPostPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t ReactFeedPostPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void ReactFeedPostPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool ReactFeedPostPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void ReactFeedPostPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t ReactFeedPostPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void ReactFeedPostPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool ReactFeedPostPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void ReactFeedPostPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t ReactFeedPostPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void ReactFeedPostPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool ReactFeedPostPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void ReactFeedPostPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr ReactFeedPostPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void ReactFeedPostPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool ReactFeedPostPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void ReactFeedPostPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/RenderEmailTemplateResponse_1.cpp b/client/src/model/RenderEmailTemplateResponse_1.cpp new file mode 100644 index 0000000..a393599 --- /dev/null +++ b/client/src/model/RenderEmailTemplateResponse_1.cpp @@ -0,0 +1,512 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/RenderEmailTemplateResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +RenderEmailTemplateResponse_1::RenderEmailTemplateResponse_1() +{ + m_StatusIsSet = false; + m_Html = utility::conversions::to_string_t(""); + m_HtmlIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +RenderEmailTemplateResponse_1::~RenderEmailTemplateResponse_1() +{ +} + +void RenderEmailTemplateResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value RenderEmailTemplateResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_HtmlIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("html"))] = ModelBase::toJson(m_Html); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool RenderEmailTemplateResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("html")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("html"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setHtml; + ok &= ModelBase::fromJson(fieldValue, refVal_setHtml); + setHtml(refVal_setHtml); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void RenderEmailTemplateResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_HtmlIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("html")), m_Html)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool RenderEmailTemplateResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("html")))) + { + utility::string_t refVal_setHtml; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("html"))), refVal_setHtml ); + setHtml(refVal_setHtml); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr RenderEmailTemplateResponse_1::getStatus() const +{ + return m_Status; +} + + +void RenderEmailTemplateResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool RenderEmailTemplateResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void RenderEmailTemplateResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t RenderEmailTemplateResponse_1::getHtml() const +{ + return m_Html; +} + + +void RenderEmailTemplateResponse_1::setHtml(const utility::string_t& value) +{ + m_Html = value; + m_HtmlIsSet = true; +} + +bool RenderEmailTemplateResponse_1::htmlIsSet() const +{ + return m_HtmlIsSet; +} + +void RenderEmailTemplateResponse_1::unsetHtml() +{ + m_HtmlIsSet = false; +} +utility::string_t RenderEmailTemplateResponse_1::getReason() const +{ + return m_Reason; +} + + +void RenderEmailTemplateResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool RenderEmailTemplateResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void RenderEmailTemplateResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t RenderEmailTemplateResponse_1::getCode() const +{ + return m_Code; +} + + +void RenderEmailTemplateResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool RenderEmailTemplateResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void RenderEmailTemplateResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t RenderEmailTemplateResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void RenderEmailTemplateResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool RenderEmailTemplateResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void RenderEmailTemplateResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t RenderEmailTemplateResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void RenderEmailTemplateResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool RenderEmailTemplateResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void RenderEmailTemplateResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t RenderEmailTemplateResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void RenderEmailTemplateResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool RenderEmailTemplateResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void RenderEmailTemplateResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t RenderEmailTemplateResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void RenderEmailTemplateResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool RenderEmailTemplateResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void RenderEmailTemplateResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr RenderEmailTemplateResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void RenderEmailTemplateResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool RenderEmailTemplateResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void RenderEmailTemplateResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ReplaceTenantPackageResponse.cpp b/client/src/model/ReplaceTenantPackageResponse.cpp new file mode 100644 index 0000000..747d4d6 --- /dev/null +++ b/client/src/model/ReplaceTenantPackageResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ReplaceTenantPackageResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ReplaceTenantPackageResponse::ReplaceTenantPackageResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +ReplaceTenantPackageResponse::~ReplaceTenantPackageResponse() +{ +} + +void ReplaceTenantPackageResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ReplaceTenantPackageResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool ReplaceTenantPackageResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void ReplaceTenantPackageResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool ReplaceTenantPackageResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr ReplaceTenantPackageResponse::getStatus() const +{ + return m_Status; +} + + +void ReplaceTenantPackageResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ReplaceTenantPackageResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ReplaceTenantPackageResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t ReplaceTenantPackageResponse::getReason() const +{ + return m_Reason; +} + + +void ReplaceTenantPackageResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool ReplaceTenantPackageResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void ReplaceTenantPackageResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t ReplaceTenantPackageResponse::getCode() const +{ + return m_Code; +} + + +void ReplaceTenantPackageResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool ReplaceTenantPackageResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void ReplaceTenantPackageResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t ReplaceTenantPackageResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void ReplaceTenantPackageResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool ReplaceTenantPackageResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void ReplaceTenantPackageResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t ReplaceTenantPackageResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void ReplaceTenantPackageResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool ReplaceTenantPackageResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void ReplaceTenantPackageResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t ReplaceTenantPackageResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void ReplaceTenantPackageResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool ReplaceTenantPackageResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void ReplaceTenantPackageResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t ReplaceTenantPackageResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void ReplaceTenantPackageResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool ReplaceTenantPackageResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void ReplaceTenantPackageResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr ReplaceTenantPackageResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void ReplaceTenantPackageResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool ReplaceTenantPackageResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void ReplaceTenantPackageResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ReplaceTenantUserResponse.cpp b/client/src/model/ReplaceTenantUserResponse.cpp new file mode 100644 index 0000000..e2ed6d6 --- /dev/null +++ b/client/src/model/ReplaceTenantUserResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ReplaceTenantUserResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ReplaceTenantUserResponse::ReplaceTenantUserResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +ReplaceTenantUserResponse::~ReplaceTenantUserResponse() +{ +} + +void ReplaceTenantUserResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ReplaceTenantUserResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool ReplaceTenantUserResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void ReplaceTenantUserResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool ReplaceTenantUserResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr ReplaceTenantUserResponse::getStatus() const +{ + return m_Status; +} + + +void ReplaceTenantUserResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ReplaceTenantUserResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ReplaceTenantUserResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t ReplaceTenantUserResponse::getReason() const +{ + return m_Reason; +} + + +void ReplaceTenantUserResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool ReplaceTenantUserResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void ReplaceTenantUserResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t ReplaceTenantUserResponse::getCode() const +{ + return m_Code; +} + + +void ReplaceTenantUserResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool ReplaceTenantUserResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void ReplaceTenantUserResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t ReplaceTenantUserResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void ReplaceTenantUserResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool ReplaceTenantUserResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void ReplaceTenantUserResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t ReplaceTenantUserResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void ReplaceTenantUserResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool ReplaceTenantUserResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void ReplaceTenantUserResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t ReplaceTenantUserResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void ReplaceTenantUserResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool ReplaceTenantUserResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void ReplaceTenantUserResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t ReplaceTenantUserResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void ReplaceTenantUserResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool ReplaceTenantUserResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void ReplaceTenantUserResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr ReplaceTenantUserResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void ReplaceTenantUserResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool ReplaceTenantUserResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void ReplaceTenantUserResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ResetUserNotificationCountResponse.cpp b/client/src/model/ResetUserNotificationCountResponse.cpp new file mode 100644 index 0000000..85fb01e --- /dev/null +++ b/client/src/model/ResetUserNotificationCountResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ResetUserNotificationCountResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ResetUserNotificationCountResponse::ResetUserNotificationCountResponse() +{ + m_StatusIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +ResetUserNotificationCountResponse::~ResetUserNotificationCountResponse() +{ +} + +void ResetUserNotificationCountResponse::validate() +{ + // TODO: implement validation +} + +web::json::value ResetUserNotificationCountResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool ResetUserNotificationCountResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void ResetUserNotificationCountResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool ResetUserNotificationCountResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr ResetUserNotificationCountResponse::getStatus() const +{ + return m_Status; +} + + +void ResetUserNotificationCountResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ResetUserNotificationCountResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ResetUserNotificationCountResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t ResetUserNotificationCountResponse::getCode() const +{ + return m_Code; +} + + +void ResetUserNotificationCountResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool ResetUserNotificationCountResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void ResetUserNotificationCountResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t ResetUserNotificationCountResponse::getReason() const +{ + return m_Reason; +} + + +void ResetUserNotificationCountResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool ResetUserNotificationCountResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void ResetUserNotificationCountResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t ResetUserNotificationCountResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void ResetUserNotificationCountResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool ResetUserNotificationCountResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void ResetUserNotificationCountResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t ResetUserNotificationCountResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void ResetUserNotificationCountResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool ResetUserNotificationCountResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void ResetUserNotificationCountResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t ResetUserNotificationCountResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void ResetUserNotificationCountResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool ResetUserNotificationCountResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void ResetUserNotificationCountResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t ResetUserNotificationCountResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void ResetUserNotificationCountResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool ResetUserNotificationCountResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void ResetUserNotificationCountResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr ResetUserNotificationCountResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void ResetUserNotificationCountResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool ResetUserNotificationCountResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void ResetUserNotificationCountResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/ResetUserNotificationsResponse_1.cpp b/client/src/model/ResetUserNotificationsResponse_1.cpp new file mode 100644 index 0000000..9910a22 --- /dev/null +++ b/client/src/model/ResetUserNotificationsResponse_1.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/ResetUserNotificationsResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +ResetUserNotificationsResponse_1::ResetUserNotificationsResponse_1() +{ + m_StatusIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +ResetUserNotificationsResponse_1::~ResetUserNotificationsResponse_1() +{ +} + +void ResetUserNotificationsResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value ResetUserNotificationsResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool ResetUserNotificationsResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void ResetUserNotificationsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool ResetUserNotificationsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr ResetUserNotificationsResponse_1::getStatus() const +{ + return m_Status; +} + + +void ResetUserNotificationsResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool ResetUserNotificationsResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void ResetUserNotificationsResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t ResetUserNotificationsResponse_1::getCode() const +{ + return m_Code; +} + + +void ResetUserNotificationsResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool ResetUserNotificationsResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void ResetUserNotificationsResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t ResetUserNotificationsResponse_1::getReason() const +{ + return m_Reason; +} + + +void ResetUserNotificationsResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool ResetUserNotificationsResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void ResetUserNotificationsResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t ResetUserNotificationsResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void ResetUserNotificationsResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool ResetUserNotificationsResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void ResetUserNotificationsResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t ResetUserNotificationsResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void ResetUserNotificationsResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool ResetUserNotificationsResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void ResetUserNotificationsResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t ResetUserNotificationsResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void ResetUserNotificationsResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool ResetUserNotificationsResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void ResetUserNotificationsResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t ResetUserNotificationsResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void ResetUserNotificationsResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool ResetUserNotificationsResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void ResetUserNotificationsResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr ResetUserNotificationsResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void ResetUserNotificationsResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool ResetUserNotificationsResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void ResetUserNotificationsResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SaveCommentResponse.cpp b/client/src/model/SaveCommentResponse.cpp new file mode 100644 index 0000000..0331261 --- /dev/null +++ b/client/src/model/SaveCommentResponse.cpp @@ -0,0 +1,605 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SaveCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SaveCommentResponse::SaveCommentResponse() +{ + m_StatusIsSet = false; + m_CommentIsSet = false; + m_ModuleDataIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +SaveCommentResponse::~SaveCommentResponse() +{ +} + +void SaveCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value SaveCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CommentIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + } + if(m_User.has_value()) + { + + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); + } + if(m_ModuleDataIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool SaveCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromJson(fieldValue, refVal_setComment); + setComment(refVal_setComment); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setUser); + setUser(refVal_setUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moduleData"))); + if(!fieldValue.is_null()) + { + std::map> refVal_setModuleData; + ok &= ModelBase::fromJson(fieldValue, refVal_setModuleData); + setModuleData(refVal_setModuleData); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void SaveCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CommentIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + } + if(m_User.has_value()) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); + } + if(m_ModuleDataIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moduleData")), m_ModuleData)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool SaveCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); + setComment(refVal_setComment); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); + setUser(refVal_setUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) + { + std::map> refVal_setModuleData; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moduleData"))), refVal_setModuleData ); + setModuleData(refVal_setModuleData); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr SaveCommentResponse::getStatus() const +{ + return m_Status; +} + + +void SaveCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool SaveCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void SaveCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr SaveCommentResponse::getComment() const +{ + return m_Comment; +} + + +void SaveCommentResponse::setComment(const std::shared_ptr& value) +{ + m_Comment = value; + m_CommentIsSet = true; +} + +bool SaveCommentResponse::commentIsSet() const +{ + return m_CommentIsSet; +} + +void SaveCommentResponse::unsetComment() +{ + m_CommentIsSet = false; +} +std::shared_ptr SaveCommentResponse::getUser() const +{ + return m_User.get(); +} + + +void SaveCommentResponse::setUser(const std::shared_ptr& value) +{ + m_User = value; +} + +bool SaveCommentResponse::userIsSet() const +{ + return m_User.has_value(); +} + +void SaveCommentResponse::unsetUser() +{ + m_User.reset(); +} +std::map> SaveCommentResponse::getModuleData() const +{ + return m_ModuleData; +} + + +void SaveCommentResponse::setModuleData(const std::map>& value) +{ + m_ModuleData = value; + m_ModuleDataIsSet = true; +} + +bool SaveCommentResponse::moduleDataIsSet() const +{ + return m_ModuleDataIsSet; +} + +void SaveCommentResponse::unsetModuleData() +{ + m_ModuleDataIsSet = false; +} +utility::string_t SaveCommentResponse::getReason() const +{ + return m_Reason; +} + + +void SaveCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool SaveCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void SaveCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t SaveCommentResponse::getCode() const +{ + return m_Code; +} + + +void SaveCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool SaveCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void SaveCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t SaveCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void SaveCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool SaveCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void SaveCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t SaveCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void SaveCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool SaveCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void SaveCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t SaveCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void SaveCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool SaveCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void SaveCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t SaveCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void SaveCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool SaveCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void SaveCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr SaveCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void SaveCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool SaveCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void SaveCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SearchUsersResponse_1.cpp b/client/src/model/SearchUsersResponse_1.cpp new file mode 100644 index 0000000..f00fe9d --- /dev/null +++ b/client/src/model/SearchUsersResponse_1.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SearchUsersResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SearchUsersResponse_1::SearchUsersResponse_1() +{ + m_StatusIsSet = false; + m_SectionsIsSet = false; + m_UsersIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +SearchUsersResponse_1::~SearchUsersResponse_1() +{ +} + +void SearchUsersResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value SearchUsersResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_SectionsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("sections"))] = ModelBase::toJson(m_Sections); + } + if(m_UsersIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool SearchUsersResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sections")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sections"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setSections; + ok &= ModelBase::fromJson(fieldValue, refVal_setSections); + setSections(refVal_setSections); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); + if(!fieldValue.is_null()) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); + setUsers(refVal_setUsers); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void SearchUsersResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_SectionsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sections")), m_Sections)); + } + if(m_UsersIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool SearchUsersResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sections")))) + { + std::vector> refVal_setSections; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sections"))), refVal_setSections ); + setSections(refVal_setSections); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) + { + std::vector> refVal_setUsers; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); + setUsers(refVal_setUsers); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr SearchUsersResponse_1::getStatus() const +{ + return m_Status; +} + + +void SearchUsersResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool SearchUsersResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void SearchUsersResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +std::vector> SearchUsersResponse_1::getSections() const +{ + return m_Sections; +} + + +void SearchUsersResponse_1::setSections(const std::vector>& value) +{ + m_Sections = value; + m_SectionsIsSet = true; +} + +bool SearchUsersResponse_1::sectionsIsSet() const +{ + return m_SectionsIsSet; +} + +void SearchUsersResponse_1::unsetSections() +{ + m_SectionsIsSet = false; +} +std::vector> SearchUsersResponse_1::getUsers() const +{ + return m_Users; +} + + +void SearchUsersResponse_1::setUsers(const std::vector>& value) +{ + m_Users = value; + m_UsersIsSet = true; +} + +bool SearchUsersResponse_1::usersIsSet() const +{ + return m_UsersIsSet; +} + +void SearchUsersResponse_1::unsetUsers() +{ + m_UsersIsSet = false; +} +utility::string_t SearchUsersResponse_1::getReason() const +{ + return m_Reason; +} + + +void SearchUsersResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool SearchUsersResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void SearchUsersResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t SearchUsersResponse_1::getCode() const +{ + return m_Code; +} + + +void SearchUsersResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool SearchUsersResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void SearchUsersResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t SearchUsersResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void SearchUsersResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool SearchUsersResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void SearchUsersResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t SearchUsersResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void SearchUsersResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool SearchUsersResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void SearchUsersResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t SearchUsersResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void SearchUsersResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool SearchUsersResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void SearchUsersResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t SearchUsersResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void SearchUsersResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool SearchUsersResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void SearchUsersResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr SearchUsersResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void SearchUsersResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool SearchUsersResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void SearchUsersResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SendInviteResponse.cpp b/client/src/model/SendInviteResponse.cpp new file mode 100644 index 0000000..837c261 --- /dev/null +++ b/client/src/model/SendInviteResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SendInviteResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SendInviteResponse::SendInviteResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +SendInviteResponse::~SendInviteResponse() +{ +} + +void SendInviteResponse::validate() +{ + // TODO: implement validation +} + +web::json::value SendInviteResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool SendInviteResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void SendInviteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool SendInviteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr SendInviteResponse::getStatus() const +{ + return m_Status; +} + + +void SendInviteResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool SendInviteResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void SendInviteResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t SendInviteResponse::getReason() const +{ + return m_Reason; +} + + +void SendInviteResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool SendInviteResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void SendInviteResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t SendInviteResponse::getCode() const +{ + return m_Code; +} + + +void SendInviteResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool SendInviteResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void SendInviteResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t SendInviteResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void SendInviteResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool SendInviteResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void SendInviteResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t SendInviteResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void SendInviteResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool SendInviteResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void SendInviteResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t SendInviteResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void SendInviteResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool SendInviteResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void SendInviteResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t SendInviteResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void SendInviteResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool SendInviteResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void SendInviteResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr SendInviteResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void SendInviteResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool SendInviteResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void SendInviteResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SendLoginLinkResponse.cpp b/client/src/model/SendLoginLinkResponse.cpp new file mode 100644 index 0000000..b749e4b --- /dev/null +++ b/client/src/model/SendLoginLinkResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SendLoginLinkResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SendLoginLinkResponse::SendLoginLinkResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +SendLoginLinkResponse::~SendLoginLinkResponse() +{ +} + +void SendLoginLinkResponse::validate() +{ + // TODO: implement validation +} + +web::json::value SendLoginLinkResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool SendLoginLinkResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void SendLoginLinkResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool SendLoginLinkResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr SendLoginLinkResponse::getStatus() const +{ + return m_Status; +} + + +void SendLoginLinkResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool SendLoginLinkResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void SendLoginLinkResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t SendLoginLinkResponse::getReason() const +{ + return m_Reason; +} + + +void SendLoginLinkResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool SendLoginLinkResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void SendLoginLinkResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t SendLoginLinkResponse::getCode() const +{ + return m_Code; +} + + +void SendLoginLinkResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool SendLoginLinkResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void SendLoginLinkResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t SendLoginLinkResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void SendLoginLinkResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool SendLoginLinkResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void SendLoginLinkResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t SendLoginLinkResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void SendLoginLinkResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool SendLoginLinkResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void SendLoginLinkResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t SendLoginLinkResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void SendLoginLinkResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool SendLoginLinkResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void SendLoginLinkResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t SendLoginLinkResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void SendLoginLinkResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool SendLoginLinkResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void SendLoginLinkResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr SendLoginLinkResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void SendLoginLinkResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool SendLoginLinkResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void SendLoginLinkResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SetCommentTextResponse_1.cpp b/client/src/model/SetCommentTextResponse_1.cpp new file mode 100644 index 0000000..ec1789d --- /dev/null +++ b/client/src/model/SetCommentTextResponse_1.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SetCommentTextResponse_1.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SetCommentTextResponse_1::SetCommentTextResponse_1() +{ + m_CommentIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +SetCommentTextResponse_1::~SetCommentTextResponse_1() +{ +} + +void SetCommentTextResponse_1::validate() +{ + // TODO: implement validation +} + +web::json::value SetCommentTextResponse_1::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool SetCommentTextResponse_1::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromJson(fieldValue, refVal_setComment); + setComment(refVal_setComment); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void SetCommentTextResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool SetCommentTextResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) + { + std::shared_ptr refVal_setComment; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); + setComment(refVal_setComment); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr SetCommentTextResponse_1::getComment() const +{ + return m_Comment; +} + + +void SetCommentTextResponse_1::setComment(const std::shared_ptr& value) +{ + m_Comment = value; + m_CommentIsSet = true; +} + +bool SetCommentTextResponse_1::commentIsSet() const +{ + return m_CommentIsSet; +} + +void SetCommentTextResponse_1::unsetComment() +{ + m_CommentIsSet = false; +} +std::shared_ptr SetCommentTextResponse_1::getStatus() const +{ + return m_Status; +} + + +void SetCommentTextResponse_1::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool SetCommentTextResponse_1::statusIsSet() const +{ + return m_StatusIsSet; +} + +void SetCommentTextResponse_1::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t SetCommentTextResponse_1::getReason() const +{ + return m_Reason; +} + + +void SetCommentTextResponse_1::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool SetCommentTextResponse_1::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void SetCommentTextResponse_1::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t SetCommentTextResponse_1::getCode() const +{ + return m_Code; +} + + +void SetCommentTextResponse_1::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool SetCommentTextResponse_1::codeIsSet() const +{ + return m_CodeIsSet; +} + +void SetCommentTextResponse_1::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t SetCommentTextResponse_1::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void SetCommentTextResponse_1::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool SetCommentTextResponse_1::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void SetCommentTextResponse_1::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t SetCommentTextResponse_1::getBannedUntil() const +{ + return m_BannedUntil; +} + +void SetCommentTextResponse_1::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool SetCommentTextResponse_1::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void SetCommentTextResponse_1::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t SetCommentTextResponse_1::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void SetCommentTextResponse_1::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool SetCommentTextResponse_1::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void SetCommentTextResponse_1::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t SetCommentTextResponse_1::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void SetCommentTextResponse_1::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool SetCommentTextResponse_1::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void SetCommentTextResponse_1::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr SetCommentTextResponse_1::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void SetCommentTextResponse_1::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool SetCommentTextResponse_1::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void SetCommentTextResponse_1::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/SetTrustFactorResponse.cpp b/client/src/model/SetTrustFactorResponse.cpp new file mode 100644 index 0000000..c62c082 --- /dev/null +++ b/client/src/model/SetTrustFactorResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/SetTrustFactorResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +SetTrustFactorResponse::SetTrustFactorResponse() +{ + m_PreviousManualTrustFactor = 0.0; + m_PreviousManualTrustFactorIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +SetTrustFactorResponse::~SetTrustFactorResponse() +{ +} + +void SetTrustFactorResponse::validate() +{ + // TODO: implement validation +} + +web::json::value SetTrustFactorResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_PreviousManualTrustFactorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor"))] = ModelBase::toJson(m_PreviousManualTrustFactor); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool SetTrustFactorResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor"))); + if(!fieldValue.is_null()) + { + double refVal_setPreviousManualTrustFactor; + ok &= ModelBase::fromJson(fieldValue, refVal_setPreviousManualTrustFactor); + setPreviousManualTrustFactor(refVal_setPreviousManualTrustFactor); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void SetTrustFactorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_PreviousManualTrustFactorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor")), m_PreviousManualTrustFactor)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool SetTrustFactorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor")))) + { + double refVal_setPreviousManualTrustFactor; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor"))), refVal_setPreviousManualTrustFactor ); + setPreviousManualTrustFactor(refVal_setPreviousManualTrustFactor); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +double SetTrustFactorResponse::getPreviousManualTrustFactor() const +{ + return m_PreviousManualTrustFactor; +} + +void SetTrustFactorResponse::setPreviousManualTrustFactor(double value) +{ + m_PreviousManualTrustFactor = value; + m_PreviousManualTrustFactorIsSet = true; +} + +bool SetTrustFactorResponse::previousManualTrustFactorIsSet() const +{ + return m_PreviousManualTrustFactorIsSet; +} + +void SetTrustFactorResponse::unsetPreviousManualTrustFactor() +{ + m_PreviousManualTrustFactorIsSet = false; +} +std::shared_ptr SetTrustFactorResponse::getStatus() const +{ + return m_Status; +} + + +void SetTrustFactorResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool SetTrustFactorResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void SetTrustFactorResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t SetTrustFactorResponse::getReason() const +{ + return m_Reason; +} + + +void SetTrustFactorResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool SetTrustFactorResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void SetTrustFactorResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t SetTrustFactorResponse::getCode() const +{ + return m_Code; +} + + +void SetTrustFactorResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool SetTrustFactorResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void SetTrustFactorResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t SetTrustFactorResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void SetTrustFactorResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool SetTrustFactorResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void SetTrustFactorResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t SetTrustFactorResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void SetTrustFactorResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool SetTrustFactorResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void SetTrustFactorResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t SetTrustFactorResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void SetTrustFactorResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool SetTrustFactorResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void SetTrustFactorResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t SetTrustFactorResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void SetTrustFactorResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool SetTrustFactorResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void SetTrustFactorResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr SetTrustFactorResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void SetTrustFactorResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool SetTrustFactorResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void SetTrustFactorResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UnBlockCommentPublicResponse.cpp b/client/src/model/UnBlockCommentPublicResponse.cpp new file mode 100644 index 0000000..61093d3 --- /dev/null +++ b/client/src/model/UnBlockCommentPublicResponse.cpp @@ -0,0 +1,510 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UnBlockCommentPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UnBlockCommentPublicResponse::UnBlockCommentPublicResponse() +{ + m_StatusIsSet = false; + m_CommentStatusesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UnBlockCommentPublicResponse::~UnBlockCommentPublicResponse() +{ +} + +void UnBlockCommentPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UnBlockCommentPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CommentStatusesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UnBlockCommentPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); + if(!fieldValue.is_null()) + { + std::map refVal_setCommentStatuses; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); + setCommentStatuses(refVal_setCommentStatuses); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UnBlockCommentPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CommentStatusesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UnBlockCommentPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) + { + std::map refVal_setCommentStatuses; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); + setCommentStatuses(refVal_setCommentStatuses); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UnBlockCommentPublicResponse::getStatus() const +{ + return m_Status; +} + + +void UnBlockCommentPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UnBlockCommentPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UnBlockCommentPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::map UnBlockCommentPublicResponse::getCommentStatuses() const +{ + return m_CommentStatuses; +} + +void UnBlockCommentPublicResponse::setCommentStatuses(std::map value) +{ + m_CommentStatuses = value; + m_CommentStatusesIsSet = true; +} + +bool UnBlockCommentPublicResponse::commentStatusesIsSet() const +{ + return m_CommentStatusesIsSet; +} + +void UnBlockCommentPublicResponse::unsetCommentStatuses() +{ + m_CommentStatusesIsSet = false; +} +utility::string_t UnBlockCommentPublicResponse::getReason() const +{ + return m_Reason; +} + + +void UnBlockCommentPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UnBlockCommentPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UnBlockCommentPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UnBlockCommentPublicResponse::getCode() const +{ + return m_Code; +} + + +void UnBlockCommentPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UnBlockCommentPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UnBlockCommentPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UnBlockCommentPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UnBlockCommentPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UnBlockCommentPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UnBlockCommentPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UnBlockCommentPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UnBlockCommentPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UnBlockCommentPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UnBlockCommentPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UnBlockCommentPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UnBlockCommentPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UnBlockCommentPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UnBlockCommentPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UnBlockCommentPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UnBlockCommentPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UnBlockCommentPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UnBlockCommentPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UnBlockCommentPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UnBlockCommentPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UnBlockCommentPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UnBlockCommentPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UnBlockUserFromCommentResponse.cpp b/client/src/model/UnBlockUserFromCommentResponse.cpp new file mode 100644 index 0000000..2177a63 --- /dev/null +++ b/client/src/model/UnBlockUserFromCommentResponse.cpp @@ -0,0 +1,510 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UnBlockUserFromCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UnBlockUserFromCommentResponse::UnBlockUserFromCommentResponse() +{ + m_StatusIsSet = false; + m_CommentStatusesIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UnBlockUserFromCommentResponse::~UnBlockUserFromCommentResponse() +{ +} + +void UnBlockUserFromCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UnBlockUserFromCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CommentStatusesIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UnBlockUserFromCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); + if(!fieldValue.is_null()) + { + std::map refVal_setCommentStatuses; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); + setCommentStatuses(refVal_setCommentStatuses); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UnBlockUserFromCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CommentStatusesIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UnBlockUserFromCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) + { + std::map refVal_setCommentStatuses; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); + setCommentStatuses(refVal_setCommentStatuses); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UnBlockUserFromCommentResponse::getStatus() const +{ + return m_Status; +} + + +void UnBlockUserFromCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UnBlockUserFromCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UnBlockUserFromCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::map UnBlockUserFromCommentResponse::getCommentStatuses() const +{ + return m_CommentStatuses; +} + +void UnBlockUserFromCommentResponse::setCommentStatuses(std::map value) +{ + m_CommentStatuses = value; + m_CommentStatusesIsSet = true; +} + +bool UnBlockUserFromCommentResponse::commentStatusesIsSet() const +{ + return m_CommentStatusesIsSet; +} + +void UnBlockUserFromCommentResponse::unsetCommentStatuses() +{ + m_CommentStatusesIsSet = false; +} +utility::string_t UnBlockUserFromCommentResponse::getReason() const +{ + return m_Reason; +} + + +void UnBlockUserFromCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UnBlockUserFromCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UnBlockUserFromCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UnBlockUserFromCommentResponse::getCode() const +{ + return m_Code; +} + + +void UnBlockUserFromCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UnBlockUserFromCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UnBlockUserFromCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UnBlockUserFromCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UnBlockUserFromCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UnBlockUserFromCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UnBlockUserFromCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UnBlockUserFromCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UnBlockUserFromCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UnBlockUserFromCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UnBlockUserFromCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UnBlockUserFromCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UnBlockUserFromCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UnBlockUserFromCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UnBlockUserFromCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UnBlockUserFromCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UnBlockUserFromCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UnBlockUserFromCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UnBlockUserFromCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UnBlockUserFromCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UnBlockUserFromCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UnBlockUserFromCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UnBlockUserFromCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UnFlagCommentResponse.cpp b/client/src/model/UnFlagCommentResponse.cpp new file mode 100644 index 0000000..8c7a8cf --- /dev/null +++ b/client/src/model/UnFlagCommentResponse.cpp @@ -0,0 +1,559 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UnFlagCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UnFlagCommentResponse::UnFlagCommentResponse() +{ + m_StatusCode = 0; + m_StatusCodeIsSet = false; + m_StatusIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_WasUnapproved = false; + m_WasUnapprovedIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UnFlagCommentResponse::~UnFlagCommentResponse() +{ +} + +void UnFlagCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UnFlagCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_WasUnapprovedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))] = ModelBase::toJson(m_WasUnapproved); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UnFlagCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("statusCode"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setStatusCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatusCode); + setStatusCode(refVal_setStatusCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))); + if(!fieldValue.is_null()) + { + bool refVal_setWasUnapproved; + ok &= ModelBase::fromJson(fieldValue, refVal_setWasUnapproved); + setWasUnapproved(refVal_setWasUnapproved); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UnFlagCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("statusCode")), m_StatusCode)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_WasUnapprovedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")), m_WasUnapproved)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UnFlagCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) + { + int32_t refVal_setStatusCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("statusCode"))), refVal_setStatusCode ); + setStatusCode(refVal_setStatusCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")))) + { + bool refVal_setWasUnapproved; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))), refVal_setWasUnapproved ); + setWasUnapproved(refVal_setWasUnapproved); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +int32_t UnFlagCommentResponse::getStatusCode() const +{ + return m_StatusCode; +} + +void UnFlagCommentResponse::setStatusCode(int32_t value) +{ + m_StatusCode = value; + m_StatusCodeIsSet = true; +} + +bool UnFlagCommentResponse::statusCodeIsSet() const +{ + return m_StatusCodeIsSet; +} + +void UnFlagCommentResponse::unsetStatusCode() +{ + m_StatusCodeIsSet = false; +} +std::shared_ptr UnFlagCommentResponse::getStatus() const +{ + return m_Status; +} + + +void UnFlagCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UnFlagCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UnFlagCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UnFlagCommentResponse::getCode() const +{ + return m_Code; +} + + +void UnFlagCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UnFlagCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UnFlagCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UnFlagCommentResponse::getReason() const +{ + return m_Reason; +} + + +void UnFlagCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UnFlagCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UnFlagCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +bool UnFlagCommentResponse::isWasUnapproved() const +{ + return m_WasUnapproved; +} + +void UnFlagCommentResponse::setWasUnapproved(bool value) +{ + m_WasUnapproved = value; + m_WasUnapprovedIsSet = true; +} + +bool UnFlagCommentResponse::wasUnapprovedIsSet() const +{ + return m_WasUnapprovedIsSet; +} + +void UnFlagCommentResponse::unsetWasUnapproved() +{ + m_WasUnapprovedIsSet = false; +} +utility::string_t UnFlagCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UnFlagCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UnFlagCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UnFlagCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UnFlagCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UnFlagCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UnFlagCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UnFlagCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UnFlagCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UnFlagCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UnFlagCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UnFlagCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UnFlagCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UnFlagCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UnFlagCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UnFlagCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UnFlagCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UnFlagCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UnFlagCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UnFlagCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UnLockCommentResponse.cpp b/client/src/model/UnLockCommentResponse.cpp new file mode 100644 index 0000000..c596e56 --- /dev/null +++ b/client/src/model/UnLockCommentResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UnLockCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UnLockCommentResponse::UnLockCommentResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UnLockCommentResponse::~UnLockCommentResponse() +{ +} + +void UnLockCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UnLockCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UnLockCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UnLockCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UnLockCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UnLockCommentResponse::getStatus() const +{ + return m_Status; +} + + +void UnLockCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UnLockCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UnLockCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UnLockCommentResponse::getReason() const +{ + return m_Reason; +} + + +void UnLockCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UnLockCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UnLockCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UnLockCommentResponse::getCode() const +{ + return m_Code; +} + + +void UnLockCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UnLockCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UnLockCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UnLockCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UnLockCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UnLockCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UnLockCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UnLockCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UnLockCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UnLockCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UnLockCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UnLockCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UnLockCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UnLockCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UnLockCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UnLockCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UnLockCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UnLockCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UnLockCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UnLockCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UnLockCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UnLockCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UnLockCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UnPinCommentResponse.cpp b/client/src/model/UnPinCommentResponse.cpp new file mode 100644 index 0000000..d94dcc7 --- /dev/null +++ b/client/src/model/UnPinCommentResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UnPinCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UnPinCommentResponse::UnPinCommentResponse() +{ + m_CommentPositionsIsSet = false; + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UnPinCommentResponse::~UnPinCommentResponse() +{ +} + +void UnPinCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UnPinCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_CommentPositionsIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("commentPositions"))] = ModelBase::toJson(m_CommentPositions); + } + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UnPinCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentPositions")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentPositions"))); + if(!fieldValue.is_null()) + { + std::map> refVal_setCommentPositions; + ok &= ModelBase::fromJson(fieldValue, refVal_setCommentPositions); + setCommentPositions(refVal_setCommentPositions); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UnPinCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_CommentPositionsIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentPositions")), m_CommentPositions)); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UnPinCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentPositions")))) + { + std::map> refVal_setCommentPositions; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentPositions"))), refVal_setCommentPositions ); + setCommentPositions(refVal_setCommentPositions); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::map> UnPinCommentResponse::getCommentPositions() const +{ + return m_CommentPositions; +} + + +void UnPinCommentResponse::setCommentPositions(const std::map>& value) +{ + m_CommentPositions = value; + m_CommentPositionsIsSet = true; +} + +bool UnPinCommentResponse::commentPositionsIsSet() const +{ + return m_CommentPositionsIsSet; +} + +void UnPinCommentResponse::unsetCommentPositions() +{ + m_CommentPositionsIsSet = false; +} +std::shared_ptr UnPinCommentResponse::getStatus() const +{ + return m_Status; +} + + +void UnPinCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UnPinCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UnPinCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UnPinCommentResponse::getReason() const +{ + return m_Reason; +} + + +void UnPinCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UnPinCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UnPinCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UnPinCommentResponse::getCode() const +{ + return m_Code; +} + + +void UnPinCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UnPinCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UnPinCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UnPinCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UnPinCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UnPinCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UnPinCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UnPinCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UnPinCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UnPinCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UnPinCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UnPinCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UnPinCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UnPinCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UnPinCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UnPinCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UnPinCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UnPinCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UnPinCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UnPinCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UnPinCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UnPinCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UnPinCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateCommentResponse.cpp b/client/src/model/UpdateCommentResponse.cpp new file mode 100644 index 0000000..6688cb6 --- /dev/null +++ b/client/src/model/UpdateCommentResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateCommentResponse::UpdateCommentResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateCommentResponse::~UpdateCommentResponse() +{ +} + +void UpdateCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateCommentResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateCommentResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateCommentResponse::getCode() const +{ + return m_Code; +} + + +void UpdateCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateEmailTemplateResponse.cpp b/client/src/model/UpdateEmailTemplateResponse.cpp new file mode 100644 index 0000000..51167f9 --- /dev/null +++ b/client/src/model/UpdateEmailTemplateResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateEmailTemplateResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateEmailTemplateResponse::UpdateEmailTemplateResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateEmailTemplateResponse::~UpdateEmailTemplateResponse() +{ +} + +void UpdateEmailTemplateResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateEmailTemplateResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateEmailTemplateResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateEmailTemplateResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateEmailTemplateResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateEmailTemplateResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateEmailTemplateResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateEmailTemplateResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateEmailTemplateResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateEmailTemplateResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateEmailTemplateResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateEmailTemplateResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateEmailTemplateResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateEmailTemplateResponse::getCode() const +{ + return m_Code; +} + + +void UpdateEmailTemplateResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateEmailTemplateResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateEmailTemplateResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateEmailTemplateResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateEmailTemplateResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateEmailTemplateResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateEmailTemplateResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateEmailTemplateResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateEmailTemplateResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateEmailTemplateResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateEmailTemplateResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateEmailTemplateResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateEmailTemplateResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateEmailTemplateResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateEmailTemplateResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateEmailTemplateResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateEmailTemplateResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateEmailTemplateResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateEmailTemplateResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateEmailTemplateResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateEmailTemplateResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateEmailTemplateResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateEmailTemplateResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateFeedPostPublicResponse.cpp b/client/src/model/UpdateFeedPostPublicResponse.cpp new file mode 100644 index 0000000..9e4260b --- /dev/null +++ b/client/src/model/UpdateFeedPostPublicResponse.cpp @@ -0,0 +1,511 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateFeedPostPublicResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateFeedPostPublicResponse::UpdateFeedPostPublicResponse() +{ + m_StatusIsSet = false; + m_FeedPostIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateFeedPostPublicResponse::~UpdateFeedPostPublicResponse() +{ +} + +void UpdateFeedPostPublicResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateFeedPostPublicResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_FeedPostIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateFeedPostPublicResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPost"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setFeedPost; + ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPost); + setFeedPost(refVal_setFeedPost); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateFeedPostPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_FeedPostIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPost")), m_FeedPost)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateFeedPostPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) + { + std::shared_ptr refVal_setFeedPost; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPost"))), refVal_setFeedPost ); + setFeedPost(refVal_setFeedPost); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateFeedPostPublicResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateFeedPostPublicResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateFeedPostPublicResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateFeedPostPublicResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +std::shared_ptr UpdateFeedPostPublicResponse::getFeedPost() const +{ + return m_FeedPost; +} + + +void UpdateFeedPostPublicResponse::setFeedPost(const std::shared_ptr& value) +{ + m_FeedPost = value; + m_FeedPostIsSet = true; +} + +bool UpdateFeedPostPublicResponse::feedPostIsSet() const +{ + return m_FeedPostIsSet; +} + +void UpdateFeedPostPublicResponse::unsetFeedPost() +{ + m_FeedPostIsSet = false; +} +utility::string_t UpdateFeedPostPublicResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateFeedPostPublicResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateFeedPostPublicResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateFeedPostPublicResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateFeedPostPublicResponse::getCode() const +{ + return m_Code; +} + + +void UpdateFeedPostPublicResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateFeedPostPublicResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateFeedPostPublicResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateFeedPostPublicResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateFeedPostPublicResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateFeedPostPublicResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateFeedPostPublicResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateFeedPostPublicResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateFeedPostPublicResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateFeedPostPublicResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateFeedPostPublicResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateFeedPostPublicResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateFeedPostPublicResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateFeedPostPublicResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateFeedPostPublicResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateFeedPostPublicResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateFeedPostPublicResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateFeedPostPublicResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateFeedPostPublicResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateFeedPostPublicResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateFeedPostPublicResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateFeedPostPublicResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateFeedPostPublicResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateFeedPostResponse.cpp b/client/src/model/UpdateFeedPostResponse.cpp new file mode 100644 index 0000000..0601837 --- /dev/null +++ b/client/src/model/UpdateFeedPostResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateFeedPostResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateFeedPostResponse::UpdateFeedPostResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateFeedPostResponse::~UpdateFeedPostResponse() +{ +} + +void UpdateFeedPostResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateFeedPostResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateFeedPostResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateFeedPostResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateFeedPostResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateFeedPostResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateFeedPostResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateFeedPostResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateFeedPostResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateFeedPostResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateFeedPostResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateFeedPostResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateFeedPostResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateFeedPostResponse::getCode() const +{ + return m_Code; +} + + +void UpdateFeedPostResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateFeedPostResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateFeedPostResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateFeedPostResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateFeedPostResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateFeedPostResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateFeedPostResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateFeedPostResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateFeedPostResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateFeedPostResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateFeedPostResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateFeedPostResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateFeedPostResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateFeedPostResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateFeedPostResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateFeedPostResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateFeedPostResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateFeedPostResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateFeedPostResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateFeedPostResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateFeedPostResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateFeedPostResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateFeedPostResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateModeratorResponse.cpp b/client/src/model/UpdateModeratorResponse.cpp new file mode 100644 index 0000000..ca5107f --- /dev/null +++ b/client/src/model/UpdateModeratorResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateModeratorResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateModeratorResponse::UpdateModeratorResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateModeratorResponse::~UpdateModeratorResponse() +{ +} + +void UpdateModeratorResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateModeratorResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateModeratorResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateModeratorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateModeratorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateModeratorResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateModeratorResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateModeratorResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateModeratorResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateModeratorResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateModeratorResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateModeratorResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateModeratorResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateModeratorResponse::getCode() const +{ + return m_Code; +} + + +void UpdateModeratorResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateModeratorResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateModeratorResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateModeratorResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateModeratorResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateModeratorResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateModeratorResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateModeratorResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateModeratorResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateModeratorResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateModeratorResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateModeratorResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateModeratorResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateModeratorResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateModeratorResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateModeratorResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateModeratorResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateModeratorResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateModeratorResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateModeratorResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateModeratorResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateModeratorResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateModeratorResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateNotificationResponse.cpp b/client/src/model/UpdateNotificationResponse.cpp new file mode 100644 index 0000000..a8c121f --- /dev/null +++ b/client/src/model/UpdateNotificationResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateNotificationResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateNotificationResponse::UpdateNotificationResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateNotificationResponse::~UpdateNotificationResponse() +{ +} + +void UpdateNotificationResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateNotificationResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateNotificationResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateNotificationResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateNotificationResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateNotificationResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateNotificationResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateNotificationResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateNotificationResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateNotificationResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateNotificationResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateNotificationResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateNotificationResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateNotificationResponse::getCode() const +{ + return m_Code; +} + + +void UpdateNotificationResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateNotificationResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateNotificationResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateNotificationResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateNotificationResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateNotificationResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateNotificationResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateNotificationResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateNotificationResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateNotificationResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateNotificationResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateNotificationResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateNotificationResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateNotificationResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateNotificationResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateNotificationResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateNotificationResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateNotificationResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateNotificationResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateNotificationResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateNotificationResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateNotificationResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateNotificationResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateQuestionConfigResponse.cpp b/client/src/model/UpdateQuestionConfigResponse.cpp new file mode 100644 index 0000000..95fd9cf --- /dev/null +++ b/client/src/model/UpdateQuestionConfigResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateQuestionConfigResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateQuestionConfigResponse::UpdateQuestionConfigResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateQuestionConfigResponse::~UpdateQuestionConfigResponse() +{ +} + +void UpdateQuestionConfigResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateQuestionConfigResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateQuestionConfigResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateQuestionConfigResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateQuestionConfigResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateQuestionConfigResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateQuestionConfigResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateQuestionConfigResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateQuestionConfigResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateQuestionConfigResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateQuestionConfigResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateQuestionConfigResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateQuestionConfigResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateQuestionConfigResponse::getCode() const +{ + return m_Code; +} + + +void UpdateQuestionConfigResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateQuestionConfigResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateQuestionConfigResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateQuestionConfigResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateQuestionConfigResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateQuestionConfigResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateQuestionConfigResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateQuestionConfigResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateQuestionConfigResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateQuestionConfigResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateQuestionConfigResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateQuestionConfigResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateQuestionConfigResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateQuestionConfigResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateQuestionConfigResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateQuestionConfigResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateQuestionConfigResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateQuestionConfigResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateQuestionConfigResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateQuestionConfigResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateQuestionConfigResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateQuestionConfigResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateQuestionConfigResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateQuestionResultResponse.cpp b/client/src/model/UpdateQuestionResultResponse.cpp new file mode 100644 index 0000000..458336a --- /dev/null +++ b/client/src/model/UpdateQuestionResultResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateQuestionResultResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateQuestionResultResponse::UpdateQuestionResultResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateQuestionResultResponse::~UpdateQuestionResultResponse() +{ +} + +void UpdateQuestionResultResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateQuestionResultResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateQuestionResultResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateQuestionResultResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateQuestionResultResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateQuestionResultResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateQuestionResultResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateQuestionResultResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateQuestionResultResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateQuestionResultResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateQuestionResultResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateQuestionResultResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateQuestionResultResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateQuestionResultResponse::getCode() const +{ + return m_Code; +} + + +void UpdateQuestionResultResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateQuestionResultResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateQuestionResultResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateQuestionResultResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateQuestionResultResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateQuestionResultResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateQuestionResultResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateQuestionResultResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateQuestionResultResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateQuestionResultResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateQuestionResultResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateQuestionResultResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateQuestionResultResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateQuestionResultResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateQuestionResultResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateQuestionResultResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateQuestionResultResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateQuestionResultResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateQuestionResultResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateQuestionResultResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateQuestionResultResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateQuestionResultResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateQuestionResultResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateTenantPackageResponse.cpp b/client/src/model/UpdateTenantPackageResponse.cpp new file mode 100644 index 0000000..fa31911 --- /dev/null +++ b/client/src/model/UpdateTenantPackageResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateTenantPackageResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateTenantPackageResponse::UpdateTenantPackageResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateTenantPackageResponse::~UpdateTenantPackageResponse() +{ +} + +void UpdateTenantPackageResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateTenantPackageResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateTenantPackageResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateTenantPackageResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateTenantPackageResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateTenantPackageResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateTenantPackageResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateTenantPackageResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateTenantPackageResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateTenantPackageResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateTenantPackageResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateTenantPackageResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateTenantPackageResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateTenantPackageResponse::getCode() const +{ + return m_Code; +} + + +void UpdateTenantPackageResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateTenantPackageResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateTenantPackageResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateTenantPackageResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateTenantPackageResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateTenantPackageResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateTenantPackageResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateTenantPackageResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateTenantPackageResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateTenantPackageResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateTenantPackageResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateTenantPackageResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateTenantPackageResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateTenantPackageResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateTenantPackageResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateTenantPackageResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateTenantPackageResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateTenantPackageResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateTenantPackageResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateTenantPackageResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateTenantPackageResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateTenantPackageResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateTenantPackageResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateTenantResponse.cpp b/client/src/model/UpdateTenantResponse.cpp new file mode 100644 index 0000000..4dcfe7a --- /dev/null +++ b/client/src/model/UpdateTenantResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateTenantResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateTenantResponse::UpdateTenantResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateTenantResponse::~UpdateTenantResponse() +{ +} + +void UpdateTenantResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateTenantResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateTenantResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateTenantResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateTenantResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateTenantResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateTenantResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateTenantResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateTenantResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateTenantResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateTenantResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateTenantResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateTenantResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateTenantResponse::getCode() const +{ + return m_Code; +} + + +void UpdateTenantResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateTenantResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateTenantResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateTenantResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateTenantResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateTenantResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateTenantResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateTenantResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateTenantResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateTenantResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateTenantResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateTenantResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateTenantResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateTenantResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateTenantResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateTenantResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateTenantResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateTenantResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateTenantResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateTenantResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateTenantResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateTenantResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateTenantResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateTenantUserResponse.cpp b/client/src/model/UpdateTenantUserResponse.cpp new file mode 100644 index 0000000..5ec4f1f --- /dev/null +++ b/client/src/model/UpdateTenantUserResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateTenantUserResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateTenantUserResponse::UpdateTenantUserResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateTenantUserResponse::~UpdateTenantUserResponse() +{ +} + +void UpdateTenantUserResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateTenantUserResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateTenantUserResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateTenantUserResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateTenantUserResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateTenantUserResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateTenantUserResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateTenantUserResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateTenantUserResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateTenantUserResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateTenantUserResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateTenantUserResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateTenantUserResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateTenantUserResponse::getCode() const +{ + return m_Code; +} + + +void UpdateTenantUserResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateTenantUserResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateTenantUserResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateTenantUserResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateTenantUserResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateTenantUserResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateTenantUserResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateTenantUserResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateTenantUserResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateTenantUserResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateTenantUserResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateTenantUserResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateTenantUserResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateTenantUserResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateTenantUserResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateTenantUserResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateTenantUserResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateTenantUserResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateTenantUserResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateTenantUserResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateTenantUserResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateTenantUserResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateTenantUserResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateUserBadgeResponse.cpp b/client/src/model/UpdateUserBadgeResponse.cpp new file mode 100644 index 0000000..0c538c2 --- /dev/null +++ b/client/src/model/UpdateUserBadgeResponse.cpp @@ -0,0 +1,463 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/UpdateUserBadgeResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +UpdateUserBadgeResponse::UpdateUserBadgeResponse() +{ + m_StatusIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +UpdateUserBadgeResponse::~UpdateUserBadgeResponse() +{ +} + +void UpdateUserBadgeResponse::validate() +{ + // TODO: implement validation +} + +web::json::value UpdateUserBadgeResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool UpdateUserBadgeResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void UpdateUserBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool UpdateUserBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr UpdateUserBadgeResponse::getStatus() const +{ + return m_Status; +} + + +void UpdateUserBadgeResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool UpdateUserBadgeResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void UpdateUserBadgeResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t UpdateUserBadgeResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateUserBadgeResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateUserBadgeResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateUserBadgeResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateUserBadgeResponse::getCode() const +{ + return m_Code; +} + + +void UpdateUserBadgeResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateUserBadgeResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateUserBadgeResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateUserBadgeResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateUserBadgeResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateUserBadgeResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateUserBadgeResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateUserBadgeResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateUserBadgeResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateUserBadgeResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateUserBadgeResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateUserBadgeResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateUserBadgeResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateUserBadgeResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateUserBadgeResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateUserBadgeResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateUserBadgeResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateUserBadgeResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateUserBadgeResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateUserBadgeResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateUserBadgeResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateUserBadgeResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateUserBadgeResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp b/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp index b28400a..f34ca4e 100644 --- a/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp @@ -26,6 +26,19 @@ UpdateUserNotificationCommentSubscriptionStatusResponse::UpdateUserNotificationC m_ModifiedCount = 0L; m_ModifiedCountIsSet = false; m_NoteIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; } UpdateUserNotificationCommentSubscriptionStatusResponse::~UpdateUserNotificationCommentSubscriptionStatusResponse() @@ -62,6 +75,41 @@ web::json::value UpdateUserNotificationCommentSubscriptionStatusResponse::toJson val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } return val; } @@ -114,6 +162,83 @@ bool UpdateUserNotificationCommentSubscriptionStatusResponse::fromJson(const web } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } return ok; } @@ -140,6 +265,34 @@ void UpdateUserNotificationCommentSubscriptionStatusResponse::toMultipart(std::s { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("note")), fromNoteEnum(m_Note))); } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } } bool UpdateUserNotificationCommentSubscriptionStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -175,6 +328,48 @@ bool UpdateUserNotificationCommentSubscriptionStatusResponse::fromMultiPart(std: ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("note"))), refVal_setNote ); setNote(toNoteEnum(refVal_setNote)); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } return ok; } @@ -288,6 +483,151 @@ void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetNote() { m_NoteIsSet = false; } +utility::string_t UpdateUserNotificationCommentSubscriptionStatusResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateUserNotificationCommentSubscriptionStatusResponse::getCode() const +{ + return m_Code; +} + + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateUserNotificationCommentSubscriptionStatusResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateUserNotificationCommentSubscriptionStatusResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateUserNotificationCommentSubscriptionStatusResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateUserNotificationCommentSubscriptionStatusResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateUserNotificationCommentSubscriptionStatusResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateUserNotificationCommentSubscriptionStatusResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateUserNotificationCommentSubscriptionStatusResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} } } diff --git a/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp b/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp index 76e6c29..2220c1a 100644 --- a/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp @@ -26,6 +26,19 @@ UpdateUserNotificationPageSubscriptionStatusResponse::UpdateUserNotificationPage m_ModifiedCount = 0L; m_ModifiedCountIsSet = false; m_NoteIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; } UpdateUserNotificationPageSubscriptionStatusResponse::~UpdateUserNotificationPageSubscriptionStatusResponse() @@ -62,6 +75,41 @@ web::json::value UpdateUserNotificationPageSubscriptionStatusResponse::toJson() val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } return val; } @@ -114,6 +162,83 @@ bool UpdateUserNotificationPageSubscriptionStatusResponse::fromJson(const web::j } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } return ok; } @@ -140,6 +265,34 @@ void UpdateUserNotificationPageSubscriptionStatusResponse::toMultipart(std::shar { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("note")), fromNoteEnum(m_Note))); } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } } bool UpdateUserNotificationPageSubscriptionStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -175,6 +328,48 @@ bool UpdateUserNotificationPageSubscriptionStatusResponse::fromMultiPart(std::sh ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("note"))), refVal_setNote ); setNote(toNoteEnum(refVal_setNote)); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } return ok; } @@ -288,6 +483,151 @@ void UpdateUserNotificationPageSubscriptionStatusResponse::unsetNote() { m_NoteIsSet = false; } +utility::string_t UpdateUserNotificationPageSubscriptionStatusResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateUserNotificationPageSubscriptionStatusResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateUserNotificationPageSubscriptionStatusResponse::getCode() const +{ + return m_Code; +} + + +void UpdateUserNotificationPageSubscriptionStatusResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateUserNotificationPageSubscriptionStatusResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateUserNotificationPageSubscriptionStatusResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateUserNotificationPageSubscriptionStatusResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateUserNotificationPageSubscriptionStatusResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateUserNotificationPageSubscriptionStatusResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateUserNotificationPageSubscriptionStatusResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateUserNotificationPageSubscriptionStatusResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateUserNotificationPageSubscriptionStatusResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateUserNotificationPageSubscriptionStatusResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateUserNotificationPageSubscriptionStatusResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} } } diff --git a/client/src/model/UpdateUserNotificationStatusResponse.cpp b/client/src/model/UpdateUserNotificationStatusResponse.cpp index e713d2d..7bead63 100644 --- a/client/src/model/UpdateUserNotificationStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationStatusResponse.cpp @@ -26,6 +26,19 @@ UpdateUserNotificationStatusResponse::UpdateUserNotificationStatusResponse() m_ModifiedCount = 0L; m_ModifiedCountIsSet = false; m_NoteIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; } UpdateUserNotificationStatusResponse::~UpdateUserNotificationStatusResponse() @@ -62,6 +75,41 @@ web::json::value UpdateUserNotificationStatusResponse::toJson() const val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } return val; } @@ -114,6 +162,83 @@ bool UpdateUserNotificationStatusResponse::fromJson(const web::json::value& val) } } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } return ok; } @@ -140,6 +265,34 @@ void UpdateUserNotificationStatusResponse::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("note")), fromNoteEnum(m_Note))); } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } } bool UpdateUserNotificationStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -175,6 +328,48 @@ bool UpdateUserNotificationStatusResponse::fromMultiPart(std::shared_ptrgetContent(utility::conversions::to_string_t(_XPLATSTR("note"))), refVal_setNote ); setNote(toNoteEnum(refVal_setNote)); } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } return ok; } @@ -288,6 +483,151 @@ void UpdateUserNotificationStatusResponse::unsetNote() { m_NoteIsSet = false; } +utility::string_t UpdateUserNotificationStatusResponse::getReason() const +{ + return m_Reason; +} + + +void UpdateUserNotificationStatusResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t UpdateUserNotificationStatusResponse::getCode() const +{ + return m_Code; +} + + +void UpdateUserNotificationStatusResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t UpdateUserNotificationStatusResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void UpdateUserNotificationStatusResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t UpdateUserNotificationStatusResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void UpdateUserNotificationStatusResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t UpdateUserNotificationStatusResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void UpdateUserNotificationStatusResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t UpdateUserNotificationStatusResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void UpdateUserNotificationStatusResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr UpdateUserNotificationStatusResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void UpdateUserNotificationStatusResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool UpdateUserNotificationStatusResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void UpdateUserNotificationStatusResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} } } diff --git a/client/src/model/VoteCommentResponse.cpp b/client/src/model/VoteCommentResponse.cpp new file mode 100644 index 0000000..5fa1a18 --- /dev/null +++ b/client/src/model/VoteCommentResponse.cpp @@ -0,0 +1,657 @@ +/** + * fastcomments + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +#include "FastCommentsClient/model/VoteCommentResponse.h" + +namespace org { +namespace openapitools { +namespace client { +namespace model { + +VoteCommentResponse::VoteCommentResponse() +{ + m_StatusIsSet = false; + m_VoteId = utility::conversions::to_string_t(""); + m_VoteIdIsSet = false; + m_IsVerified = false; + m_IsVerifiedIsSet = false; + m_UserIsSet = false; + m_EditKey = utility::conversions::to_string_t(""); + m_EditKeyIsSet = false; + m_Reason = utility::conversions::to_string_t(""); + m_ReasonIsSet = false; + m_Code = utility::conversions::to_string_t(""); + m_CodeIsSet = false; + m_SecondaryCode = utility::conversions::to_string_t(""); + m_SecondaryCodeIsSet = false; + m_BannedUntil = 0L; + m_BannedUntilIsSet = false; + m_MaxCharacterLength = 0; + m_MaxCharacterLengthIsSet = false; + m_TranslatedError = utility::conversions::to_string_t(""); + m_TranslatedErrorIsSet = false; + m_CustomConfigIsSet = false; +} + +VoteCommentResponse::~VoteCommentResponse() +{ +} + +void VoteCommentResponse::validate() +{ + // TODO: implement validation +} + +web::json::value VoteCommentResponse::toJson() const +{ + web::json::value val = web::json::value::object(); + if(m_StatusIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); + } + if(m_VoteIdIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("voteId"))] = ModelBase::toJson(m_VoteId); + } + if(m_IsVerifiedIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("isVerified"))] = ModelBase::toJson(m_IsVerified); + } + if(m_UserIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); + } + if(m_EditKeyIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); + } + if(m_ReasonIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); + } + if(m_CodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); + } + if(m_SecondaryCodeIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); + } + if(m_BannedUntilIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); + } + if(m_MaxCharacterLengthIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); + } + if(m_TranslatedErrorIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); + } + if(m_CustomConfigIsSet) + { + + val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); + } + + return val; +} + +bool VoteCommentResponse::fromJson(const web::json::value& val) +{ + bool ok = true; + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); + setStatus(refVal_setStatus); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("voteId")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("voteId"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setVoteId; + ok &= ModelBase::fromJson(fieldValue, refVal_setVoteId); + setVoteId(refVal_setVoteId); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isVerified"))); + if(!fieldValue.is_null()) + { + bool refVal_setIsVerified; + ok &= ModelBase::fromJson(fieldValue, refVal_setIsVerified); + setIsVerified(refVal_setIsVerified); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromJson(fieldValue, refVal_setUser); + setUser(refVal_setUser); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("editKey")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("editKey"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setEditKey; + ok &= ModelBase::fromJson(fieldValue, refVal_setEditKey); + setEditKey(refVal_setEditKey); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromJson(fieldValue, refVal_setReason); + setReason(refVal_setReason); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setCode); + setCode(refVal_setCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); + setSecondaryCode(refVal_setSecondaryCode); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); + if(!fieldValue.is_null()) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); + setBannedUntil(refVal_setBannedUntil); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); + if(!fieldValue.is_null()) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); + setMaxCharacterLength(refVal_setMaxCharacterLength); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); + if(!fieldValue.is_null()) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); + setTranslatedError(refVal_setTranslatedError); + + } + } + if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); + if(!fieldValue.is_null()) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); + setCustomConfig(refVal_setCustomConfig); + + } + } + return ok; +} + +void VoteCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const +{ + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + if(m_StatusIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); + } + if(m_VoteIdIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteId")), m_VoteId)); + } + if(m_IsVerifiedIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isVerified")), m_IsVerified)); + } + if(m_UserIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); + } + if(m_EditKeyIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("editKey")), m_EditKey)); + } + if(m_ReasonIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); + } + if(m_CodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); + } + if(m_SecondaryCodeIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); + } + if(m_BannedUntilIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); + } + if(m_MaxCharacterLengthIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); + } + if(m_TranslatedErrorIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); + } + if(m_CustomConfigIsSet) + { + multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); + } +} + +bool VoteCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) +{ + bool ok = true; + utility::string_t namePrefix = prefix; + if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) + { + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); + } + + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) + { + std::shared_ptr refVal_setStatus; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); + setStatus(refVal_setStatus); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteId")))) + { + utility::string_t refVal_setVoteId; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("voteId"))), refVal_setVoteId ); + setVoteId(refVal_setVoteId); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) + { + bool refVal_setIsVerified; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isVerified"))), refVal_setIsVerified ); + setIsVerified(refVal_setIsVerified); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) + { + std::shared_ptr refVal_setUser; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); + setUser(refVal_setUser); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("editKey")))) + { + utility::string_t refVal_setEditKey; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("editKey"))), refVal_setEditKey ); + setEditKey(refVal_setEditKey); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) + { + utility::string_t refVal_setReason; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); + setReason(refVal_setReason); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) + { + utility::string_t refVal_setCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); + setCode(refVal_setCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) + { + utility::string_t refVal_setSecondaryCode; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); + setSecondaryCode(refVal_setSecondaryCode); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) + { + int64_t refVal_setBannedUntil; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); + setBannedUntil(refVal_setBannedUntil); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) + { + int32_t refVal_setMaxCharacterLength; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); + setMaxCharacterLength(refVal_setMaxCharacterLength); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) + { + utility::string_t refVal_setTranslatedError; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); + setTranslatedError(refVal_setTranslatedError); + } + if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) + { + std::shared_ptr refVal_setCustomConfig; + ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); + setCustomConfig(refVal_setCustomConfig); + } + return ok; +} + + +std::shared_ptr VoteCommentResponse::getStatus() const +{ + return m_Status; +} + + +void VoteCommentResponse::setStatus(const std::shared_ptr& value) +{ + m_Status = value; + m_StatusIsSet = true; +} + +bool VoteCommentResponse::statusIsSet() const +{ + return m_StatusIsSet; +} + +void VoteCommentResponse::unsetStatus() +{ + m_StatusIsSet = false; +} +utility::string_t VoteCommentResponse::getVoteId() const +{ + return m_VoteId; +} + + +void VoteCommentResponse::setVoteId(const utility::string_t& value) +{ + m_VoteId = value; + m_VoteIdIsSet = true; +} + +bool VoteCommentResponse::voteIdIsSet() const +{ + return m_VoteIdIsSet; +} + +void VoteCommentResponse::unsetVoteId() +{ + m_VoteIdIsSet = false; +} +bool VoteCommentResponse::isIsVerified() const +{ + return m_IsVerified; +} + +void VoteCommentResponse::setIsVerified(bool value) +{ + m_IsVerified = value; + m_IsVerifiedIsSet = true; +} + +bool VoteCommentResponse::isVerifiedIsSet() const +{ + return m_IsVerifiedIsSet; +} + +void VoteCommentResponse::unsetIsVerified() +{ + m_IsVerifiedIsSet = false; +} +std::shared_ptr VoteCommentResponse::getUser() const +{ + return m_User; +} + + +void VoteCommentResponse::setUser(const std::shared_ptr& value) +{ + m_User = value; + m_UserIsSet = true; +} + +bool VoteCommentResponse::userIsSet() const +{ + return m_UserIsSet; +} + +void VoteCommentResponse::unsetUser() +{ + m_UserIsSet = false; +} +utility::string_t VoteCommentResponse::getEditKey() const +{ + return m_EditKey; +} + + +void VoteCommentResponse::setEditKey(const utility::string_t& value) +{ + m_EditKey = value; + m_EditKeyIsSet = true; +} + +bool VoteCommentResponse::editKeyIsSet() const +{ + return m_EditKeyIsSet; +} + +void VoteCommentResponse::unsetEditKey() +{ + m_EditKeyIsSet = false; +} +utility::string_t VoteCommentResponse::getReason() const +{ + return m_Reason; +} + + +void VoteCommentResponse::setReason(const utility::string_t& value) +{ + m_Reason = value; + m_ReasonIsSet = true; +} + +bool VoteCommentResponse::reasonIsSet() const +{ + return m_ReasonIsSet; +} + +void VoteCommentResponse::unsetReason() +{ + m_ReasonIsSet = false; +} +utility::string_t VoteCommentResponse::getCode() const +{ + return m_Code; +} + + +void VoteCommentResponse::setCode(const utility::string_t& value) +{ + m_Code = value; + m_CodeIsSet = true; +} + +bool VoteCommentResponse::codeIsSet() const +{ + return m_CodeIsSet; +} + +void VoteCommentResponse::unsetCode() +{ + m_CodeIsSet = false; +} +utility::string_t VoteCommentResponse::getSecondaryCode() const +{ + return m_SecondaryCode; +} + + +void VoteCommentResponse::setSecondaryCode(const utility::string_t& value) +{ + m_SecondaryCode = value; + m_SecondaryCodeIsSet = true; +} + +bool VoteCommentResponse::secondaryCodeIsSet() const +{ + return m_SecondaryCodeIsSet; +} + +void VoteCommentResponse::unsetSecondaryCode() +{ + m_SecondaryCodeIsSet = false; +} +int64_t VoteCommentResponse::getBannedUntil() const +{ + return m_BannedUntil; +} + +void VoteCommentResponse::setBannedUntil(int64_t value) +{ + m_BannedUntil = value; + m_BannedUntilIsSet = true; +} + +bool VoteCommentResponse::bannedUntilIsSet() const +{ + return m_BannedUntilIsSet; +} + +void VoteCommentResponse::unsetBannedUntil() +{ + m_BannedUntilIsSet = false; +} +int32_t VoteCommentResponse::getMaxCharacterLength() const +{ + return m_MaxCharacterLength; +} + +void VoteCommentResponse::setMaxCharacterLength(int32_t value) +{ + m_MaxCharacterLength = value; + m_MaxCharacterLengthIsSet = true; +} + +bool VoteCommentResponse::maxCharacterLengthIsSet() const +{ + return m_MaxCharacterLengthIsSet; +} + +void VoteCommentResponse::unsetMaxCharacterLength() +{ + m_MaxCharacterLengthIsSet = false; +} +utility::string_t VoteCommentResponse::getTranslatedError() const +{ + return m_TranslatedError; +} + + +void VoteCommentResponse::setTranslatedError(const utility::string_t& value) +{ + m_TranslatedError = value; + m_TranslatedErrorIsSet = true; +} + +bool VoteCommentResponse::translatedErrorIsSet() const +{ + return m_TranslatedErrorIsSet; +} + +void VoteCommentResponse::unsetTranslatedError() +{ + m_TranslatedErrorIsSet = false; +} +std::shared_ptr VoteCommentResponse::getCustomConfig() const +{ + return m_CustomConfig; +} + + +void VoteCommentResponse::setCustomConfig(const std::shared_ptr& value) +{ + m_CustomConfig = value; + m_CustomConfigIsSet = true; +} + +bool VoteCommentResponse::customConfigIsSet() const +{ + return m_CustomConfigIsSet; +} + +void VoteCommentResponse::unsetCustomConfig() +{ + m_CustomConfigIsSet = false; +} + +} +} +} +} + + diff --git a/docs/Apis/DefaultApi.md b/docs/Apis/DefaultApi.md index 899940e..979cb76 100644 --- a/docs/Apis/DefaultApi.md +++ b/docs/Apis/DefaultApi.md @@ -148,7 +148,7 @@ All URIs are relative to *https://fastcomments.com* # **addHashTag** -> CreateHashTagResponse addHashTag(tenantId, CreateHashTagBody) +> AddHashTagResponse addHashTag(tenantId, CreateHashTagBody) @@ -161,7 +161,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateHashTagResponse**](../Models/CreateHashTagResponse.md) +[**AddHashTagResponse**](../Models/AddHashTagResponse.md) ### Authorization @@ -174,7 +174,7 @@ All URIs are relative to *https://fastcomments.com* # **addHashTagsBulk** -> BulkCreateHashTagsResponse addHashTagsBulk(tenantId, BulkCreateHashTagsBody) +> AddHashTagsBulkResponse addHashTagsBulk(tenantId, BulkCreateHashTagsBody) @@ -187,7 +187,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**BulkCreateHashTagsResponse**](../Models/BulkCreateHashTagsResponse.md) +[**AddHashTagsBulkResponse**](../Models/AddHashTagsBulkResponse.md) ### Authorization @@ -282,7 +282,7 @@ All URIs are relative to *https://fastcomments.com* # **aggregateQuestionResults** -> AggregateQuestionResultsResponse aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate) +> AggregateQuestionResultsResponse_1 aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate) @@ -300,7 +300,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**AggregateQuestionResultsResponse**](../Models/AggregateQuestionResultsResponse.md) +[**AggregateQuestionResultsResponse_1**](../Models/AggregateQuestionResultsResponse_1.md) ### Authorization @@ -313,7 +313,7 @@ All URIs are relative to *https://fastcomments.com* # **blockUserFromComment** -> BlockSuccess blockUserFromComment(tenantId, id, BlockFromCommentParams, userId, anonUserId) +> BlockUserFromCommentResponse blockUserFromComment(tenantId, id, BlockFromCommentParams, userId, anonUserId) @@ -329,7 +329,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**BlockSuccess**](../Models/BlockSuccess.md) +[**BlockUserFromCommentResponse**](../Models/BlockUserFromCommentResponse.md) ### Authorization @@ -342,7 +342,7 @@ All URIs are relative to *https://fastcomments.com* # **bulkAggregateQuestionResults** -> BulkAggregateQuestionResultsResponse bulkAggregateQuestionResults(tenantId, BulkAggregateQuestionResultsRequest, forceRecalculate) +> BulkAggregateQuestionResultsResponse_1 bulkAggregateQuestionResults(tenantId, BulkAggregateQuestionResultsRequest, forceRecalculate) @@ -356,7 +356,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**BulkAggregateQuestionResultsResponse**](../Models/BulkAggregateQuestionResultsResponse.md) +[**BulkAggregateQuestionResultsResponse_1**](../Models/BulkAggregateQuestionResultsResponse_1.md) ### Authorization @@ -369,7 +369,7 @@ All URIs are relative to *https://fastcomments.com* # **changeTicketState** -> ChangeTicketStateResponse changeTicketState(tenantId, userId, id, ChangeTicketStateBody) +> ChangeTicketStateResponse_1 changeTicketState(tenantId, userId, id, ChangeTicketStateBody) @@ -384,7 +384,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**ChangeTicketStateResponse**](../Models/ChangeTicketStateResponse.md) +[**ChangeTicketStateResponse_1**](../Models/ChangeTicketStateResponse_1.md) ### Authorization @@ -397,7 +397,7 @@ All URIs are relative to *https://fastcomments.com* # **combineCommentsWithQuestionResults** -> CombineQuestionResultsWithCommentsResponse combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit) +> CombineCommentsWithQuestionResultsResponse combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit) @@ -417,7 +417,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CombineQuestionResultsWithCommentsResponse**](../Models/CombineQuestionResultsWithCommentsResponse.md) +[**CombineCommentsWithQuestionResultsResponse**](../Models/CombineCommentsWithQuestionResultsResponse.md) ### Authorization @@ -430,7 +430,7 @@ All URIs are relative to *https://fastcomments.com* # **createEmailTemplate** -> CreateEmailTemplateResponse createEmailTemplate(tenantId, CreateEmailTemplateBody) +> CreateEmailTemplateResponse_1 createEmailTemplate(tenantId, CreateEmailTemplateBody) @@ -443,7 +443,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateEmailTemplateResponse**](../Models/CreateEmailTemplateResponse.md) +[**CreateEmailTemplateResponse_1**](../Models/CreateEmailTemplateResponse_1.md) ### Authorization @@ -456,7 +456,7 @@ All URIs are relative to *https://fastcomments.com* # **createFeedPost** -> CreateFeedPostsResponse createFeedPost(tenantId, CreateFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck) +> CreateFeedPostResponse_1 createFeedPost(tenantId, CreateFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck) @@ -473,7 +473,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateFeedPostsResponse**](../Models/CreateFeedPostsResponse.md) +[**CreateFeedPostResponse_1**](../Models/CreateFeedPostResponse_1.md) ### Authorization @@ -486,7 +486,7 @@ All URIs are relative to *https://fastcomments.com* # **createModerator** -> CreateModeratorResponse createModerator(tenantId, CreateModeratorBody) +> CreateModeratorResponse_1 createModerator(tenantId, CreateModeratorBody) @@ -499,7 +499,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateModeratorResponse**](../Models/CreateModeratorResponse.md) +[**CreateModeratorResponse_1**](../Models/CreateModeratorResponse_1.md) ### Authorization @@ -512,7 +512,7 @@ All URIs are relative to *https://fastcomments.com* # **createQuestionConfig** -> CreateQuestionConfigResponse createQuestionConfig(tenantId, CreateQuestionConfigBody) +> CreateQuestionConfigResponse_1 createQuestionConfig(tenantId, CreateQuestionConfigBody) @@ -525,7 +525,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateQuestionConfigResponse**](../Models/CreateQuestionConfigResponse.md) +[**CreateQuestionConfigResponse_1**](../Models/CreateQuestionConfigResponse_1.md) ### Authorization @@ -538,7 +538,7 @@ All URIs are relative to *https://fastcomments.com* # **createQuestionResult** -> CreateQuestionResultResponse createQuestionResult(tenantId, CreateQuestionResultBody) +> CreateQuestionResultResponse_1 createQuestionResult(tenantId, CreateQuestionResultBody) @@ -551,7 +551,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateQuestionResultResponse**](../Models/CreateQuestionResultResponse.md) +[**CreateQuestionResultResponse_1**](../Models/CreateQuestionResultResponse_1.md) ### Authorization @@ -590,7 +590,7 @@ All URIs are relative to *https://fastcomments.com* # **createTenant** -> CreateTenantResponse createTenant(tenantId, CreateTenantBody) +> CreateTenantResponse_1 createTenant(tenantId, CreateTenantBody) @@ -603,7 +603,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTenantResponse**](../Models/CreateTenantResponse.md) +[**CreateTenantResponse_1**](../Models/CreateTenantResponse_1.md) ### Authorization @@ -616,7 +616,7 @@ All URIs are relative to *https://fastcomments.com* # **createTenantPackage** -> CreateTenantPackageResponse createTenantPackage(tenantId, CreateTenantPackageBody) +> CreateTenantPackageResponse_1 createTenantPackage(tenantId, CreateTenantPackageBody) @@ -629,7 +629,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTenantPackageResponse**](../Models/CreateTenantPackageResponse.md) +[**CreateTenantPackageResponse_1**](../Models/CreateTenantPackageResponse_1.md) ### Authorization @@ -642,7 +642,7 @@ All URIs are relative to *https://fastcomments.com* # **createTenantUser** -> CreateTenantUserResponse createTenantUser(tenantId, CreateTenantUserBody) +> CreateTenantUserResponse_1 createTenantUser(tenantId, CreateTenantUserBody) @@ -655,7 +655,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTenantUserResponse**](../Models/CreateTenantUserResponse.md) +[**CreateTenantUserResponse_1**](../Models/CreateTenantUserResponse_1.md) ### Authorization @@ -668,7 +668,7 @@ All URIs are relative to *https://fastcomments.com* # **createTicket** -> CreateTicketResponse createTicket(tenantId, userId, CreateTicketBody) +> CreateTicketResponse_1 createTicket(tenantId, userId, CreateTicketBody) @@ -682,7 +682,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTicketResponse**](../Models/CreateTicketResponse.md) +[**CreateTicketResponse_1**](../Models/CreateTicketResponse_1.md) ### Authorization @@ -695,7 +695,7 @@ All URIs are relative to *https://fastcomments.com* # **createUserBadge** -> APICreateUserBadgeResponse createUserBadge(tenantId, CreateUserBadgeParams) +> CreateUserBadgeResponse createUserBadge(tenantId, CreateUserBadgeParams) @@ -708,7 +708,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APICreateUserBadgeResponse**](../Models/APICreateUserBadgeResponse.md) +[**CreateUserBadgeResponse**](../Models/CreateUserBadgeResponse.md) ### Authorization @@ -721,7 +721,7 @@ All URIs are relative to *https://fastcomments.com* # **createVote** -> VoteResponse createVote(tenantId, commentId, direction, userId, anonUserId) +> CreateVoteResponse createVote(tenantId, commentId, direction, userId, anonUserId) @@ -737,7 +737,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**VoteResponse**](../Models/VoteResponse.md) +[**CreateVoteResponse**](../Models/CreateVoteResponse.md) ### Authorization @@ -750,7 +750,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteComment** -> DeleteCommentResult deleteComment(tenantId, id, contextUserId, isLive) +> DeleteCommentResponse deleteComment(tenantId, id, contextUserId, isLive) @@ -765,7 +765,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteCommentResult**](../Models/DeleteCommentResult.md) +[**DeleteCommentResponse**](../Models/DeleteCommentResponse.md) ### Authorization @@ -804,7 +804,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteEmailTemplate** -> APIEmptyResponse deleteEmailTemplate(tenantId, id) +> DeleteEmailTemplateResponse deleteEmailTemplate(tenantId, id) @@ -817,7 +817,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeleteEmailTemplateResponse**](../Models/DeleteEmailTemplateResponse.md) ### Authorization @@ -830,7 +830,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteEmailTemplateRenderError** -> APIEmptyResponse deleteEmailTemplateRenderError(tenantId, id, errorId) +> DeleteEmailTemplateRenderErrorResponse deleteEmailTemplateRenderError(tenantId, id, errorId) @@ -844,7 +844,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeleteEmailTemplateRenderErrorResponse**](../Models/DeleteEmailTemplateRenderErrorResponse.md) ### Authorization @@ -857,7 +857,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteHashTag** -> APIEmptyResponse deleteHashTag(tag, tenantId, DeleteHashTagRequestBody) +> DeleteHashTagResponse deleteHashTag(tag, tenantId, DeleteHashTagRequestBody) @@ -871,7 +871,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeleteHashTagResponse**](../Models/DeleteHashTagResponse.md) ### Authorization @@ -884,7 +884,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteModerator** -> APIEmptyResponse deleteModerator(tenantId, id, sendEmail) +> DeleteModeratorResponse deleteModerator(tenantId, id, sendEmail) @@ -898,7 +898,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeleteModeratorResponse**](../Models/DeleteModeratorResponse.md) ### Authorization @@ -911,7 +911,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteNotificationCount** -> APIEmptyResponse deleteNotificationCount(tenantId, id) +> DeleteNotificationCountResponse deleteNotificationCount(tenantId, id) @@ -924,7 +924,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeleteNotificationCountResponse**](../Models/DeleteNotificationCountResponse.md) ### Authorization @@ -963,7 +963,7 @@ All URIs are relative to *https://fastcomments.com* # **deletePendingWebhookEvent** -> APIEmptyResponse deletePendingWebhookEvent(tenantId, id) +> DeletePendingWebhookEventResponse deletePendingWebhookEvent(tenantId, id) @@ -976,7 +976,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeletePendingWebhookEventResponse**](../Models/DeletePendingWebhookEventResponse.md) ### Authorization @@ -989,7 +989,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteQuestionConfig** -> APIEmptyResponse deleteQuestionConfig(tenantId, id) +> DeleteQuestionConfigResponse deleteQuestionConfig(tenantId, id) @@ -1002,7 +1002,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeleteQuestionConfigResponse**](../Models/DeleteQuestionConfigResponse.md) ### Authorization @@ -1015,7 +1015,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteQuestionResult** -> APIEmptyResponse deleteQuestionResult(tenantId, id) +> DeleteQuestionResultResponse deleteQuestionResult(tenantId, id) @@ -1028,7 +1028,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeleteQuestionResultResponse**](../Models/DeleteQuestionResultResponse.md) ### Authorization @@ -1096,7 +1096,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteTenant** -> APIEmptyResponse deleteTenant(tenantId, id, sure) +> DeleteTenantResponse deleteTenant(tenantId, id, sure) @@ -1110,7 +1110,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeleteTenantResponse**](../Models/DeleteTenantResponse.md) ### Authorization @@ -1123,7 +1123,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteTenantPackage** -> APIEmptyResponse deleteTenantPackage(tenantId, id) +> DeleteTenantPackageResponse deleteTenantPackage(tenantId, id) @@ -1136,7 +1136,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeleteTenantPackageResponse**](../Models/DeleteTenantPackageResponse.md) ### Authorization @@ -1149,7 +1149,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteTenantUser** -> APIEmptyResponse deleteTenantUser(tenantId, id, deleteComments, commentDeleteMode) +> DeleteTenantUserResponse deleteTenantUser(tenantId, id, deleteComments, commentDeleteMode) @@ -1164,7 +1164,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**DeleteTenantUserResponse**](../Models/DeleteTenantUserResponse.md) ### Authorization @@ -1177,7 +1177,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteUserBadge** -> APIEmptySuccessResponse deleteUserBadge(tenantId, id) +> DeleteUserBadgeResponse deleteUserBadge(tenantId, id) @@ -1190,7 +1190,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptySuccessResponse**](../Models/APIEmptySuccessResponse.md) +[**DeleteUserBadgeResponse**](../Models/DeleteUserBadgeResponse.md) ### Authorization @@ -1203,7 +1203,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteVote** -> VoteDeleteResponse deleteVote(tenantId, id, editKey) +> DeleteVoteResponse deleteVote(tenantId, id, editKey) @@ -1217,7 +1217,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**VoteDeleteResponse**](../Models/VoteDeleteResponse.md) +[**DeleteVoteResponse**](../Models/DeleteVoteResponse.md) ### Authorization @@ -1230,7 +1230,7 @@ All URIs are relative to *https://fastcomments.com* # **flagComment** -> FlagCommentResponse flagComment(tenantId, id, userId, anonUserId) +> FlagCommentResponse_1 flagComment(tenantId, id, userId, anonUserId) @@ -1245,7 +1245,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentResponse**](../Models/FlagCommentResponse.md) +[**FlagCommentResponse_1**](../Models/FlagCommentResponse_1.md) ### Authorization @@ -1258,7 +1258,7 @@ All URIs are relative to *https://fastcomments.com* # **getAuditLogs** -> GetAuditLogsResponse getAuditLogs(tenantId, limit, skip, order, after, before) +> GetAuditLogsResponse_1 getAuditLogs(tenantId, limit, skip, order, after, before) @@ -1275,7 +1275,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetAuditLogsResponse**](../Models/GetAuditLogsResponse.md) +[**GetAuditLogsResponse_1**](../Models/GetAuditLogsResponse_1.md) ### Authorization @@ -1288,7 +1288,7 @@ All URIs are relative to *https://fastcomments.com* # **getCachedNotificationCount** -> GetCachedNotificationCountResponse getCachedNotificationCount(tenantId, id) +> GetCachedNotificationCountResponse_1 getCachedNotificationCount(tenantId, id) @@ -1301,7 +1301,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetCachedNotificationCountResponse**](../Models/GetCachedNotificationCountResponse.md) +[**GetCachedNotificationCountResponse_1**](../Models/GetCachedNotificationCountResponse_1.md) ### Authorization @@ -1314,7 +1314,7 @@ All URIs are relative to *https://fastcomments.com* # **getComment** -> APIGetCommentResponse getComment(tenantId, id) +> GetCommentResponse getComment(tenantId, id) @@ -1327,7 +1327,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIGetCommentResponse**](../Models/APIGetCommentResponse.md) +[**GetCommentResponse**](../Models/GetCommentResponse.md) ### Authorization @@ -1340,7 +1340,7 @@ All URIs are relative to *https://fastcomments.com* # **getComments** -> APIGetCommentsResponse getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate) +> GetCommentsResponse getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate) @@ -1368,7 +1368,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIGetCommentsResponse**](../Models/APIGetCommentsResponse.md) +[**GetCommentsResponse**](../Models/GetCommentsResponse.md) ### Authorization @@ -1432,7 +1432,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplate** -> GetEmailTemplateResponse getEmailTemplate(tenantId, id) +> GetEmailTemplateResponse_1 getEmailTemplate(tenantId, id) @@ -1445,7 +1445,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplateResponse**](../Models/GetEmailTemplateResponse.md) +[**GetEmailTemplateResponse_1**](../Models/GetEmailTemplateResponse_1.md) ### Authorization @@ -1458,7 +1458,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplateDefinitions** -> GetEmailTemplateDefinitionsResponse getEmailTemplateDefinitions(tenantId) +> GetEmailTemplateDefinitionsResponse_1 getEmailTemplateDefinitions(tenantId) @@ -1470,7 +1470,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplateDefinitionsResponse**](../Models/GetEmailTemplateDefinitionsResponse.md) +[**GetEmailTemplateDefinitionsResponse_1**](../Models/GetEmailTemplateDefinitionsResponse_1.md) ### Authorization @@ -1483,7 +1483,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplateRenderErrors** -> GetEmailTemplateRenderErrorsResponse getEmailTemplateRenderErrors(tenantId, id, skip) +> GetEmailTemplateRenderErrorsResponse_1 getEmailTemplateRenderErrors(tenantId, id, skip) @@ -1497,7 +1497,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplateRenderErrorsResponse**](../Models/GetEmailTemplateRenderErrorsResponse.md) +[**GetEmailTemplateRenderErrorsResponse_1**](../Models/GetEmailTemplateRenderErrorsResponse_1.md) ### Authorization @@ -1510,7 +1510,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplates** -> GetEmailTemplatesResponse getEmailTemplates(tenantId, skip) +> GetEmailTemplatesResponse_1 getEmailTemplates(tenantId, skip) @@ -1523,7 +1523,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplatesResponse**](../Models/GetEmailTemplatesResponse.md) +[**GetEmailTemplatesResponse_1**](../Models/GetEmailTemplatesResponse_1.md) ### Authorization @@ -1536,7 +1536,7 @@ All URIs are relative to *https://fastcomments.com* # **getFeedPosts** -> GetFeedPostsResponse getFeedPosts(tenantId, afterId, limit, tags) +> GetFeedPostsResponse_1 getFeedPosts(tenantId, afterId, limit, tags) @@ -1553,7 +1553,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetFeedPostsResponse**](../Models/GetFeedPostsResponse.md) +[**GetFeedPostsResponse_1**](../Models/GetFeedPostsResponse_1.md) ### Authorization @@ -1566,7 +1566,7 @@ All URIs are relative to *https://fastcomments.com* # **getHashTags** -> GetHashTagsResponse getHashTags(tenantId, page) +> GetHashTagsResponse_1 getHashTags(tenantId, page) @@ -1579,7 +1579,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetHashTagsResponse**](../Models/GetHashTagsResponse.md) +[**GetHashTagsResponse_1**](../Models/GetHashTagsResponse_1.md) ### Authorization @@ -1592,7 +1592,7 @@ All URIs are relative to *https://fastcomments.com* # **getModerator** -> GetModeratorResponse getModerator(tenantId, id) +> GetModeratorResponse_1 getModerator(tenantId, id) @@ -1605,7 +1605,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetModeratorResponse**](../Models/GetModeratorResponse.md) +[**GetModeratorResponse_1**](../Models/GetModeratorResponse_1.md) ### Authorization @@ -1618,7 +1618,7 @@ All URIs are relative to *https://fastcomments.com* # **getModerators** -> GetModeratorsResponse getModerators(tenantId, skip) +> GetModeratorsResponse_1 getModerators(tenantId, skip) @@ -1631,7 +1631,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetModeratorsResponse**](../Models/GetModeratorsResponse.md) +[**GetModeratorsResponse_1**](../Models/GetModeratorsResponse_1.md) ### Authorization @@ -1644,7 +1644,7 @@ All URIs are relative to *https://fastcomments.com* # **getNotificationCount** -> GetNotificationCountResponse getNotificationCount(tenantId, userId, urlId, fromCommentId, viewed, type) +> GetNotificationCountResponse_1 getNotificationCount(tenantId, userId, urlId, fromCommentId, viewed, type) @@ -1661,7 +1661,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetNotificationCountResponse**](../Models/GetNotificationCountResponse.md) +[**GetNotificationCountResponse_1**](../Models/GetNotificationCountResponse_1.md) ### Authorization @@ -1674,7 +1674,7 @@ All URIs are relative to *https://fastcomments.com* # **getNotifications** -> GetNotificationsResponse getNotifications(tenantId, userId, urlId, fromCommentId, viewed, type, skip) +> GetNotificationsResponse_1 getNotifications(tenantId, userId, urlId, fromCommentId, viewed, type, skip) @@ -1692,7 +1692,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetNotificationsResponse**](../Models/GetNotificationsResponse.md) +[**GetNotificationsResponse_1**](../Models/GetNotificationsResponse_1.md) ### Authorization @@ -1756,7 +1756,7 @@ All URIs are relative to *https://fastcomments.com* # **getPendingWebhookEventCount** -> GetPendingWebhookEventCountResponse getPendingWebhookEventCount(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT) +> GetPendingWebhookEventCountResponse_1 getPendingWebhookEventCount(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT) @@ -1774,7 +1774,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetPendingWebhookEventCountResponse**](../Models/GetPendingWebhookEventCountResponse.md) +[**GetPendingWebhookEventCountResponse_1**](../Models/GetPendingWebhookEventCountResponse_1.md) ### Authorization @@ -1787,7 +1787,7 @@ All URIs are relative to *https://fastcomments.com* # **getPendingWebhookEvents** -> GetPendingWebhookEventsResponse getPendingWebhookEvents(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip) +> GetPendingWebhookEventsResponse_1 getPendingWebhookEvents(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip) @@ -1806,7 +1806,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetPendingWebhookEventsResponse**](../Models/GetPendingWebhookEventsResponse.md) +[**GetPendingWebhookEventsResponse_1**](../Models/GetPendingWebhookEventsResponse_1.md) ### Authorization @@ -1819,7 +1819,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionConfig** -> GetQuestionConfigResponse getQuestionConfig(tenantId, id) +> GetQuestionConfigResponse_1 getQuestionConfig(tenantId, id) @@ -1832,7 +1832,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionConfigResponse**](../Models/GetQuestionConfigResponse.md) +[**GetQuestionConfigResponse_1**](../Models/GetQuestionConfigResponse_1.md) ### Authorization @@ -1845,7 +1845,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionConfigs** -> GetQuestionConfigsResponse getQuestionConfigs(tenantId, skip) +> GetQuestionConfigsResponse_1 getQuestionConfigs(tenantId, skip) @@ -1858,7 +1858,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionConfigsResponse**](../Models/GetQuestionConfigsResponse.md) +[**GetQuestionConfigsResponse_1**](../Models/GetQuestionConfigsResponse_1.md) ### Authorization @@ -1871,7 +1871,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionResult** -> GetQuestionResultResponse getQuestionResult(tenantId, id) +> GetQuestionResultResponse_1 getQuestionResult(tenantId, id) @@ -1884,7 +1884,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionResultResponse**](../Models/GetQuestionResultResponse.md) +[**GetQuestionResultResponse_1**](../Models/GetQuestionResultResponse_1.md) ### Authorization @@ -1897,7 +1897,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionResults** -> GetQuestionResultsResponse getQuestionResults(tenantId, urlId, userId, startDate, questionId, questionIds, skip) +> GetQuestionResultsResponse_1 getQuestionResults(tenantId, urlId, userId, startDate, questionId, questionIds, skip) @@ -1915,7 +1915,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionResultsResponse**](../Models/GetQuestionResultsResponse.md) +[**GetQuestionResultsResponse_1**](../Models/GetQuestionResultsResponse_1.md) ### Authorization @@ -2032,7 +2032,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenant** -> GetTenantResponse getTenant(tenantId, id) +> GetTenantResponse_1 getTenant(tenantId, id) @@ -2045,7 +2045,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantResponse**](../Models/GetTenantResponse.md) +[**GetTenantResponse_1**](../Models/GetTenantResponse_1.md) ### Authorization @@ -2058,7 +2058,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantDailyUsages** -> GetTenantDailyUsagesResponse getTenantDailyUsages(tenantId, yearNumber, monthNumber, dayNumber, skip) +> GetTenantDailyUsagesResponse_1 getTenantDailyUsages(tenantId, yearNumber, monthNumber, dayNumber, skip) @@ -2074,7 +2074,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantDailyUsagesResponse**](../Models/GetTenantDailyUsagesResponse.md) +[**GetTenantDailyUsagesResponse_1**](../Models/GetTenantDailyUsagesResponse_1.md) ### Authorization @@ -2087,7 +2087,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantPackage** -> GetTenantPackageResponse getTenantPackage(tenantId, id) +> GetTenantPackageResponse_1 getTenantPackage(tenantId, id) @@ -2100,7 +2100,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantPackageResponse**](../Models/GetTenantPackageResponse.md) +[**GetTenantPackageResponse_1**](../Models/GetTenantPackageResponse_1.md) ### Authorization @@ -2113,7 +2113,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantPackages** -> GetTenantPackagesResponse getTenantPackages(tenantId, skip) +> GetTenantPackagesResponse_1 getTenantPackages(tenantId, skip) @@ -2126,7 +2126,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantPackagesResponse**](../Models/GetTenantPackagesResponse.md) +[**GetTenantPackagesResponse_1**](../Models/GetTenantPackagesResponse_1.md) ### Authorization @@ -2139,7 +2139,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantUser** -> GetTenantUserResponse getTenantUser(tenantId, id) +> GetTenantUserResponse_1 getTenantUser(tenantId, id) @@ -2152,7 +2152,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantUserResponse**](../Models/GetTenantUserResponse.md) +[**GetTenantUserResponse_1**](../Models/GetTenantUserResponse_1.md) ### Authorization @@ -2165,7 +2165,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantUsers** -> GetTenantUsersResponse getTenantUsers(tenantId, skip) +> GetTenantUsersResponse_1 getTenantUsers(tenantId, skip) @@ -2178,7 +2178,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantUsersResponse**](../Models/GetTenantUsersResponse.md) +[**GetTenantUsersResponse_1**](../Models/GetTenantUsersResponse_1.md) ### Authorization @@ -2191,7 +2191,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenants** -> GetTenantsResponse getTenants(tenantId, meta, skip) +> GetTenantsResponse_1 getTenants(tenantId, meta, skip) @@ -2205,7 +2205,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantsResponse**](../Models/GetTenantsResponse.md) +[**GetTenantsResponse_1**](../Models/GetTenantsResponse_1.md) ### Authorization @@ -2218,7 +2218,7 @@ All URIs are relative to *https://fastcomments.com* # **getTicket** -> GetTicketResponse getTicket(tenantId, id, userId) +> GetTicketResponse_1 getTicket(tenantId, id, userId) @@ -2232,7 +2232,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTicketResponse**](../Models/GetTicketResponse.md) +[**GetTicketResponse_1**](../Models/GetTicketResponse_1.md) ### Authorization @@ -2245,7 +2245,7 @@ All URIs are relative to *https://fastcomments.com* # **getTickets** -> GetTicketsResponse getTickets(tenantId, userId, state, skip, limit) +> GetTicketsResponse_1 getTickets(tenantId, userId, state, skip, limit) @@ -2261,7 +2261,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTicketsResponse**](../Models/GetTicketsResponse.md) +[**GetTicketsResponse_1**](../Models/GetTicketsResponse_1.md) ### Authorization @@ -2274,7 +2274,7 @@ All URIs are relative to *https://fastcomments.com* # **getUser** -> GetUserResponse getUser(tenantId, id) +> GetUserResponse_1 getUser(tenantId, id) @@ -2287,7 +2287,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserResponse**](../Models/GetUserResponse.md) +[**GetUserResponse_1**](../Models/GetUserResponse_1.md) ### Authorization @@ -2300,7 +2300,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadge** -> APIGetUserBadgeResponse getUserBadge(tenantId, id) +> GetUserBadgeResponse getUserBadge(tenantId, id) @@ -2313,7 +2313,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIGetUserBadgeResponse**](../Models/APIGetUserBadgeResponse.md) +[**GetUserBadgeResponse**](../Models/GetUserBadgeResponse.md) ### Authorization @@ -2326,7 +2326,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadgeProgressById** -> APIGetUserBadgeProgressResponse getUserBadgeProgressById(tenantId, id) +> GetUserBadgeProgressByIdResponse getUserBadgeProgressById(tenantId, id) @@ -2339,7 +2339,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIGetUserBadgeProgressResponse**](../Models/APIGetUserBadgeProgressResponse.md) +[**GetUserBadgeProgressByIdResponse**](../Models/GetUserBadgeProgressByIdResponse.md) ### Authorization @@ -2352,7 +2352,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadgeProgressByUserId** -> APIGetUserBadgeProgressResponse getUserBadgeProgressByUserId(tenantId, userId) +> GetUserBadgeProgressByUserIdResponse getUserBadgeProgressByUserId(tenantId, userId) @@ -2365,7 +2365,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIGetUserBadgeProgressResponse**](../Models/APIGetUserBadgeProgressResponse.md) +[**GetUserBadgeProgressByUserIdResponse**](../Models/GetUserBadgeProgressByUserIdResponse.md) ### Authorization @@ -2378,7 +2378,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadgeProgressList** -> APIGetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId, userId, limit, skip) +> GetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId, userId, limit, skip) @@ -2393,7 +2393,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIGetUserBadgeProgressListResponse**](../Models/APIGetUserBadgeProgressListResponse.md) +[**GetUserBadgeProgressListResponse**](../Models/GetUserBadgeProgressListResponse.md) ### Authorization @@ -2406,7 +2406,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadges** -> APIGetUserBadgesResponse getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip) +> GetUserBadgesResponse getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip) @@ -2424,7 +2424,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIGetUserBadgesResponse**](../Models/APIGetUserBadgesResponse.md) +[**GetUserBadgesResponse**](../Models/GetUserBadgesResponse.md) ### Authorization @@ -2437,7 +2437,7 @@ All URIs are relative to *https://fastcomments.com* # **getVotes** -> GetVotesResponse getVotes(tenantId, urlId) +> GetVotesResponse_1 getVotes(tenantId, urlId) @@ -2450,7 +2450,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetVotesResponse**](../Models/GetVotesResponse.md) +[**GetVotesResponse_1**](../Models/GetVotesResponse_1.md) ### Authorization @@ -2463,7 +2463,7 @@ All URIs are relative to *https://fastcomments.com* # **getVotesForUser** -> GetVotesForUserResponse getVotesForUser(tenantId, urlId, userId, anonUserId) +> GetVotesForUserResponse_1 getVotesForUser(tenantId, urlId, userId, anonUserId) @@ -2478,7 +2478,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetVotesForUserResponse**](../Models/GetVotesForUserResponse.md) +[**GetVotesForUserResponse_1**](../Models/GetVotesForUserResponse_1.md) ### Authorization @@ -2518,7 +2518,7 @@ All URIs are relative to *https://fastcomments.com* # **patchHashTag** -> UpdateHashTagResponse patchHashTag(tag, tenantId, UpdateHashTagBody) +> PatchHashTagResponse patchHashTag(tag, tenantId, UpdateHashTagBody) @@ -2532,7 +2532,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateHashTagResponse**](../Models/UpdateHashTagResponse.md) +[**PatchHashTagResponse**](../Models/PatchHashTagResponse.md) ### Authorization @@ -2655,7 +2655,7 @@ All URIs are relative to *https://fastcomments.com* # **renderEmailTemplate** -> RenderEmailTemplateResponse renderEmailTemplate(tenantId, RenderEmailTemplateBody, locale) +> RenderEmailTemplateResponse_1 renderEmailTemplate(tenantId, RenderEmailTemplateBody, locale) @@ -2669,7 +2669,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**RenderEmailTemplateResponse**](../Models/RenderEmailTemplateResponse.md) +[**RenderEmailTemplateResponse_1**](../Models/RenderEmailTemplateResponse_1.md) ### Authorization @@ -2682,7 +2682,7 @@ All URIs are relative to *https://fastcomments.com* # **replaceTenantPackage** -> APIEmptyResponse replaceTenantPackage(tenantId, id, ReplaceTenantPackageBody) +> ReplaceTenantPackageResponse replaceTenantPackage(tenantId, id, ReplaceTenantPackageBody) @@ -2696,7 +2696,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**ReplaceTenantPackageResponse**](../Models/ReplaceTenantPackageResponse.md) ### Authorization @@ -2709,7 +2709,7 @@ All URIs are relative to *https://fastcomments.com* # **replaceTenantUser** -> APIEmptyResponse replaceTenantUser(tenantId, id, ReplaceTenantUserBody, updateComments) +> ReplaceTenantUserResponse replaceTenantUser(tenantId, id, ReplaceTenantUserBody, updateComments) @@ -2724,7 +2724,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**ReplaceTenantUserResponse**](../Models/ReplaceTenantUserResponse.md) ### Authorization @@ -2737,7 +2737,7 @@ All URIs are relative to *https://fastcomments.com* # **saveComment** -> APISaveCommentResponse saveComment(tenantId, CreateCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) +> SaveCommentResponse saveComment(tenantId, CreateCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) @@ -2754,7 +2754,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APISaveCommentResponse**](../Models/APISaveCommentResponse.md) +[**SaveCommentResponse**](../Models/SaveCommentResponse.md) ### Authorization @@ -2797,7 +2797,7 @@ All URIs are relative to *https://fastcomments.com* # **sendInvite** -> APIEmptyResponse sendInvite(tenantId, id, fromName) +> SendInviteResponse sendInvite(tenantId, id, fromName) @@ -2811,7 +2811,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**SendInviteResponse**](../Models/SendInviteResponse.md) ### Authorization @@ -2824,7 +2824,7 @@ All URIs are relative to *https://fastcomments.com* # **sendLoginLink** -> APIEmptyResponse sendLoginLink(tenantId, id, redirectURL) +> SendLoginLinkResponse sendLoginLink(tenantId, id, redirectURL) @@ -2838,7 +2838,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**SendLoginLinkResponse**](../Models/SendLoginLinkResponse.md) ### Authorization @@ -2851,7 +2851,7 @@ All URIs are relative to *https://fastcomments.com* # **unBlockUserFromComment** -> UnblockSuccess unBlockUserFromComment(tenantId, id, UnBlockFromCommentParams, userId, anonUserId) +> UnBlockUserFromCommentResponse unBlockUserFromComment(tenantId, id, UnBlockFromCommentParams, userId, anonUserId) @@ -2867,7 +2867,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UnblockSuccess**](../Models/UnblockSuccess.md) +[**UnBlockUserFromCommentResponse**](../Models/UnBlockUserFromCommentResponse.md) ### Authorization @@ -2880,7 +2880,7 @@ All URIs are relative to *https://fastcomments.com* # **unFlagComment** -> FlagCommentResponse unFlagComment(tenantId, id, userId, anonUserId) +> UnFlagCommentResponse unFlagComment(tenantId, id, userId, anonUserId) @@ -2895,7 +2895,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentResponse**](../Models/FlagCommentResponse.md) +[**UnFlagCommentResponse**](../Models/UnFlagCommentResponse.md) ### Authorization @@ -2908,7 +2908,7 @@ All URIs are relative to *https://fastcomments.com* # **updateComment** -> APIEmptyResponse updateComment(tenantId, id, UpdatableCommentParams, contextUserId, doSpamCheck, isLive) +> UpdateCommentResponse updateComment(tenantId, id, UpdatableCommentParams, contextUserId, doSpamCheck, isLive) @@ -2925,7 +2925,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UpdateCommentResponse**](../Models/UpdateCommentResponse.md) ### Authorization @@ -2938,7 +2938,7 @@ All URIs are relative to *https://fastcomments.com* # **updateEmailTemplate** -> APIEmptyResponse updateEmailTemplate(tenantId, id, UpdateEmailTemplateBody) +> UpdateEmailTemplateResponse updateEmailTemplate(tenantId, id, UpdateEmailTemplateBody) @@ -2952,7 +2952,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UpdateEmailTemplateResponse**](../Models/UpdateEmailTemplateResponse.md) ### Authorization @@ -2965,7 +2965,7 @@ All URIs are relative to *https://fastcomments.com* # **updateFeedPost** -> APIEmptyResponse updateFeedPost(tenantId, id, FeedPost) +> UpdateFeedPostResponse updateFeedPost(tenantId, id, FeedPost) @@ -2979,7 +2979,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UpdateFeedPostResponse**](../Models/UpdateFeedPostResponse.md) ### Authorization @@ -2992,7 +2992,7 @@ All URIs are relative to *https://fastcomments.com* # **updateModerator** -> APIEmptyResponse updateModerator(tenantId, id, UpdateModeratorBody) +> UpdateModeratorResponse updateModerator(tenantId, id, UpdateModeratorBody) @@ -3006,7 +3006,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UpdateModeratorResponse**](../Models/UpdateModeratorResponse.md) ### Authorization @@ -3019,7 +3019,7 @@ All URIs are relative to *https://fastcomments.com* # **updateNotification** -> APIEmptyResponse updateNotification(tenantId, id, UpdateNotificationBody, userId) +> UpdateNotificationResponse updateNotification(tenantId, id, UpdateNotificationBody, userId) @@ -3034,7 +3034,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UpdateNotificationResponse**](../Models/UpdateNotificationResponse.md) ### Authorization @@ -3047,7 +3047,7 @@ All URIs are relative to *https://fastcomments.com* # **updateQuestionConfig** -> APIEmptyResponse updateQuestionConfig(tenantId, id, UpdateQuestionConfigBody) +> UpdateQuestionConfigResponse updateQuestionConfig(tenantId, id, UpdateQuestionConfigBody) @@ -3061,7 +3061,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UpdateQuestionConfigResponse**](../Models/UpdateQuestionConfigResponse.md) ### Authorization @@ -3074,7 +3074,7 @@ All URIs are relative to *https://fastcomments.com* # **updateQuestionResult** -> APIEmptyResponse updateQuestionResult(tenantId, id, UpdateQuestionResultBody) +> UpdateQuestionResultResponse updateQuestionResult(tenantId, id, UpdateQuestionResultBody) @@ -3088,7 +3088,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UpdateQuestionResultResponse**](../Models/UpdateQuestionResultResponse.md) ### Authorization @@ -3129,7 +3129,7 @@ All URIs are relative to *https://fastcomments.com* # **updateTenant** -> APIEmptyResponse updateTenant(tenantId, id, UpdateTenantBody) +> UpdateTenantResponse updateTenant(tenantId, id, UpdateTenantBody) @@ -3143,7 +3143,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UpdateTenantResponse**](../Models/UpdateTenantResponse.md) ### Authorization @@ -3156,7 +3156,7 @@ All URIs are relative to *https://fastcomments.com* # **updateTenantPackage** -> APIEmptyResponse updateTenantPackage(tenantId, id, UpdateTenantPackageBody) +> UpdateTenantPackageResponse updateTenantPackage(tenantId, id, UpdateTenantPackageBody) @@ -3170,7 +3170,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UpdateTenantPackageResponse**](../Models/UpdateTenantPackageResponse.md) ### Authorization @@ -3183,7 +3183,7 @@ All URIs are relative to *https://fastcomments.com* # **updateTenantUser** -> APIEmptyResponse updateTenantUser(tenantId, id, UpdateTenantUserBody, updateComments) +> UpdateTenantUserResponse updateTenantUser(tenantId, id, UpdateTenantUserBody, updateComments) @@ -3198,7 +3198,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UpdateTenantUserResponse**](../Models/UpdateTenantUserResponse.md) ### Authorization @@ -3211,7 +3211,7 @@ All URIs are relative to *https://fastcomments.com* # **updateUserBadge** -> APIEmptySuccessResponse updateUserBadge(tenantId, id, UpdateUserBadgeParams) +> UpdateUserBadgeResponse updateUserBadge(tenantId, id, UpdateUserBadgeParams) @@ -3225,7 +3225,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**APIEmptySuccessResponse**](../Models/APIEmptySuccessResponse.md) +[**UpdateUserBadgeResponse**](../Models/UpdateUserBadgeResponse.md) ### Authorization diff --git a/docs/Apis/ModerationApi.md b/docs/Apis/ModerationApi.md index 8ecaec1..7e7dbf8 100644 --- a/docs/Apis/ModerationApi.md +++ b/docs/Apis/ModerationApi.md @@ -51,7 +51,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteModerationVote** -> VoteDeleteResponse deleteModerationVote(commentId, voteId, sso) +> DeleteModerationVoteResponse deleteModerationVote(commentId, voteId, broadcastId, tenantId, sso) @@ -61,11 +61,13 @@ All URIs are relative to *https://fastcomments.com* |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **voteId** | **String**| | [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**VoteDeleteResponse**](../Models/VoteDeleteResponse.md) +[**DeleteModerationVoteResponse**](../Models/DeleteModerationVoteResponse.md) ### Authorization @@ -78,7 +80,7 @@ No authorization required # **getApiComments** -> ModerationAPIGetCommentsResponse getApiComments(page, count, text-search, byIPFromComment, filters, searchFilters, sorts, demo, sso) +> GetApiCommentsResponse getApiComments(page, count, text-search, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso) @@ -94,11 +96,12 @@ No authorization required | **searchFilters** | **String**| | [optional] [default to null] | | **sorts** | **String**| | [optional] [default to null] | | **demo** | **Boolean**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationAPIGetCommentsResponse**](../Models/ModerationAPIGetCommentsResponse.md) +[**GetApiCommentsResponse**](../Models/GetApiCommentsResponse.md) ### Authorization @@ -111,7 +114,7 @@ No authorization required # **getApiExportStatus** -> ModerationExportStatusResponse getApiExportStatus(batchJobId, sso) +> GetApiExportStatusResponse getApiExportStatus(batchJobId, tenantId, sso) @@ -120,11 +123,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **batchJobId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationExportStatusResponse**](../Models/ModerationExportStatusResponse.md) +[**GetApiExportStatusResponse**](../Models/GetApiExportStatusResponse.md) ### Authorization @@ -137,7 +141,7 @@ No authorization required # **getApiIds** -> ModerationAPIGetCommentIdsResponse getApiIds(text-search, byIPFromComment, filters, searchFilters, afterId, demo, sso) +> GetApiIdsResponse getApiIds(text-search, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso) @@ -151,11 +155,12 @@ No authorization required | **searchFilters** | **String**| | [optional] [default to null] | | **afterId** | **String**| | [optional] [default to null] | | **demo** | **Boolean**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationAPIGetCommentIdsResponse**](../Models/ModerationAPIGetCommentIdsResponse.md) +[**GetApiIdsResponse**](../Models/GetApiIdsResponse.md) ### Authorization @@ -168,7 +173,7 @@ No authorization required # **getBanUsersFromComment** -> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId, sso) +> GetBanUsersFromCommentResponse getBanUsersFromComment(commentId, tenantId, sso) @@ -177,11 +182,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**GetBannedUsersFromCommentResponse**](../Models/GetBannedUsersFromCommentResponse.md) +[**GetBanUsersFromCommentResponse**](../Models/GetBanUsersFromCommentResponse.md) ### Authorization @@ -194,7 +200,7 @@ No authorization required # **getCommentBanStatus** -> GetCommentBanStatusResponse getCommentBanStatus(commentId, sso) +> GetCommentBanStatusResponse_1 getCommentBanStatus(commentId, tenantId, sso) @@ -203,11 +209,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**GetCommentBanStatusResponse**](../Models/GetCommentBanStatusResponse.md) +[**GetCommentBanStatusResponse_1**](../Models/GetCommentBanStatusResponse_1.md) ### Authorization @@ -220,7 +227,7 @@ No authorization required # **getCommentChildren** -> ModerationAPIChildCommentsResponse getCommentChildren(commentId, sso) +> GetCommentChildrenResponse getCommentChildren(commentId, tenantId, sso) @@ -229,11 +236,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationAPIChildCommentsResponse**](../Models/ModerationAPIChildCommentsResponse.md) +[**GetCommentChildrenResponse**](../Models/GetCommentChildrenResponse.md) ### Authorization @@ -246,7 +254,7 @@ No authorization required # **getCount** -> ModerationAPICountCommentsResponse getCount(text-search, byIPFromComment, filter, searchFilters, demo, sso) +> GetCountResponse getCount(text-search, byIPFromComment, filter, searchFilters, demo, tenantId, sso) @@ -259,11 +267,12 @@ No authorization required | **filter** | **String**| | [optional] [default to null] | | **searchFilters** | **String**| | [optional] [default to null] | | **demo** | **Boolean**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationAPICountCommentsResponse**](../Models/ModerationAPICountCommentsResponse.md) +[**GetCountResponse**](../Models/GetCountResponse.md) ### Authorization @@ -276,7 +285,7 @@ No authorization required # **getCounts** -> GetBannedUsersCountResponse getCounts(sso) +> GetCountsResponse getCounts(tenantId, sso) @@ -284,11 +293,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**GetBannedUsersCountResponse**](../Models/GetBannedUsersCountResponse.md) +[**GetCountsResponse**](../Models/GetCountsResponse.md) ### Authorization @@ -301,7 +311,7 @@ No authorization required # **getLogs** -> ModerationAPIGetLogsResponse getLogs(commentId, sso) +> GetLogsResponse getLogs(commentId, tenantId, sso) @@ -310,11 +320,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationAPIGetLogsResponse**](../Models/ModerationAPIGetLogsResponse.md) +[**GetLogsResponse**](../Models/GetLogsResponse.md) ### Authorization @@ -327,7 +338,7 @@ No authorization required # **getManualBadges** -> GetTenantManualBadgesResponse getManualBadges(sso) +> GetManualBadgesResponse getManualBadges(tenantId, sso) @@ -335,11 +346,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**GetTenantManualBadgesResponse**](../Models/GetTenantManualBadgesResponse.md) +[**GetManualBadgesResponse**](../Models/GetManualBadgesResponse.md) ### Authorization @@ -352,7 +364,7 @@ No authorization required # **getManualBadgesForUser** -> GetUserManualBadgesResponse getManualBadgesForUser(badgesUserId, commentId, sso) +> GetManualBadgesForUserResponse getManualBadgesForUser(badgesUserId, commentId, tenantId, sso) @@ -362,11 +374,12 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **badgesUserId** | **String**| | [optional] [default to null] | | **commentId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**GetUserManualBadgesResponse**](../Models/GetUserManualBadgesResponse.md) +[**GetManualBadgesForUserResponse**](../Models/GetManualBadgesForUserResponse.md) ### Authorization @@ -379,7 +392,7 @@ No authorization required # **getModerationComment** -> ModerationAPICommentResponse getModerationComment(commentId, includeEmail, includeIP, sso) +> GetModerationCommentResponse getModerationComment(commentId, includeEmail, includeIP, tenantId, sso) @@ -390,11 +403,12 @@ No authorization required | **commentId** | **String**| | [default to null] | | **includeEmail** | **Boolean**| | [optional] [default to null] | | **includeIP** | **Boolean**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationAPICommentResponse**](../Models/ModerationAPICommentResponse.md) +[**GetModerationCommentResponse**](../Models/GetModerationCommentResponse.md) ### Authorization @@ -407,7 +421,7 @@ No authorization required # **getModerationCommentText** -> GetCommentTextResponse getModerationCommentText(commentId, sso) +> GetModerationCommentTextResponse getModerationCommentText(commentId, tenantId, sso) @@ -416,11 +430,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**GetCommentTextResponse**](../Models/GetCommentTextResponse.md) +[**GetModerationCommentTextResponse**](../Models/GetModerationCommentTextResponse.md) ### Authorization @@ -433,7 +448,7 @@ No authorization required # **getPreBanSummary** -> PreBanSummary getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) +> GetPreBanSummaryResponse getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso) @@ -445,11 +460,12 @@ No authorization required | **includeByUserIdAndEmail** | **Boolean**| | [optional] [default to null] | | **includeByIP** | **Boolean**| | [optional] [default to null] | | **includeByEmailDomain** | **Boolean**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**PreBanSummary**](../Models/PreBanSummary.md) +[**GetPreBanSummaryResponse**](../Models/GetPreBanSummaryResponse.md) ### Authorization @@ -462,7 +478,7 @@ No authorization required # **getSearchCommentsSummary** -> ModerationCommentSearchResponse getSearchCommentsSummary(value, filters, searchFilters, sso) +> GetSearchCommentsSummaryResponse getSearchCommentsSummary(value, filters, searchFilters, tenantId, sso) @@ -473,11 +489,12 @@ No authorization required | **value** | **String**| | [optional] [default to null] | | **filters** | **String**| | [optional] [default to null] | | **searchFilters** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationCommentSearchResponse**](../Models/ModerationCommentSearchResponse.md) +[**GetSearchCommentsSummaryResponse**](../Models/GetSearchCommentsSummaryResponse.md) ### Authorization @@ -490,7 +507,7 @@ No authorization required # **getSearchPages** -> ModerationPageSearchResponse getSearchPages(value, sso) +> GetSearchPagesResponse getSearchPages(value, tenantId, sso) @@ -499,11 +516,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **value** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationPageSearchResponse**](../Models/ModerationPageSearchResponse.md) +[**GetSearchPagesResponse**](../Models/GetSearchPagesResponse.md) ### Authorization @@ -516,7 +534,7 @@ No authorization required # **getSearchSites** -> ModerationSiteSearchResponse getSearchSites(value, sso) +> GetSearchSitesResponse getSearchSites(value, tenantId, sso) @@ -525,11 +543,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **value** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationSiteSearchResponse**](../Models/ModerationSiteSearchResponse.md) +[**GetSearchSitesResponse**](../Models/GetSearchSitesResponse.md) ### Authorization @@ -542,7 +561,7 @@ No authorization required # **getSearchSuggest** -> ModerationSuggestResponse getSearchSuggest(text-search, sso) +> GetSearchSuggestResponse getSearchSuggest(text-search, tenantId, sso) @@ -551,11 +570,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **text-search** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationSuggestResponse**](../Models/ModerationSuggestResponse.md) +[**GetSearchSuggestResponse**](../Models/GetSearchSuggestResponse.md) ### Authorization @@ -568,7 +588,7 @@ No authorization required # **getSearchUsers** -> ModerationUserSearchResponse getSearchUsers(value, sso) +> GetSearchUsersResponse getSearchUsers(value, tenantId, sso) @@ -577,11 +597,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **value** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationUserSearchResponse**](../Models/ModerationUserSearchResponse.md) +[**GetSearchUsersResponse**](../Models/GetSearchUsersResponse.md) ### Authorization @@ -594,7 +615,7 @@ No authorization required # **getTrustFactor** -> GetUserTrustFactorResponse getTrustFactor(userId, sso) +> GetTrustFactorResponse getTrustFactor(userId, tenantId, sso) @@ -603,11 +624,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **userId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**GetUserTrustFactorResponse**](../Models/GetUserTrustFactorResponse.md) +[**GetTrustFactorResponse**](../Models/GetTrustFactorResponse.md) ### Authorization @@ -620,7 +642,7 @@ No authorization required # **getUserBanPreference** -> APIModerateGetUserBanPreferencesResponse getUserBanPreference(sso) +> GetUserBanPreferenceResponse getUserBanPreference(tenantId, sso) @@ -628,11 +650,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**APIModerateGetUserBanPreferencesResponse**](../Models/APIModerateGetUserBanPreferencesResponse.md) +[**GetUserBanPreferenceResponse**](../Models/GetUserBanPreferenceResponse.md) ### Authorization @@ -645,7 +668,7 @@ No authorization required # **getUserInternalProfile** -> GetUserInternalProfileResponse getUserInternalProfile(commentId, sso) +> GetUserInternalProfileResponse_1 getUserInternalProfile(commentId, tenantId, sso) @@ -654,11 +677,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**GetUserInternalProfileResponse**](../Models/GetUserInternalProfileResponse.md) +[**GetUserInternalProfileResponse_1**](../Models/GetUserInternalProfileResponse_1.md) ### Authorization @@ -671,7 +695,7 @@ No authorization required # **postAdjustCommentVotes** -> AdjustVotesResponse postAdjustCommentVotes(commentId, AdjustCommentVotesParams, sso) +> PostAdjustCommentVotesResponse postAdjustCommentVotes(commentId, AdjustCommentVotesParams, broadcastId, tenantId, sso) @@ -681,11 +705,13 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **AdjustCommentVotesParams** | [**AdjustCommentVotesParams**](../Models/AdjustCommentVotesParams.md)| | | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**AdjustVotesResponse**](../Models/AdjustVotesResponse.md) +[**PostAdjustCommentVotesResponse**](../Models/PostAdjustCommentVotesResponse.md) ### Authorization @@ -698,7 +724,7 @@ No authorization required # **postApiExport** -> ModerationExportResponse postApiExport(text-search, byIPFromComment, filters, searchFilters, sorts, sso) +> PostApiExportResponse postApiExport(text-search, byIPFromComment, filters, searchFilters, sorts, tenantId, sso) @@ -711,11 +737,12 @@ No authorization required | **filters** | **String**| | [optional] [default to null] | | **searchFilters** | **String**| | [optional] [default to null] | | **sorts** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationExportResponse**](../Models/ModerationExportResponse.md) +[**PostApiExportResponse**](../Models/PostApiExportResponse.md) ### Authorization @@ -728,7 +755,7 @@ No authorization required # **postBanUserFromComment** -> BanUserFromCommentResult postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso) +> PostBanUserFromCommentResponse postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso) @@ -745,11 +772,12 @@ No authorization required | **isShadowBan** | **Boolean**| | [optional] [default to null] | | **updateId** | **String**| | [optional] [default to null] | | **banReason** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**BanUserFromCommentResult**](../Models/BanUserFromCommentResult.md) +[**PostBanUserFromCommentResponse**](../Models/PostBanUserFromCommentResponse.md) ### Authorization @@ -762,7 +790,7 @@ No authorization required # **postBanUserUndo** -> APIEmptyResponse postBanUserUndo(BanUserUndoParams, sso) +> PostBanUserUndoResponse postBanUserUndo(BanUserUndoParams, tenantId, sso) @@ -771,11 +799,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **BanUserUndoParams** | [**BanUserUndoParams**](../Models/BanUserUndoParams.md)| | | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**PostBanUserUndoResponse**](../Models/PostBanUserUndoResponse.md) ### Authorization @@ -788,7 +817,7 @@ No authorization required # **postBulkPreBanSummary** -> BulkPreBanSummary postBulkPreBanSummary(BulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) +> PostBulkPreBanSummaryResponse postBulkPreBanSummary(BulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso) @@ -800,11 +829,12 @@ No authorization required | **includeByUserIdAndEmail** | **Boolean**| | [optional] [default to null] | | **includeByIP** | **Boolean**| | [optional] [default to null] | | **includeByEmailDomain** | **Boolean**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**BulkPreBanSummary**](../Models/BulkPreBanSummary.md) +[**PostBulkPreBanSummaryResponse**](../Models/PostBulkPreBanSummaryResponse.md) ### Authorization @@ -817,7 +847,7 @@ No authorization required # **postCommentsByIds** -> ModerationAPIChildCommentsResponse postCommentsByIds(CommentsByIdsParams, sso) +> PostCommentsByIdsResponse postCommentsByIds(CommentsByIdsParams, tenantId, sso) @@ -826,11 +856,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **CommentsByIdsParams** | [**CommentsByIdsParams**](../Models/CommentsByIdsParams.md)| | | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**ModerationAPIChildCommentsResponse**](../Models/ModerationAPIChildCommentsResponse.md) +[**PostCommentsByIdsResponse**](../Models/PostCommentsByIdsResponse.md) ### Authorization @@ -843,7 +874,7 @@ No authorization required # **postFlagComment** -> APIEmptyResponse postFlagComment(commentId, sso) +> PostFlagCommentResponse postFlagComment(commentId, broadcastId, tenantId, sso) @@ -852,11 +883,13 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**PostFlagCommentResponse**](../Models/PostFlagCommentResponse.md) ### Authorization @@ -869,7 +902,7 @@ No authorization required # **postRemoveComment** -> PostRemoveCommentResponse postRemoveComment(commentId, sso) +> PostRemoveCommentResponse postRemoveComment(commentId, broadcastId, tenantId, sso) @@ -878,6 +911,8 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -895,7 +930,7 @@ No authorization required # **postRestoreDeletedComment** -> APIEmptyResponse postRestoreDeletedComment(commentId, sso) +> PostRestoreDeletedCommentResponse postRestoreDeletedComment(commentId, broadcastId, tenantId, sso) @@ -904,11 +939,13 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**PostRestoreDeletedCommentResponse**](../Models/PostRestoreDeletedCommentResponse.md) ### Authorization @@ -921,7 +958,7 @@ No authorization required # **postSetCommentApprovalStatus** -> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId, approved, sso) +> PostSetCommentApprovalStatusResponse postSetCommentApprovalStatus(commentId, approved, broadcastId, tenantId, sso) @@ -931,11 +968,13 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **approved** | **Boolean**| | [optional] [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**SetCommentApprovedResponse**](../Models/SetCommentApprovedResponse.md) +[**PostSetCommentApprovalStatusResponse**](../Models/PostSetCommentApprovalStatusResponse.md) ### Authorization @@ -948,7 +987,7 @@ No authorization required # **postSetCommentReviewStatus** -> APIEmptyResponse postSetCommentReviewStatus(commentId, reviewed, sso) +> PostSetCommentReviewStatusResponse postSetCommentReviewStatus(commentId, reviewed, broadcastId, tenantId, sso) @@ -958,11 +997,13 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **reviewed** | **Boolean**| | [optional] [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**PostSetCommentReviewStatusResponse**](../Models/PostSetCommentReviewStatusResponse.md) ### Authorization @@ -975,7 +1016,7 @@ No authorization required # **postSetCommentSpamStatus** -> APIEmptyResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, sso) +> PostSetCommentSpamStatusResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, broadcastId, tenantId, sso) @@ -986,11 +1027,13 @@ No authorization required | **commentId** | **String**| | [default to null] | | **spam** | **Boolean**| | [optional] [default to null] | | **permNotSpam** | **Boolean**| | [optional] [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**PostSetCommentSpamStatusResponse**](../Models/PostSetCommentSpamStatusResponse.md) ### Authorization @@ -1003,7 +1046,7 @@ No authorization required # **postSetCommentText** -> SetCommentTextResponse postSetCommentText(commentId, SetCommentTextParams, sso) +> PostSetCommentTextResponse postSetCommentText(commentId, SetCommentTextParams, broadcastId, tenantId, sso) @@ -1013,11 +1056,13 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **SetCommentTextParams** | [**SetCommentTextParams**](../Models/SetCommentTextParams.md)| | | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**SetCommentTextResponse**](../Models/SetCommentTextResponse.md) +[**PostSetCommentTextResponse**](../Models/PostSetCommentTextResponse.md) ### Authorization @@ -1030,7 +1075,7 @@ No authorization required # **postUnFlagComment** -> APIEmptyResponse postUnFlagComment(commentId, sso) +> PostUnFlagCommentResponse postUnFlagComment(commentId, broadcastId, tenantId, sso) @@ -1039,11 +1084,13 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**PostUnFlagCommentResponse**](../Models/PostUnFlagCommentResponse.md) ### Authorization @@ -1056,7 +1103,7 @@ No authorization required # **postVote** -> VoteResponse postVote(commentId, direction, sso) +> PostVoteResponse postVote(commentId, direction, broadcastId, tenantId, sso) @@ -1066,11 +1113,13 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **commentId** | **String**| | [default to null] | | **direction** | **String**| | [optional] [default to null] | +| **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**VoteResponse**](../Models/VoteResponse.md) +[**PostVoteResponse**](../Models/PostVoteResponse.md) ### Authorization @@ -1083,7 +1132,7 @@ No authorization required # **putAwardBadge** -> AwardUserBadgeResponse putAwardBadge(badgeId, userId, commentId, broadcastId, sso) +> PutAwardBadgeResponse putAwardBadge(badgeId, userId, commentId, broadcastId, tenantId, sso) @@ -1095,11 +1144,12 @@ No authorization required | **userId** | **String**| | [optional] [default to null] | | **commentId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**AwardUserBadgeResponse**](../Models/AwardUserBadgeResponse.md) +[**PutAwardBadgeResponse**](../Models/PutAwardBadgeResponse.md) ### Authorization @@ -1112,7 +1162,7 @@ No authorization required # **putCloseThread** -> APIEmptyResponse putCloseThread(urlId, sso) +> PutCloseThreadResponse putCloseThread(urlId, tenantId, sso) @@ -1121,11 +1171,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **urlId** | **String**| | [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**PutCloseThreadResponse**](../Models/PutCloseThreadResponse.md) ### Authorization @@ -1138,7 +1189,7 @@ No authorization required # **putRemoveBadge** -> RemoveUserBadgeResponse putRemoveBadge(badgeId, userId, commentId, broadcastId, sso) +> PutRemoveBadgeResponse putRemoveBadge(badgeId, userId, commentId, broadcastId, tenantId, sso) @@ -1150,11 +1201,12 @@ No authorization required | **userId** | **String**| | [optional] [default to null] | | **commentId** | **String**| | [optional] [default to null] | | **broadcastId** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**RemoveUserBadgeResponse**](../Models/RemoveUserBadgeResponse.md) +[**PutRemoveBadgeResponse**](../Models/PutRemoveBadgeResponse.md) ### Authorization @@ -1167,7 +1219,7 @@ No authorization required # **putReopenThread** -> APIEmptyResponse putReopenThread(urlId, sso) +> PutReopenThreadResponse putReopenThread(urlId, tenantId, sso) @@ -1176,11 +1228,12 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **urlId** | **String**| | [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**PutReopenThreadResponse**](../Models/PutReopenThreadResponse.md) ### Authorization @@ -1193,7 +1246,7 @@ No authorization required # **setTrustFactor** -> SetUserTrustFactorResponse setTrustFactor(userId, trustFactor, sso) +> SetTrustFactorResponse setTrustFactor(userId, trustFactor, tenantId, sso) @@ -1203,11 +1256,12 @@ No authorization required |------------- | ------------- | ------------- | -------------| | **userId** | **String**| | [optional] [default to null] | | **trustFactor** | **String**| | [optional] [default to null] | +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type -[**SetUserTrustFactorResponse**](../Models/SetUserTrustFactorResponse.md) +[**SetTrustFactorResponse**](../Models/SetTrustFactorResponse.md) ### Authorization diff --git a/docs/Apis/PublicApi.md b/docs/Apis/PublicApi.md index 9b2dc5e..aa46b50 100644 --- a/docs/Apis/PublicApi.md +++ b/docs/Apis/PublicApi.md @@ -60,7 +60,7 @@ All URIs are relative to *https://fastcomments.com* # **blockFromCommentPublic** -> BlockSuccess blockFromCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) +> BlockFromCommentPublicResponse blockFromCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) @@ -75,7 +75,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**BlockSuccess**](../Models/BlockSuccess.md) +[**BlockFromCommentPublicResponse**](../Models/BlockFromCommentPublicResponse.md) ### Authorization @@ -88,7 +88,7 @@ No authorization required # **checkedCommentsForBlocked** -> CheckBlockedCommentsResponse checkedCommentsForBlocked(tenantId, commentIds, sso) +> CheckedCommentsForBlockedResponse checkedCommentsForBlocked(tenantId, commentIds, sso) @@ -102,7 +102,7 @@ No authorization required ### Return type -[**CheckBlockedCommentsResponse**](../Models/CheckBlockedCommentsResponse.md) +[**CheckedCommentsForBlockedResponse**](../Models/CheckedCommentsForBlockedResponse.md) ### Authorization @@ -115,7 +115,7 @@ No authorization required # **createCommentPublic** -> SaveCommentsResponseWithPresence createCommentPublic(tenantId, urlId, broadcastId, CommentData, sessionId, sso) +> CreateCommentPublicResponse createCommentPublic(tenantId, urlId, broadcastId, CommentData, sessionId, sso) @@ -132,7 +132,7 @@ No authorization required ### Return type -[**SaveCommentsResponseWithPresence**](../Models/SaveCommentsResponseWithPresence.md) +[**CreateCommentPublicResponse**](../Models/CreateCommentPublicResponse.md) ### Authorization @@ -145,7 +145,7 @@ No authorization required # **createFeedPostPublic** -> CreateFeedPostResponse createFeedPostPublic(tenantId, CreateFeedPostParams, broadcastId, sso) +> CreateFeedPostPublicResponse createFeedPostPublic(tenantId, CreateFeedPostParams, broadcastId, sso) @@ -160,7 +160,7 @@ No authorization required ### Return type -[**CreateFeedPostResponse**](../Models/CreateFeedPostResponse.md) +[**CreateFeedPostPublicResponse**](../Models/CreateFeedPostPublicResponse.md) ### Authorization @@ -173,7 +173,7 @@ No authorization required # **createV1PageReact** -> CreateV1PageReact createV1PageReact(tenantId, urlId, title) +> CreateV1PageReactResponse createV1PageReact(tenantId, urlId, title) @@ -187,7 +187,7 @@ No authorization required ### Return type -[**CreateV1PageReact**](../Models/CreateV1PageReact.md) +[**CreateV1PageReactResponse**](../Models/CreateV1PageReactResponse.md) ### Authorization @@ -200,7 +200,7 @@ No authorization required # **createV2PageReact** -> CreateV1PageReact createV2PageReact(tenantId, urlId, id, title) +> CreateV2PageReactResponse createV2PageReact(tenantId, urlId, id, title) @@ -215,7 +215,7 @@ No authorization required ### Return type -[**CreateV1PageReact**](../Models/CreateV1PageReact.md) +[**CreateV2PageReactResponse**](../Models/CreateV2PageReactResponse.md) ### Authorization @@ -228,7 +228,7 @@ No authorization required # **deleteCommentPublic** -> PublicAPIDeleteCommentResponse deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso) +> DeleteCommentPublicResponse deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso) @@ -244,7 +244,7 @@ No authorization required ### Return type -[**PublicAPIDeleteCommentResponse**](../Models/PublicAPIDeleteCommentResponse.md) +[**DeleteCommentPublicResponse**](../Models/DeleteCommentPublicResponse.md) ### Authorization @@ -257,7 +257,7 @@ No authorization required # **deleteCommentVote** -> VoteDeleteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso) +> DeleteCommentVoteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso) @@ -275,7 +275,7 @@ No authorization required ### Return type -[**VoteDeleteResponse**](../Models/VoteDeleteResponse.md) +[**DeleteCommentVoteResponse**](../Models/DeleteCommentVoteResponse.md) ### Authorization @@ -316,7 +316,7 @@ No authorization required # **deleteV1PageReact** -> CreateV1PageReact deleteV1PageReact(tenantId, urlId) +> DeleteV1PageReactResponse deleteV1PageReact(tenantId, urlId) @@ -329,7 +329,7 @@ No authorization required ### Return type -[**CreateV1PageReact**](../Models/CreateV1PageReact.md) +[**DeleteV1PageReactResponse**](../Models/DeleteV1PageReactResponse.md) ### Authorization @@ -342,7 +342,7 @@ No authorization required # **deleteV2PageReact** -> CreateV1PageReact deleteV2PageReact(tenantId, urlId, id) +> DeleteV2PageReactResponse deleteV2PageReact(tenantId, urlId, id) @@ -356,7 +356,7 @@ No authorization required ### Return type -[**CreateV1PageReact**](../Models/CreateV1PageReact.md) +[**DeleteV2PageReactResponse**](../Models/DeleteV2PageReactResponse.md) ### Authorization @@ -369,7 +369,7 @@ No authorization required # **flagCommentPublic** -> APIEmptyResponse flagCommentPublic(tenantId, commentId, isFlagged, sso) +> FlagCommentPublicResponse flagCommentPublic(tenantId, commentId, isFlagged, sso) @@ -384,7 +384,7 @@ No authorization required ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**FlagCommentPublicResponse**](../Models/FlagCommentPublicResponse.md) ### Authorization @@ -397,7 +397,7 @@ No authorization required # **getCommentText** -> PublicAPIGetCommentTextResponse getCommentText(tenantId, commentId, editKey, sso) +> GetCommentTextResponse_1 getCommentText(tenantId, commentId, editKey, sso) @@ -412,7 +412,7 @@ No authorization required ### Return type -[**PublicAPIGetCommentTextResponse**](../Models/PublicAPIGetCommentTextResponse.md) +[**GetCommentTextResponse_1**](../Models/GetCommentTextResponse_1.md) ### Authorization @@ -425,7 +425,7 @@ No authorization required # **getCommentVoteUserNames** -> GetCommentVoteUserNamesSuccessResponse getCommentVoteUserNames(tenantId, commentId, dir, sso) +> GetCommentVoteUserNamesResponse getCommentVoteUserNames(tenantId, commentId, dir, sso) @@ -440,7 +440,7 @@ No authorization required ### Return type -[**GetCommentVoteUserNamesSuccessResponse**](../Models/GetCommentVoteUserNamesSuccessResponse.md) +[**GetCommentVoteUserNamesResponse**](../Models/GetCommentVoteUserNamesResponse.md) ### Authorization @@ -453,7 +453,7 @@ No authorization required # **getCommentsForUser** -> GetCommentsForUserResponse getCommentsForUser(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler) +> GetCommentsForUserResponse_1 getCommentsForUser(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler) @@ -471,7 +471,7 @@ No authorization required ### Return type -[**GetCommentsForUserResponse**](../Models/GetCommentsForUserResponse.md) +[**GetCommentsForUserResponse_1**](../Models/GetCommentsForUserResponse_1.md) ### Authorization @@ -484,7 +484,7 @@ No authorization required # **getCommentsPublic** -> GetCommentsResponseWithPresence_PublicComment_ getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId) +> GetCommentsPublicResponse getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId) @@ -525,7 +525,7 @@ No authorization required ### Return type -[**GetCommentsResponseWithPresence_PublicComment_**](../Models/GetCommentsResponseWithPresence_PublicComment_.md) +[**GetCommentsPublicResponse**](../Models/GetCommentsPublicResponse.md) ### Authorization @@ -538,7 +538,7 @@ No authorization required # **getEventLog** -> GetEventLogResponse getEventLog(tenantId, urlId, userIdWS, startTime, endTime) +> GetEventLogResponse_1 getEventLog(tenantId, urlId, userIdWS, startTime, endTime) @@ -556,7 +556,7 @@ No authorization required ### Return type -[**GetEventLogResponse**](../Models/GetEventLogResponse.md) +[**GetEventLogResponse_1**](../Models/GetEventLogResponse_1.md) ### Authorization @@ -569,7 +569,7 @@ No authorization required # **getFeedPostsPublic** -> PublicFeedPostsResponse getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo) +> GetFeedPostsPublicResponse getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo) @@ -589,7 +589,7 @@ No authorization required ### Return type -[**PublicFeedPostsResponse**](../Models/PublicFeedPostsResponse.md) +[**GetFeedPostsPublicResponse**](../Models/GetFeedPostsPublicResponse.md) ### Authorization @@ -602,7 +602,7 @@ No authorization required # **getFeedPostsStats** -> FeedPostsStatsResponse getFeedPostsStats(tenantId, postIds, sso) +> GetFeedPostsStatsResponse getFeedPostsStats(tenantId, postIds, sso) @@ -616,7 +616,7 @@ No authorization required ### Return type -[**FeedPostsStatsResponse**](../Models/FeedPostsStatsResponse.md) +[**GetFeedPostsStatsResponse**](../Models/GetFeedPostsStatsResponse.md) ### Authorization @@ -629,7 +629,7 @@ No authorization required # **getGifLarge** -> GifGetLargeResponse getGifLarge(tenantId, largeInternalURLSanitized) +> GetGifLargeResponse getGifLarge(tenantId, largeInternalURLSanitized) @@ -642,7 +642,7 @@ No authorization required ### Return type -[**GifGetLargeResponse**](../Models/GifGetLargeResponse.md) +[**GetGifLargeResponse**](../Models/GetGifLargeResponse.md) ### Authorization @@ -712,7 +712,7 @@ No authorization required # **getGlobalEventLog** -> GetEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime) +> GetGlobalEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime) @@ -730,7 +730,7 @@ No authorization required ### Return type -[**GetEventLogResponse**](../Models/GetEventLogResponse.md) +[**GetGlobalEventLogResponse**](../Models/GetGlobalEventLogResponse.md) ### Authorization @@ -743,7 +743,7 @@ No authorization required # **getOfflineUsers** -> PageUsersOfflineResponse getOfflineUsers(tenantId, urlId, afterName, afterUserId) +> GetOfflineUsersResponse getOfflineUsers(tenantId, urlId, afterName, afterUserId) @@ -760,7 +760,7 @@ No authorization required ### Return type -[**PageUsersOfflineResponse**](../Models/PageUsersOfflineResponse.md) +[**GetOfflineUsersResponse**](../Models/GetOfflineUsersResponse.md) ### Authorization @@ -773,7 +773,7 @@ No authorization required # **getOnlineUsers** -> PageUsersOnlineResponse getOnlineUsers(tenantId, urlId, afterName, afterUserId) +> GetOnlineUsersResponse getOnlineUsers(tenantId, urlId, afterName, afterUserId) @@ -790,7 +790,7 @@ No authorization required ### Return type -[**PageUsersOnlineResponse**](../Models/PageUsersOnlineResponse.md) +[**GetOnlineUsersResponse**](../Models/GetOnlineUsersResponse.md) ### Authorization @@ -803,7 +803,7 @@ No authorization required # **getPagesPublic** -> GetPublicPagesResponse getPagesPublic(tenantId, cursor, limit, q, sortBy, hasComments) +> GetPagesPublicResponse getPagesPublic(tenantId, cursor, limit, q, sortBy, hasComments) @@ -822,7 +822,7 @@ No authorization required ### Return type -[**GetPublicPagesResponse**](../Models/GetPublicPagesResponse.md) +[**GetPagesPublicResponse**](../Models/GetPagesPublicResponse.md) ### Authorization @@ -835,7 +835,7 @@ No authorization required # **getTranslations** -> GetTranslationsResponse getTranslations(namespace, component, locale, useFullTranslationIds) +> GetTranslationsResponse_1 getTranslations(namespace, component, locale, useFullTranslationIds) @@ -850,7 +850,7 @@ No authorization required ### Return type -[**GetTranslationsResponse**](../Models/GetTranslationsResponse.md) +[**GetTranslationsResponse_1**](../Models/GetTranslationsResponse_1.md) ### Authorization @@ -863,7 +863,7 @@ No authorization required # **getUserNotificationCount** -> GetUserNotificationCountResponse getUserNotificationCount(tenantId, sso) +> GetUserNotificationCountResponse_1 getUserNotificationCount(tenantId, sso) @@ -876,7 +876,7 @@ No authorization required ### Return type -[**GetUserNotificationCountResponse**](../Models/GetUserNotificationCountResponse.md) +[**GetUserNotificationCountResponse_1**](../Models/GetUserNotificationCountResponse_1.md) ### Authorization @@ -889,7 +889,7 @@ No authorization required # **getUserNotifications** -> GetMyNotificationsResponse getUserNotifications(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso) +> GetUserNotificationsResponse getUserNotifications(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso) @@ -912,7 +912,7 @@ No authorization required ### Return type -[**GetMyNotificationsResponse**](../Models/GetMyNotificationsResponse.md) +[**GetUserNotificationsResponse**](../Models/GetUserNotificationsResponse.md) ### Authorization @@ -925,7 +925,7 @@ No authorization required # **getUserPresenceStatuses** -> GetUserPresenceStatusesResponse getUserPresenceStatuses(tenantId, urlIdWS, userIds) +> GetUserPresenceStatusesResponse_1 getUserPresenceStatuses(tenantId, urlIdWS, userIds) @@ -939,7 +939,7 @@ No authorization required ### Return type -[**GetUserPresenceStatusesResponse**](../Models/GetUserPresenceStatusesResponse.md) +[**GetUserPresenceStatusesResponse_1**](../Models/GetUserPresenceStatusesResponse_1.md) ### Authorization @@ -952,7 +952,7 @@ No authorization required # **getUserReactsPublic** -> UserReactsResponse getUserReactsPublic(tenantId, postIds, sso) +> GetUserReactsPublicResponse getUserReactsPublic(tenantId, postIds, sso) @@ -966,7 +966,7 @@ No authorization required ### Return type -[**UserReactsResponse**](../Models/UserReactsResponse.md) +[**GetUserReactsPublicResponse**](../Models/GetUserReactsPublicResponse.md) ### Authorization @@ -979,7 +979,7 @@ No authorization required # **getUsersInfo** -> PageUsersInfoResponse getUsersInfo(tenantId, ids) +> GetUsersInfoResponse getUsersInfo(tenantId, ids) @@ -994,7 +994,7 @@ No authorization required ### Return type -[**PageUsersInfoResponse**](../Models/PageUsersInfoResponse.md) +[**GetUsersInfoResponse**](../Models/GetUsersInfoResponse.md) ### Authorization @@ -1007,7 +1007,7 @@ No authorization required # **getV1PageLikes** -> GetV1PageLikes getV1PageLikes(tenantId, urlId) +> GetV1PageLikesResponse getV1PageLikes(tenantId, urlId) @@ -1020,7 +1020,7 @@ No authorization required ### Return type -[**GetV1PageLikes**](../Models/GetV1PageLikes.md) +[**GetV1PageLikesResponse**](../Models/GetV1PageLikesResponse.md) ### Authorization @@ -1033,7 +1033,7 @@ No authorization required # **getV2PageReactUsers** -> GetV2PageReactUsersResponse getV2PageReactUsers(tenantId, urlId, id) +> GetV2PageReactUsersResponse_1 getV2PageReactUsers(tenantId, urlId, id) @@ -1047,7 +1047,7 @@ No authorization required ### Return type -[**GetV2PageReactUsersResponse**](../Models/GetV2PageReactUsersResponse.md) +[**GetV2PageReactUsersResponse_1**](../Models/GetV2PageReactUsersResponse_1.md) ### Authorization @@ -1060,7 +1060,7 @@ No authorization required # **getV2PageReacts** -> GetV2PageReacts getV2PageReacts(tenantId, urlId) +> GetV2PageReactsResponse getV2PageReacts(tenantId, urlId) @@ -1073,7 +1073,7 @@ No authorization required ### Return type -[**GetV2PageReacts**](../Models/GetV2PageReacts.md) +[**GetV2PageReactsResponse**](../Models/GetV2PageReactsResponse.md) ### Authorization @@ -1086,7 +1086,7 @@ No authorization required # **lockComment** -> APIEmptyResponse lockComment(tenantId, commentId, broadcastId, sso) +> LockCommentResponse lockComment(tenantId, commentId, broadcastId, sso) @@ -1101,7 +1101,7 @@ No authorization required ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**LockCommentResponse**](../Models/LockCommentResponse.md) ### Authorization @@ -1136,7 +1136,7 @@ No authorization required # **pinComment** -> ChangeCommentPinStatusResponse pinComment(tenantId, commentId, broadcastId, sso) +> PinCommentResponse pinComment(tenantId, commentId, broadcastId, sso) @@ -1151,7 +1151,7 @@ No authorization required ### Return type -[**ChangeCommentPinStatusResponse**](../Models/ChangeCommentPinStatusResponse.md) +[**PinCommentResponse**](../Models/PinCommentResponse.md) ### Authorization @@ -1164,7 +1164,7 @@ No authorization required # **reactFeedPostPublic** -> ReactFeedPostResponse reactFeedPostPublic(tenantId, postId, ReactBodyParams, isUndo, broadcastId, sso) +> ReactFeedPostPublicResponse reactFeedPostPublic(tenantId, postId, ReactBodyParams, isUndo, broadcastId, sso) @@ -1181,7 +1181,7 @@ No authorization required ### Return type -[**ReactFeedPostResponse**](../Models/ReactFeedPostResponse.md) +[**ReactFeedPostPublicResponse**](../Models/ReactFeedPostPublicResponse.md) ### Authorization @@ -1194,7 +1194,7 @@ No authorization required # **resetUserNotificationCount** -> ResetUserNotificationsResponse resetUserNotificationCount(tenantId, sso) +> ResetUserNotificationCountResponse resetUserNotificationCount(tenantId, sso) @@ -1207,7 +1207,7 @@ No authorization required ### Return type -[**ResetUserNotificationsResponse**](../Models/ResetUserNotificationsResponse.md) +[**ResetUserNotificationCountResponse**](../Models/ResetUserNotificationCountResponse.md) ### Authorization @@ -1220,7 +1220,7 @@ No authorization required # **resetUserNotifications** -> ResetUserNotificationsResponse resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso) +> ResetUserNotificationsResponse_1 resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso) @@ -1238,7 +1238,7 @@ No authorization required ### Return type -[**ResetUserNotificationsResponse**](../Models/ResetUserNotificationsResponse.md) +[**ResetUserNotificationsResponse_1**](../Models/ResetUserNotificationsResponse_1.md) ### Authorization @@ -1251,7 +1251,7 @@ No authorization required # **searchUsers** -> SearchUsersResult searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection) +> SearchUsersResponse_1 searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection) @@ -1268,7 +1268,7 @@ No authorization required ### Return type -[**SearchUsersResult**](../Models/SearchUsersResult.md) +[**SearchUsersResponse_1**](../Models/SearchUsersResponse_1.md) ### Authorization @@ -1281,7 +1281,7 @@ No authorization required # **setCommentText** -> PublicAPISetCommentTextResponse setCommentText(tenantId, commentId, broadcastId, CommentTextUpdateRequest, editKey, sso) +> SetCommentTextResponse_1 setCommentText(tenantId, commentId, broadcastId, CommentTextUpdateRequest, editKey, sso) @@ -1298,7 +1298,7 @@ No authorization required ### Return type -[**PublicAPISetCommentTextResponse**](../Models/PublicAPISetCommentTextResponse.md) +[**SetCommentTextResponse_1**](../Models/SetCommentTextResponse_1.md) ### Authorization @@ -1311,7 +1311,7 @@ No authorization required # **unBlockCommentPublic** -> UnblockSuccess unBlockCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) +> UnBlockCommentPublicResponse unBlockCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) @@ -1326,7 +1326,7 @@ No authorization required ### Return type -[**UnblockSuccess**](../Models/UnblockSuccess.md) +[**UnBlockCommentPublicResponse**](../Models/UnBlockCommentPublicResponse.md) ### Authorization @@ -1339,7 +1339,7 @@ No authorization required # **unLockComment** -> APIEmptyResponse unLockComment(tenantId, commentId, broadcastId, sso) +> UnLockCommentResponse unLockComment(tenantId, commentId, broadcastId, sso) @@ -1354,7 +1354,7 @@ No authorization required ### Return type -[**APIEmptyResponse**](../Models/APIEmptyResponse.md) +[**UnLockCommentResponse**](../Models/UnLockCommentResponse.md) ### Authorization @@ -1367,7 +1367,7 @@ No authorization required # **unPinComment** -> ChangeCommentPinStatusResponse unPinComment(tenantId, commentId, broadcastId, sso) +> UnPinCommentResponse unPinComment(tenantId, commentId, broadcastId, sso) @@ -1382,7 +1382,7 @@ No authorization required ### Return type -[**ChangeCommentPinStatusResponse**](../Models/ChangeCommentPinStatusResponse.md) +[**UnPinCommentResponse**](../Models/UnPinCommentResponse.md) ### Authorization @@ -1395,7 +1395,7 @@ No authorization required # **updateFeedPostPublic** -> CreateFeedPostResponse updateFeedPostPublic(tenantId, postId, UpdateFeedPostParams, broadcastId, sso) +> UpdateFeedPostPublicResponse updateFeedPostPublic(tenantId, postId, UpdateFeedPostParams, broadcastId, sso) @@ -1411,7 +1411,7 @@ No authorization required ### Return type -[**CreateFeedPostResponse**](../Models/CreateFeedPostResponse.md) +[**UpdateFeedPostPublicResponse**](../Models/UpdateFeedPostPublicResponse.md) ### Authorization @@ -1545,7 +1545,7 @@ No authorization required # **voteComment** -> VoteResponse voteComment(tenantId, commentId, urlId, broadcastId, VoteBodyParams, sessionId, sso) +> VoteCommentResponse voteComment(tenantId, commentId, urlId, broadcastId, VoteBodyParams, sessionId, sso) @@ -1563,7 +1563,7 @@ No authorization required ### Return type -[**VoteResponse**](../Models/VoteResponse.md) +[**VoteCommentResponse**](../Models/VoteCommentResponse.md) ### Authorization diff --git a/docs/Models/AddHashTagResponse.md b/docs/Models/AddHashTagResponse.md new file mode 100644 index 0000000..91c7dd6 --- /dev/null +++ b/docs/Models/AddHashTagResponse.md @@ -0,0 +1,17 @@ +# AddHashTagResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **hashTag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/AddHashTagsBulkResponse.md b/docs/Models/AddHashTagsBulkResponse.md new file mode 100644 index 0000000..8709628 --- /dev/null +++ b/docs/Models/AddHashTagsBulkResponse.md @@ -0,0 +1,17 @@ +# AddHashTagsBulkResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **results** | [**List**](BulkCreateHashTagsResponse_results_inner.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/AggregateQuestionResultsResponse_1.md b/docs/Models/AggregateQuestionResultsResponse_1.md new file mode 100644 index 0000000..16ff86d --- /dev/null +++ b/docs/Models/AggregateQuestionResultsResponse_1.md @@ -0,0 +1,17 @@ +# AggregateQuestionResultsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/BlockFromCommentPublicResponse.md b/docs/Models/BlockFromCommentPublicResponse.md new file mode 100644 index 0000000..bfa4edd --- /dev/null +++ b/docs/Models/BlockFromCommentPublicResponse.md @@ -0,0 +1,17 @@ +# BlockFromCommentPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/BlockUserFromCommentResponse.md b/docs/Models/BlockUserFromCommentResponse.md new file mode 100644 index 0000000..f8ee63e --- /dev/null +++ b/docs/Models/BlockUserFromCommentResponse.md @@ -0,0 +1,17 @@ +# BlockUserFromCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/BulkAggregateQuestionResultsResponse_1.md b/docs/Models/BulkAggregateQuestionResultsResponse_1.md new file mode 100644 index 0000000..7355c3e --- /dev/null +++ b/docs/Models/BulkAggregateQuestionResultsResponse_1.md @@ -0,0 +1,17 @@ +# BulkAggregateQuestionResultsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **data** | [**Map**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ChangeTicketStateResponse_1.md b/docs/Models/ChangeTicketStateResponse_1.md new file mode 100644 index 0000000..7c7bc73 --- /dev/null +++ b/docs/Models/ChangeTicketStateResponse_1.md @@ -0,0 +1,17 @@ +# ChangeTicketStateResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **ticket** | [**APITicket**](APITicket.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CheckedCommentsForBlockedResponse.md b/docs/Models/CheckedCommentsForBlockedResponse.md new file mode 100644 index 0000000..2533e0a --- /dev/null +++ b/docs/Models/CheckedCommentsForBlockedResponse.md @@ -0,0 +1,17 @@ +# CheckedCommentsForBlockedResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CombineCommentsWithQuestionResultsResponse.md b/docs/Models/CombineCommentsWithQuestionResultsResponse.md new file mode 100644 index 0000000..59d075e --- /dev/null +++ b/docs/Models/CombineCommentsWithQuestionResultsResponse.md @@ -0,0 +1,17 @@ +# CombineCommentsWithQuestionResultsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateCommentPublicResponse.md b/docs/Models/CreateCommentPublicResponse.md new file mode 100644 index 0000000..e10b1ab --- /dev/null +++ b/docs/Models/CreateCommentPublicResponse.md @@ -0,0 +1,20 @@ +# CreateCommentPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **comment** | [**PublicComment**](PublicComment.md) | | [optional] [default to null] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] [default to null] | +| **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **userIdWS** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateEmailTemplateResponse_1.md b/docs/Models/CreateEmailTemplateResponse_1.md new file mode 100644 index 0000000..09d42d4 --- /dev/null +++ b/docs/Models/CreateEmailTemplateResponse_1.md @@ -0,0 +1,17 @@ +# CreateEmailTemplateResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateFeedPostPublicResponse.md b/docs/Models/CreateFeedPostPublicResponse.md new file mode 100644 index 0000000..1706924 --- /dev/null +++ b/docs/Models/CreateFeedPostPublicResponse.md @@ -0,0 +1,17 @@ +# CreateFeedPostPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **feedPost** | [**FeedPost**](FeedPost.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateFeedPostResponse_1.md b/docs/Models/CreateFeedPostResponse_1.md new file mode 100644 index 0000000..b804af3 --- /dev/null +++ b/docs/Models/CreateFeedPostResponse_1.md @@ -0,0 +1,17 @@ +# CreateFeedPostResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **feedPost** | [**FeedPost**](FeedPost.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateModeratorResponse_1.md b/docs/Models/CreateModeratorResponse_1.md new file mode 100644 index 0000000..c1f2204 --- /dev/null +++ b/docs/Models/CreateModeratorResponse_1.md @@ -0,0 +1,17 @@ +# CreateModeratorResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **moderator** | [**Moderator**](Moderator.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateQuestionConfigResponse_1.md b/docs/Models/CreateQuestionConfigResponse_1.md new file mode 100644 index 0000000..9e289f4 --- /dev/null +++ b/docs/Models/CreateQuestionConfigResponse_1.md @@ -0,0 +1,17 @@ +# CreateQuestionConfigResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateQuestionResultResponse_1.md b/docs/Models/CreateQuestionResultResponse_1.md new file mode 100644 index 0000000..52031c1 --- /dev/null +++ b/docs/Models/CreateQuestionResultResponse_1.md @@ -0,0 +1,17 @@ +# CreateQuestionResultResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **questionResult** | [**QuestionResult**](QuestionResult.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateTenantPackageResponse_1.md b/docs/Models/CreateTenantPackageResponse_1.md new file mode 100644 index 0000000..47a0ff8 --- /dev/null +++ b/docs/Models/CreateTenantPackageResponse_1.md @@ -0,0 +1,17 @@ +# CreateTenantPackageResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tenantPackage** | [**TenantPackage**](TenantPackage.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateTenantResponse_1.md b/docs/Models/CreateTenantResponse_1.md new file mode 100644 index 0000000..e4b8e3f --- /dev/null +++ b/docs/Models/CreateTenantResponse_1.md @@ -0,0 +1,17 @@ +# CreateTenantResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tenant** | [**APITenant**](APITenant.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateTenantUserResponse_1.md b/docs/Models/CreateTenantUserResponse_1.md new file mode 100644 index 0000000..4832a33 --- /dev/null +++ b/docs/Models/CreateTenantUserResponse_1.md @@ -0,0 +1,17 @@ +# CreateTenantUserResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tenantUser** | [**User**](User.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateTicketResponse_1.md b/docs/Models/CreateTicketResponse_1.md new file mode 100644 index 0000000..6e675d1 --- /dev/null +++ b/docs/Models/CreateTicketResponse_1.md @@ -0,0 +1,17 @@ +# CreateTicketResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **ticket** | [**APITicket**](APITicket.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateUserBadgeResponse.md b/docs/Models/CreateUserBadgeResponse.md new file mode 100644 index 0000000..0dc70e2 --- /dev/null +++ b/docs/Models/CreateUserBadgeResponse.md @@ -0,0 +1,18 @@ +# CreateUserBadgeResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **userBadge** | [**UserBadge**](UserBadge.md) | | [optional] [default to null] | +| **notes** | **List** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateV1PageReactResponse.md b/docs/Models/CreateV1PageReactResponse.md new file mode 100644 index 0000000..6d4dfec --- /dev/null +++ b/docs/Models/CreateV1PageReactResponse.md @@ -0,0 +1,16 @@ +# CreateV1PageReactResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **code** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateV2PageReactResponse.md b/docs/Models/CreateV2PageReactResponse.md new file mode 100644 index 0000000..04a932d --- /dev/null +++ b/docs/Models/CreateV2PageReactResponse.md @@ -0,0 +1,16 @@ +# CreateV2PageReactResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **code** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/CreateVoteResponse.md b/docs/Models/CreateVoteResponse.md new file mode 100644 index 0000000..fc9b879 --- /dev/null +++ b/docs/Models/CreateVoteResponse.md @@ -0,0 +1,20 @@ +# CreateVoteResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **voteId** | **String** | | [optional] [default to null] | +| **isVerified** | **Boolean** | | [optional] [default to null] | +| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] [default to null] | +| **editKey** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteCommentPublicResponse.md b/docs/Models/DeleteCommentPublicResponse.md new file mode 100644 index 0000000..9b6d35e --- /dev/null +++ b/docs/Models/DeleteCommentPublicResponse.md @@ -0,0 +1,18 @@ +# DeleteCommentPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **comment** | [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] [default to null] | +| **hardRemoved** | **Boolean** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteCommentResponse.md b/docs/Models/DeleteCommentResponse.md new file mode 100644 index 0000000..4ae51bc --- /dev/null +++ b/docs/Models/DeleteCommentResponse.md @@ -0,0 +1,17 @@ +# DeleteCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteCommentVoteResponse.md b/docs/Models/DeleteCommentVoteResponse.md new file mode 100644 index 0000000..a29e46b --- /dev/null +++ b/docs/Models/DeleteCommentVoteResponse.md @@ -0,0 +1,17 @@ +# DeleteCommentVoteResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **wasPendingVote** | **Boolean** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteEmailTemplateRenderErrorResponse.md b/docs/Models/DeleteEmailTemplateRenderErrorResponse.md new file mode 100644 index 0000000..13019d2 --- /dev/null +++ b/docs/Models/DeleteEmailTemplateRenderErrorResponse.md @@ -0,0 +1,16 @@ +# DeleteEmailTemplateRenderErrorResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteEmailTemplateResponse.md b/docs/Models/DeleteEmailTemplateResponse.md new file mode 100644 index 0000000..d227014 --- /dev/null +++ b/docs/Models/DeleteEmailTemplateResponse.md @@ -0,0 +1,16 @@ +# DeleteEmailTemplateResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteFeedPostPublicResponse.md b/docs/Models/DeleteFeedPostPublicResponse.md index 1d9a593..813bd6e 100644 --- a/docs/Models/DeleteFeedPostPublicResponse.md +++ b/docs/Models/DeleteFeedPostPublicResponse.md @@ -4,6 +4,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/DeleteFeedPostPublicResponse_anyOf.md b/docs/Models/DeleteFeedPostPublicResponse_anyOf.md new file mode 100644 index 0000000..644ccd9 --- /dev/null +++ b/docs/Models/DeleteFeedPostPublicResponse_anyOf.md @@ -0,0 +1,9 @@ +# DeleteFeedPostPublicResponse_anyOf +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteHashTagResponse.md b/docs/Models/DeleteHashTagResponse.md new file mode 100644 index 0000000..02d3a75 --- /dev/null +++ b/docs/Models/DeleteHashTagResponse.md @@ -0,0 +1,16 @@ +# DeleteHashTagResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteModerationVoteResponse.md b/docs/Models/DeleteModerationVoteResponse.md new file mode 100644 index 0000000..c25e834 --- /dev/null +++ b/docs/Models/DeleteModerationVoteResponse.md @@ -0,0 +1,17 @@ +# DeleteModerationVoteResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **wasPendingVote** | **Boolean** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteModeratorResponse.md b/docs/Models/DeleteModeratorResponse.md new file mode 100644 index 0000000..178ebb8 --- /dev/null +++ b/docs/Models/DeleteModeratorResponse.md @@ -0,0 +1,16 @@ +# DeleteModeratorResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteNotificationCountResponse.md b/docs/Models/DeleteNotificationCountResponse.md new file mode 100644 index 0000000..f4ea430 --- /dev/null +++ b/docs/Models/DeleteNotificationCountResponse.md @@ -0,0 +1,16 @@ +# DeleteNotificationCountResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeletePendingWebhookEventResponse.md b/docs/Models/DeletePendingWebhookEventResponse.md new file mode 100644 index 0000000..f7553a3 --- /dev/null +++ b/docs/Models/DeletePendingWebhookEventResponse.md @@ -0,0 +1,16 @@ +# DeletePendingWebhookEventResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteQuestionConfigResponse.md b/docs/Models/DeleteQuestionConfigResponse.md new file mode 100644 index 0000000..8e29695 --- /dev/null +++ b/docs/Models/DeleteQuestionConfigResponse.md @@ -0,0 +1,16 @@ +# DeleteQuestionConfigResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteQuestionResultResponse.md b/docs/Models/DeleteQuestionResultResponse.md new file mode 100644 index 0000000..57d60bd --- /dev/null +++ b/docs/Models/DeleteQuestionResultResponse.md @@ -0,0 +1,16 @@ +# DeleteQuestionResultResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteTenantPackageResponse.md b/docs/Models/DeleteTenantPackageResponse.md new file mode 100644 index 0000000..91b4b88 --- /dev/null +++ b/docs/Models/DeleteTenantPackageResponse.md @@ -0,0 +1,16 @@ +# DeleteTenantPackageResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteTenantResponse.md b/docs/Models/DeleteTenantResponse.md new file mode 100644 index 0000000..a1be257 --- /dev/null +++ b/docs/Models/DeleteTenantResponse.md @@ -0,0 +1,16 @@ +# DeleteTenantResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteTenantUserResponse.md b/docs/Models/DeleteTenantUserResponse.md new file mode 100644 index 0000000..b666540 --- /dev/null +++ b/docs/Models/DeleteTenantUserResponse.md @@ -0,0 +1,16 @@ +# DeleteTenantUserResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteUserBadgeResponse.md b/docs/Models/DeleteUserBadgeResponse.md new file mode 100644 index 0000000..f6c0720 --- /dev/null +++ b/docs/Models/DeleteUserBadgeResponse.md @@ -0,0 +1,16 @@ +# DeleteUserBadgeResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteV1PageReactResponse.md b/docs/Models/DeleteV1PageReactResponse.md new file mode 100644 index 0000000..79e208e --- /dev/null +++ b/docs/Models/DeleteV1PageReactResponse.md @@ -0,0 +1,16 @@ +# DeleteV1PageReactResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **code** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteV2PageReactResponse.md b/docs/Models/DeleteV2PageReactResponse.md new file mode 100644 index 0000000..ab33dbe --- /dev/null +++ b/docs/Models/DeleteV2PageReactResponse.md @@ -0,0 +1,16 @@ +# DeleteV2PageReactResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **code** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/DeleteVoteResponse.md b/docs/Models/DeleteVoteResponse.md new file mode 100644 index 0000000..bc8193b --- /dev/null +++ b/docs/Models/DeleteVoteResponse.md @@ -0,0 +1,17 @@ +# DeleteVoteResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **wasPendingVote** | **Boolean** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/FlagCommentPublicResponse.md b/docs/Models/FlagCommentPublicResponse.md new file mode 100644 index 0000000..731a192 --- /dev/null +++ b/docs/Models/FlagCommentPublicResponse.md @@ -0,0 +1,16 @@ +# FlagCommentPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/FlagCommentResponse_1.md b/docs/Models/FlagCommentResponse_1.md new file mode 100644 index 0000000..3fa18c5 --- /dev/null +++ b/docs/Models/FlagCommentResponse_1.md @@ -0,0 +1,18 @@ +# FlagCommentResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **statusCode** | **Integer** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **wasUnapproved** | **Boolean** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetApiCommentsResponse.md b/docs/Models/GetApiCommentsResponse.md new file mode 100644 index 0000000..d6cff4a --- /dev/null +++ b/docs/Models/GetApiCommentsResponse.md @@ -0,0 +1,19 @@ +# GetApiCommentsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **translations** | [**Object**](.md) | | [optional] [default to null] | +| **comments** | [**List**](ModerationAPIComment.md) | | [optional] [default to null] | +| **moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetApiExportStatusResponse.md b/docs/Models/GetApiExportStatusResponse.md new file mode 100644 index 0000000..4d4dcc3 --- /dev/null +++ b/docs/Models/GetApiExportStatusResponse.md @@ -0,0 +1,19 @@ +# GetApiExportStatusResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **jobStatus** | **String** | | [optional] [default to null] | +| **recordCount** | **Integer** | | [optional] [default to null] | +| **downloadUrl** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetApiIdsResponse.md b/docs/Models/GetApiIdsResponse.md new file mode 100644 index 0000000..64ae23d --- /dev/null +++ b/docs/Models/GetApiIdsResponse.md @@ -0,0 +1,18 @@ +# GetApiIdsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **ids** | **List** | | [optional] [default to null] | +| **hasMore** | **Boolean** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetAuditLogsResponse_1.md b/docs/Models/GetAuditLogsResponse_1.md new file mode 100644 index 0000000..005a44f --- /dev/null +++ b/docs/Models/GetAuditLogsResponse_1.md @@ -0,0 +1,17 @@ +# GetAuditLogsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **auditLogs** | [**List**](APIAuditLog.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetBanUsersFromCommentResponse.md b/docs/Models/GetBanUsersFromCommentResponse.md new file mode 100644 index 0000000..1c4428c --- /dev/null +++ b/docs/Models/GetBanUsersFromCommentResponse.md @@ -0,0 +1,17 @@ +# GetBanUsersFromCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **bannedUsers** | [**List**](APIBannedUserWithMultiMatchInfo.md) | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCachedNotificationCountResponse_1.md b/docs/Models/GetCachedNotificationCountResponse_1.md new file mode 100644 index 0000000..3ebe782 --- /dev/null +++ b/docs/Models/GetCachedNotificationCountResponse_1.md @@ -0,0 +1,17 @@ +# GetCachedNotificationCountResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **data** | [**UserNotificationCount**](UserNotificationCount.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentBanStatusResponse_1.md b/docs/Models/GetCommentBanStatusResponse_1.md new file mode 100644 index 0000000..1936e90 --- /dev/null +++ b/docs/Models/GetCommentBanStatusResponse_1.md @@ -0,0 +1,18 @@ +# GetCommentBanStatusResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **emailDomain** | **String** | | [optional] [default to null] | +| **canIPBan** | **Boolean** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentChildrenResponse.md b/docs/Models/GetCommentChildrenResponse.md new file mode 100644 index 0000000..470c8e6 --- /dev/null +++ b/docs/Models/GetCommentChildrenResponse.md @@ -0,0 +1,17 @@ +# GetCommentChildrenResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **comments** | [**List**](ModerationAPIComment.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentResponse.md b/docs/Models/GetCommentResponse.md new file mode 100644 index 0000000..3fd2b51 --- /dev/null +++ b/docs/Models/GetCommentResponse.md @@ -0,0 +1,17 @@ +# GetCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **comment** | [**APIComment**](APIComment.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentTextResponse_1.md b/docs/Models/GetCommentTextResponse_1.md new file mode 100644 index 0000000..6cf5b1e --- /dev/null +++ b/docs/Models/GetCommentTextResponse_1.md @@ -0,0 +1,18 @@ +# GetCommentTextResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **commentText** | **String** | | [optional] [default to null] | +| **sanitizedCommentText** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentVoteUserNamesResponse.md b/docs/Models/GetCommentVoteUserNamesResponse.md new file mode 100644 index 0000000..7902b42 --- /dev/null +++ b/docs/Models/GetCommentVoteUserNamesResponse.md @@ -0,0 +1,18 @@ +# GetCommentVoteUserNamesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **voteUserNames** | **List** | | [optional] [default to null] | +| **hasMore** | **Boolean** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentsForUserResponse_1.md b/docs/Models/GetCommentsForUserResponse_1.md new file mode 100644 index 0000000..879a091 --- /dev/null +++ b/docs/Models/GetCommentsForUserResponse_1.md @@ -0,0 +1,17 @@ +# GetCommentsForUserResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **moderatingTenantIds** | **List** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentsPublicResponse.md b/docs/Models/GetCommentsPublicResponse.md new file mode 100644 index 0000000..0657042 --- /dev/null +++ b/docs/Models/GetCommentsPublicResponse.md @@ -0,0 +1,39 @@ +# GetCommentsPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **statusCode** | **Integer** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **translatedWarning** | **String** | | [optional] [default to null] | +| **comments** | [**List**](PublicComment.md) | | [optional] [default to null] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] [default to null] | +| **urlIdClean** | **String** | | [optional] [default to null] | +| **lastGenDate** | **Long** | | [optional] [default to null] | +| **includesPastPages** | **Boolean** | | [optional] [default to null] | +| **isDemo** | **Boolean** | | [optional] [default to null] | +| **commentCount** | **Integer** | | [optional] [default to null] | +| **isSiteAdmin** | **Boolean** | | [optional] [default to null] | +| **hasBillingIssue** | **Boolean** | | [optional] [default to null] | +| **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **pageNumber** | **Integer** | | [optional] [default to null] | +| **isWhiteLabeled** | **Boolean** | | [optional] [default to null] | +| **isProd** | **Boolean** | | [optional] [default to null] | +| **isCrawler** | **Boolean** | | [optional] [default to null] | +| **notificationCount** | **Integer** | | [optional] [default to null] | +| **hasMore** | **Boolean** | | [optional] [default to null] | +| **isClosed** | **Boolean** | | [optional] [default to null] | +| **presencePollState** | **Integer** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | +| **urlIdWS** | **String** | | [optional] [default to null] | +| **userIdWS** | **String** | | [optional] [default to null] | +| **tenantIdWS** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCommentsResponse.md b/docs/Models/GetCommentsResponse.md new file mode 100644 index 0000000..262b9fb --- /dev/null +++ b/docs/Models/GetCommentsResponse.md @@ -0,0 +1,17 @@ +# GetCommentsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **comments** | [**List**](APIComment.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCountResponse.md b/docs/Models/GetCountResponse.md new file mode 100644 index 0000000..db13f77 --- /dev/null +++ b/docs/Models/GetCountResponse.md @@ -0,0 +1,17 @@ +# GetCountResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **count** | **Double** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetCountsResponse.md b/docs/Models/GetCountsResponse.md new file mode 100644 index 0000000..e3ec750 --- /dev/null +++ b/docs/Models/GetCountsResponse.md @@ -0,0 +1,17 @@ +# GetCountsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **totalCount** | **Double** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetEmailTemplateDefinitionsResponse_1.md b/docs/Models/GetEmailTemplateDefinitionsResponse_1.md new file mode 100644 index 0000000..24ea893 --- /dev/null +++ b/docs/Models/GetEmailTemplateDefinitionsResponse_1.md @@ -0,0 +1,17 @@ +# GetEmailTemplateDefinitionsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **definitions** | [**List**](EmailTemplateDefinition.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetEmailTemplateRenderErrorsResponse_1.md b/docs/Models/GetEmailTemplateRenderErrorsResponse_1.md new file mode 100644 index 0000000..d2c122c --- /dev/null +++ b/docs/Models/GetEmailTemplateRenderErrorsResponse_1.md @@ -0,0 +1,17 @@ +# GetEmailTemplateRenderErrorsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **renderErrors** | [**List**](EmailTemplateRenderErrorResponse.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetEmailTemplateResponse_1.md b/docs/Models/GetEmailTemplateResponse_1.md new file mode 100644 index 0000000..e23df48 --- /dev/null +++ b/docs/Models/GetEmailTemplateResponse_1.md @@ -0,0 +1,17 @@ +# GetEmailTemplateResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetEmailTemplatesResponse_1.md b/docs/Models/GetEmailTemplatesResponse_1.md new file mode 100644 index 0000000..961d2f9 --- /dev/null +++ b/docs/Models/GetEmailTemplatesResponse_1.md @@ -0,0 +1,17 @@ +# GetEmailTemplatesResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **emailTemplates** | [**List**](CustomEmailTemplate.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetEventLogResponse_1.md b/docs/Models/GetEventLogResponse_1.md new file mode 100644 index 0000000..7411d08 --- /dev/null +++ b/docs/Models/GetEventLogResponse_1.md @@ -0,0 +1,17 @@ +# GetEventLogResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **events** | [**List**](EventLogEntry.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetFeedPostsPublicResponse.md b/docs/Models/GetFeedPostsPublicResponse.md new file mode 100644 index 0000000..4cf549f --- /dev/null +++ b/docs/Models/GetFeedPostsPublicResponse.md @@ -0,0 +1,22 @@ +# GetFeedPostsPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **myReacts** | [**Map**](map.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **feedPosts** | [**List**](FeedPost.md) | | [optional] [default to null] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] [default to null] | +| **urlIdWS** | **String** | | [optional] [default to null] | +| **userIdWS** | **String** | | [optional] [default to null] | +| **tenantIdWS** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetFeedPostsResponse_1.md b/docs/Models/GetFeedPostsResponse_1.md new file mode 100644 index 0000000..f0f7bc2 --- /dev/null +++ b/docs/Models/GetFeedPostsResponse_1.md @@ -0,0 +1,17 @@ +# GetFeedPostsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **feedPosts** | [**List**](FeedPost.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetFeedPostsStatsResponse.md b/docs/Models/GetFeedPostsStatsResponse.md new file mode 100644 index 0000000..8ceddc2 --- /dev/null +++ b/docs/Models/GetFeedPostsStatsResponse.md @@ -0,0 +1,17 @@ +# GetFeedPostsStatsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **stats** | [**Map**](FeedPostStats.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetGifLargeResponse.md b/docs/Models/GetGifLargeResponse.md new file mode 100644 index 0000000..676f506 --- /dev/null +++ b/docs/Models/GetGifLargeResponse.md @@ -0,0 +1,17 @@ +# GetGifLargeResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **src** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetGifsSearchResponse.md b/docs/Models/GetGifsSearchResponse.md index 45eb9c8..56ca9bb 100644 --- a/docs/Models/GetGifsSearchResponse.md +++ b/docs/Models/GetGifsSearchResponse.md @@ -6,6 +6,12 @@ | **images** | [**List**](array.md) | | [optional] [default to null] | | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | | **code** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/GetGlobalEventLogResponse.md b/docs/Models/GetGlobalEventLogResponse.md new file mode 100644 index 0000000..bcc8fb6 --- /dev/null +++ b/docs/Models/GetGlobalEventLogResponse.md @@ -0,0 +1,17 @@ +# GetGlobalEventLogResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **events** | [**List**](EventLogEntry.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetHashTagsResponse_1.md b/docs/Models/GetHashTagsResponse_1.md new file mode 100644 index 0000000..10e6433 --- /dev/null +++ b/docs/Models/GetHashTagsResponse_1.md @@ -0,0 +1,17 @@ +# GetHashTagsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **hashTags** | [**List**](TenantHashTag.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetLogsResponse.md b/docs/Models/GetLogsResponse.md new file mode 100644 index 0000000..b346474 --- /dev/null +++ b/docs/Models/GetLogsResponse.md @@ -0,0 +1,17 @@ +# GetLogsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **logs** | [**List**](ModerationAPICommentLog.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetManualBadgesForUserResponse.md b/docs/Models/GetManualBadgesForUserResponse.md new file mode 100644 index 0000000..418db09 --- /dev/null +++ b/docs/Models/GetManualBadgesForUserResponse.md @@ -0,0 +1,17 @@ +# GetManualBadgesForUserResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **badges** | [**List**](UserBadge.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetManualBadgesResponse.md b/docs/Models/GetManualBadgesResponse.md new file mode 100644 index 0000000..f18199b --- /dev/null +++ b/docs/Models/GetManualBadgesResponse.md @@ -0,0 +1,17 @@ +# GetManualBadgesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **badges** | [**List**](TenantBadge.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetModerationCommentResponse.md b/docs/Models/GetModerationCommentResponse.md new file mode 100644 index 0000000..0b3f498 --- /dev/null +++ b/docs/Models/GetModerationCommentResponse.md @@ -0,0 +1,17 @@ +# GetModerationCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **comment** | [**ModerationAPIComment**](ModerationAPIComment.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetModerationCommentTextResponse.md b/docs/Models/GetModerationCommentTextResponse.md new file mode 100644 index 0000000..08806e8 --- /dev/null +++ b/docs/Models/GetModerationCommentTextResponse.md @@ -0,0 +1,17 @@ +# GetModerationCommentTextResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **comment** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetModeratorResponse_1.md b/docs/Models/GetModeratorResponse_1.md new file mode 100644 index 0000000..8045b77 --- /dev/null +++ b/docs/Models/GetModeratorResponse_1.md @@ -0,0 +1,17 @@ +# GetModeratorResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **moderator** | [**Moderator**](Moderator.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetModeratorsResponse_1.md b/docs/Models/GetModeratorsResponse_1.md new file mode 100644 index 0000000..159a4df --- /dev/null +++ b/docs/Models/GetModeratorsResponse_1.md @@ -0,0 +1,17 @@ +# GetModeratorsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **moderators** | [**List**](Moderator.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetNotificationCountResponse_1.md b/docs/Models/GetNotificationCountResponse_1.md new file mode 100644 index 0000000..45f5d87 --- /dev/null +++ b/docs/Models/GetNotificationCountResponse_1.md @@ -0,0 +1,17 @@ +# GetNotificationCountResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **count** | **Double** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetNotificationsResponse_1.md b/docs/Models/GetNotificationsResponse_1.md new file mode 100644 index 0000000..6535fa1 --- /dev/null +++ b/docs/Models/GetNotificationsResponse_1.md @@ -0,0 +1,17 @@ +# GetNotificationsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **notifications** | [**List**](UserNotification.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetOfflineUsersResponse.md b/docs/Models/GetOfflineUsersResponse.md new file mode 100644 index 0000000..24ba65a --- /dev/null +++ b/docs/Models/GetOfflineUsersResponse.md @@ -0,0 +1,19 @@ +# GetOfflineUsersResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **nextAfterUserId** | **String** | | [optional] [default to null] | +| **nextAfterName** | **String** | | [optional] [default to null] | +| **users** | [**List**](PageUserEntry.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetOnlineUsersResponse.md b/docs/Models/GetOnlineUsersResponse.md new file mode 100644 index 0000000..ad01243 --- /dev/null +++ b/docs/Models/GetOnlineUsersResponse.md @@ -0,0 +1,21 @@ +# GetOnlineUsersResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **nextAfterUserId** | **String** | | [optional] [default to null] | +| **nextAfterName** | **String** | | [optional] [default to null] | +| **totalCount** | **Double** | | [optional] [default to null] | +| **anonCount** | **Double** | | [optional] [default to null] | +| **users** | [**List**](PageUserEntry.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetPagesPublicResponse.md b/docs/Models/GetPagesPublicResponse.md new file mode 100644 index 0000000..0d97d06 --- /dev/null +++ b/docs/Models/GetPagesPublicResponse.md @@ -0,0 +1,18 @@ +# GetPagesPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **nextCursor** | **String** | | [optional] [default to null] | +| **pages** | [**List**](PublicPage.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetPendingWebhookEventCountResponse_1.md b/docs/Models/GetPendingWebhookEventCountResponse_1.md new file mode 100644 index 0000000..a1e6504 --- /dev/null +++ b/docs/Models/GetPendingWebhookEventCountResponse_1.md @@ -0,0 +1,17 @@ +# GetPendingWebhookEventCountResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **count** | **Double** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetPendingWebhookEventsResponse_1.md b/docs/Models/GetPendingWebhookEventsResponse_1.md new file mode 100644 index 0000000..eaf8072 --- /dev/null +++ b/docs/Models/GetPendingWebhookEventsResponse_1.md @@ -0,0 +1,17 @@ +# GetPendingWebhookEventsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **pendingWebhookEvents** | [**List**](PendingCommentToSyncOutbound.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetPreBanSummaryResponse.md b/docs/Models/GetPreBanSummaryResponse.md new file mode 100644 index 0000000..c460256 --- /dev/null +++ b/docs/Models/GetPreBanSummaryResponse.md @@ -0,0 +1,18 @@ +# GetPreBanSummaryResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **usernames** | **List** | | [optional] [default to null] | +| **count** | **Double** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetQuestionConfigResponse_1.md b/docs/Models/GetQuestionConfigResponse_1.md new file mode 100644 index 0000000..6b2d654 --- /dev/null +++ b/docs/Models/GetQuestionConfigResponse_1.md @@ -0,0 +1,17 @@ +# GetQuestionConfigResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetQuestionConfigsResponse_1.md b/docs/Models/GetQuestionConfigsResponse_1.md new file mode 100644 index 0000000..f2a9112 --- /dev/null +++ b/docs/Models/GetQuestionConfigsResponse_1.md @@ -0,0 +1,17 @@ +# GetQuestionConfigsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **questionConfigs** | [**List**](QuestionConfig.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetQuestionResultResponse_1.md b/docs/Models/GetQuestionResultResponse_1.md new file mode 100644 index 0000000..c0da0b8 --- /dev/null +++ b/docs/Models/GetQuestionResultResponse_1.md @@ -0,0 +1,17 @@ +# GetQuestionResultResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **questionResult** | [**QuestionResult**](QuestionResult.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetQuestionResultsResponse_1.md b/docs/Models/GetQuestionResultsResponse_1.md new file mode 100644 index 0000000..837bade --- /dev/null +++ b/docs/Models/GetQuestionResultsResponse_1.md @@ -0,0 +1,17 @@ +# GetQuestionResultsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **questionResults** | [**List**](QuestionResult.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetSearchCommentsSummaryResponse.md b/docs/Models/GetSearchCommentsSummaryResponse.md new file mode 100644 index 0000000..7ffe955 --- /dev/null +++ b/docs/Models/GetSearchCommentsSummaryResponse.md @@ -0,0 +1,17 @@ +# GetSearchCommentsSummaryResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **commentCount** | **Integer** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetSearchPagesResponse.md b/docs/Models/GetSearchPagesResponse.md new file mode 100644 index 0000000..1ebc58b --- /dev/null +++ b/docs/Models/GetSearchPagesResponse.md @@ -0,0 +1,17 @@ +# GetSearchPagesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **pages** | [**List**](ModerationPageSearchProjected.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetSearchSitesResponse.md b/docs/Models/GetSearchSitesResponse.md new file mode 100644 index 0000000..c5e8a42 --- /dev/null +++ b/docs/Models/GetSearchSitesResponse.md @@ -0,0 +1,17 @@ +# GetSearchSitesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **sites** | [**List**](ModerationSiteSearchProjected.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetSearchSuggestResponse.md b/docs/Models/GetSearchSuggestResponse.md new file mode 100644 index 0000000..9edca73 --- /dev/null +++ b/docs/Models/GetSearchSuggestResponse.md @@ -0,0 +1,18 @@ +# GetSearchSuggestResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **pages** | [**List**](ModerationPageSearchProjected.md) | | [optional] [default to null] | +| **users** | [**List**](ModerationUserSearchProjected.md) | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetSearchUsersResponse.md b/docs/Models/GetSearchUsersResponse.md new file mode 100644 index 0000000..7b3ce71 --- /dev/null +++ b/docs/Models/GetSearchUsersResponse.md @@ -0,0 +1,17 @@ +# GetSearchUsersResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **users** | [**List**](ModerationUserSearchProjected.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTenantDailyUsagesResponse_1.md b/docs/Models/GetTenantDailyUsagesResponse_1.md new file mode 100644 index 0000000..d9b2fbe --- /dev/null +++ b/docs/Models/GetTenantDailyUsagesResponse_1.md @@ -0,0 +1,17 @@ +# GetTenantDailyUsagesResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tenantDailyUsages** | [**List**](APITenantDailyUsage.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTenantPackageResponse_1.md b/docs/Models/GetTenantPackageResponse_1.md new file mode 100644 index 0000000..49f0540 --- /dev/null +++ b/docs/Models/GetTenantPackageResponse_1.md @@ -0,0 +1,17 @@ +# GetTenantPackageResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tenantPackage** | [**TenantPackage**](TenantPackage.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTenantPackagesResponse_1.md b/docs/Models/GetTenantPackagesResponse_1.md new file mode 100644 index 0000000..7ea2809 --- /dev/null +++ b/docs/Models/GetTenantPackagesResponse_1.md @@ -0,0 +1,17 @@ +# GetTenantPackagesResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tenantPackages** | [**List**](TenantPackage.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTenantResponse_1.md b/docs/Models/GetTenantResponse_1.md new file mode 100644 index 0000000..802eb10 --- /dev/null +++ b/docs/Models/GetTenantResponse_1.md @@ -0,0 +1,17 @@ +# GetTenantResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tenant** | [**APITenant**](APITenant.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTenantUserResponse_1.md b/docs/Models/GetTenantUserResponse_1.md new file mode 100644 index 0000000..93365c1 --- /dev/null +++ b/docs/Models/GetTenantUserResponse_1.md @@ -0,0 +1,17 @@ +# GetTenantUserResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tenantUser** | [**User**](User.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTenantUsersResponse_1.md b/docs/Models/GetTenantUsersResponse_1.md new file mode 100644 index 0000000..163c4ab --- /dev/null +++ b/docs/Models/GetTenantUsersResponse_1.md @@ -0,0 +1,17 @@ +# GetTenantUsersResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tenantUsers** | [**List**](User.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTenantsResponse_1.md b/docs/Models/GetTenantsResponse_1.md new file mode 100644 index 0000000..dc29c90 --- /dev/null +++ b/docs/Models/GetTenantsResponse_1.md @@ -0,0 +1,17 @@ +# GetTenantsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tenants** | [**List**](APITenant.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTicketResponse_1.md b/docs/Models/GetTicketResponse_1.md new file mode 100644 index 0000000..2ebb945 --- /dev/null +++ b/docs/Models/GetTicketResponse_1.md @@ -0,0 +1,18 @@ +# GetTicketResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **ticket** | [**APITicketDetail**](APITicketDetail.md) | | [optional] [default to null] | +| **availableStates** | **List** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTicketsResponse_1.md b/docs/Models/GetTicketsResponse_1.md new file mode 100644 index 0000000..370dfaf --- /dev/null +++ b/docs/Models/GetTicketsResponse_1.md @@ -0,0 +1,17 @@ +# GetTicketsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **tickets** | [**List**](APITicket.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTranslationsResponse_1.md b/docs/Models/GetTranslationsResponse_1.md new file mode 100644 index 0000000..298ccf2 --- /dev/null +++ b/docs/Models/GetTranslationsResponse_1.md @@ -0,0 +1,17 @@ +# GetTranslationsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **translations** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetTrustFactorResponse.md b/docs/Models/GetTrustFactorResponse.md new file mode 100644 index 0000000..a719cec --- /dev/null +++ b/docs/Models/GetTrustFactorResponse.md @@ -0,0 +1,18 @@ +# GetTrustFactorResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **manualTrustFactor** | **Double** | | [optional] [default to null] | +| **autoTrustFactor** | **Double** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserBadgeProgressByIdResponse.md b/docs/Models/GetUserBadgeProgressByIdResponse.md new file mode 100644 index 0000000..d921640 --- /dev/null +++ b/docs/Models/GetUserBadgeProgressByIdResponse.md @@ -0,0 +1,17 @@ +# GetUserBadgeProgressByIdResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **userBadgeProgress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserBadgeProgressByUserIdResponse.md b/docs/Models/GetUserBadgeProgressByUserIdResponse.md new file mode 100644 index 0000000..71b7569 --- /dev/null +++ b/docs/Models/GetUserBadgeProgressByUserIdResponse.md @@ -0,0 +1,17 @@ +# GetUserBadgeProgressByUserIdResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **userBadgeProgress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserBadgeProgressListResponse.md b/docs/Models/GetUserBadgeProgressListResponse.md new file mode 100644 index 0000000..7c52f15 --- /dev/null +++ b/docs/Models/GetUserBadgeProgressListResponse.md @@ -0,0 +1,17 @@ +# GetUserBadgeProgressListResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **userBadgeProgresses** | [**List**](UserBadgeProgress.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserBadgeResponse.md b/docs/Models/GetUserBadgeResponse.md new file mode 100644 index 0000000..3bb6016 --- /dev/null +++ b/docs/Models/GetUserBadgeResponse.md @@ -0,0 +1,17 @@ +# GetUserBadgeResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **userBadge** | [**UserBadge**](UserBadge.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserBadgesResponse.md b/docs/Models/GetUserBadgesResponse.md new file mode 100644 index 0000000..9c38f0e --- /dev/null +++ b/docs/Models/GetUserBadgesResponse.md @@ -0,0 +1,17 @@ +# GetUserBadgesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **userBadges** | [**List**](UserBadge.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserBanPreferenceResponse.md b/docs/Models/GetUserBanPreferenceResponse.md new file mode 100644 index 0000000..981d6a8 --- /dev/null +++ b/docs/Models/GetUserBanPreferenceResponse.md @@ -0,0 +1,17 @@ +# GetUserBanPreferenceResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserInternalProfileResponse_1.md b/docs/Models/GetUserInternalProfileResponse_1.md new file mode 100644 index 0000000..736ba8d --- /dev/null +++ b/docs/Models/GetUserInternalProfileResponse_1.md @@ -0,0 +1,17 @@ +# GetUserInternalProfileResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **profile** | [**GetUserInternalProfileResponse_profile**](GetUserInternalProfileResponse_profile.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserNotificationCountResponse_1.md b/docs/Models/GetUserNotificationCountResponse_1.md new file mode 100644 index 0000000..bf70f6f --- /dev/null +++ b/docs/Models/GetUserNotificationCountResponse_1.md @@ -0,0 +1,17 @@ +# GetUserNotificationCountResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **count** | **Long** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserNotificationsResponse.md b/docs/Models/GetUserNotificationsResponse.md new file mode 100644 index 0000000..230f3ad --- /dev/null +++ b/docs/Models/GetUserNotificationsResponse.md @@ -0,0 +1,20 @@ +# GetUserNotificationsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **translations** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **isSubscribed** | **Boolean** | | [optional] [default to null] | +| **hasMore** | **Boolean** | | [optional] [default to null] | +| **notifications** | [**List**](RenderableUserNotification.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserPresenceStatusesResponse_1.md b/docs/Models/GetUserPresenceStatusesResponse_1.md new file mode 100644 index 0000000..cfe5120 --- /dev/null +++ b/docs/Models/GetUserPresenceStatusesResponse_1.md @@ -0,0 +1,17 @@ +# GetUserPresenceStatusesResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **userIdsOnline** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserReactsPublicResponse.md b/docs/Models/GetUserReactsPublicResponse.md new file mode 100644 index 0000000..5f8ebaa --- /dev/null +++ b/docs/Models/GetUserReactsPublicResponse.md @@ -0,0 +1,17 @@ +# GetUserReactsPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reacts** | [**Map**](map.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUserResponse_1.md b/docs/Models/GetUserResponse_1.md new file mode 100644 index 0000000..da84983 --- /dev/null +++ b/docs/Models/GetUserResponse_1.md @@ -0,0 +1,17 @@ +# GetUserResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **user** | [**User**](User.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetUsersInfoResponse.md b/docs/Models/GetUsersInfoResponse.md new file mode 100644 index 0000000..70e7594 --- /dev/null +++ b/docs/Models/GetUsersInfoResponse.md @@ -0,0 +1,17 @@ +# GetUsersInfoResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **users** | [**List**](PageUserEntry.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetV1PageLikesResponse.md b/docs/Models/GetV1PageLikesResponse.md new file mode 100644 index 0000000..360d7df --- /dev/null +++ b/docs/Models/GetV1PageLikesResponse.md @@ -0,0 +1,20 @@ +# GetV1PageLikesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **urlIdWS** | **String** | | [optional] [default to null] | +| **didLike** | **Boolean** | | [optional] [default to null] | +| **commentCount** | **Integer** | | [optional] [default to null] | +| **likeCount** | **Integer** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetV2PageReactUsersResponse_1.md b/docs/Models/GetV2PageReactUsersResponse_1.md new file mode 100644 index 0000000..cca0e86 --- /dev/null +++ b/docs/Models/GetV2PageReactUsersResponse_1.md @@ -0,0 +1,17 @@ +# GetV2PageReactUsersResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **userNames** | **List** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetV2PageReactsResponse.md b/docs/Models/GetV2PageReactsResponse.md new file mode 100644 index 0000000..32f603e --- /dev/null +++ b/docs/Models/GetV2PageReactsResponse.md @@ -0,0 +1,18 @@ +# GetV2PageReactsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **reactedIds** | **List** | | [optional] [default to null] | +| **counts** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetVotesForUserResponse_1.md b/docs/Models/GetVotesForUserResponse_1.md new file mode 100644 index 0000000..081cd68 --- /dev/null +++ b/docs/Models/GetVotesForUserResponse_1.md @@ -0,0 +1,19 @@ +# GetVotesForUserResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **appliedAuthorizedVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | +| **appliedAnonymousVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | +| **pendingVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/GetVotesResponse_1.md b/docs/Models/GetVotesResponse_1.md new file mode 100644 index 0000000..28a9bfd --- /dev/null +++ b/docs/Models/GetVotesResponse_1.md @@ -0,0 +1,19 @@ +# GetVotesResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **appliedAuthorizedVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | +| **appliedAnonymousVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | +| **pendingVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/LockCommentResponse.md b/docs/Models/LockCommentResponse.md new file mode 100644 index 0000000..1a53f3a --- /dev/null +++ b/docs/Models/LockCommentResponse.md @@ -0,0 +1,16 @@ +# LockCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PatchHashTagResponse.md b/docs/Models/PatchHashTagResponse.md new file mode 100644 index 0000000..47d1947 --- /dev/null +++ b/docs/Models/PatchHashTagResponse.md @@ -0,0 +1,17 @@ +# PatchHashTagResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **hashTag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PinCommentResponse.md b/docs/Models/PinCommentResponse.md new file mode 100644 index 0000000..146969b --- /dev/null +++ b/docs/Models/PinCommentResponse.md @@ -0,0 +1,17 @@ +# PinCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **commentPositions** | [**Map**](Record_string__before_string_or_null__after_string_or_null___value.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostAdjustCommentVotesResponse.md b/docs/Models/PostAdjustCommentVotesResponse.md new file mode 100644 index 0000000..5c1c94e --- /dev/null +++ b/docs/Models/PostAdjustCommentVotesResponse.md @@ -0,0 +1,17 @@ +# PostAdjustCommentVotesResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **newCommentVotes** | **Integer** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostApiExportResponse.md b/docs/Models/PostApiExportResponse.md new file mode 100644 index 0000000..bdf0e91 --- /dev/null +++ b/docs/Models/PostApiExportResponse.md @@ -0,0 +1,17 @@ +# PostApiExportResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **batchJobId** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostBanUserFromCommentResponse.md b/docs/Models/PostBanUserFromCommentResponse.md new file mode 100644 index 0000000..b01822f --- /dev/null +++ b/docs/Models/PostBanUserFromCommentResponse.md @@ -0,0 +1,17 @@ +# PostBanUserFromCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostBanUserUndoResponse.md b/docs/Models/PostBanUserUndoResponse.md new file mode 100644 index 0000000..79c32d5 --- /dev/null +++ b/docs/Models/PostBanUserUndoResponse.md @@ -0,0 +1,16 @@ +# PostBanUserUndoResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostBulkPreBanSummaryResponse.md b/docs/Models/PostBulkPreBanSummaryResponse.md new file mode 100644 index 0000000..0c00f08 --- /dev/null +++ b/docs/Models/PostBulkPreBanSummaryResponse.md @@ -0,0 +1,21 @@ +# PostBulkPreBanSummaryResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **totalRelatedCommentCount** | **Integer** | | [optional] [default to null] | +| **emailDomains** | **List** | | [optional] [default to null] | +| **emails** | **List** | | [optional] [default to null] | +| **userIds** | **List** | | [optional] [default to null] | +| **ipHashes** | **List** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostCommentsByIdsResponse.md b/docs/Models/PostCommentsByIdsResponse.md new file mode 100644 index 0000000..fb83524 --- /dev/null +++ b/docs/Models/PostCommentsByIdsResponse.md @@ -0,0 +1,17 @@ +# PostCommentsByIdsResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **comments** | [**List**](ModerationAPIComment.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostFlagCommentResponse.md b/docs/Models/PostFlagCommentResponse.md new file mode 100644 index 0000000..ff5b350 --- /dev/null +++ b/docs/Models/PostFlagCommentResponse.md @@ -0,0 +1,16 @@ +# PostFlagCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostRemoveCommentResponse.md b/docs/Models/PostRemoveCommentResponse.md index 057e54b..379a12b 100644 --- a/docs/Models/PostRemoveCommentResponse.md +++ b/docs/Models/PostRemoveCommentResponse.md @@ -3,8 +3,15 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **action** | **String** | | [default to null] | -| **status** | **String** | | [default to null] | +| **action** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/PostRestoreDeletedCommentResponse.md b/docs/Models/PostRestoreDeletedCommentResponse.md new file mode 100644 index 0000000..d73a7d9 --- /dev/null +++ b/docs/Models/PostRestoreDeletedCommentResponse.md @@ -0,0 +1,16 @@ +# PostRestoreDeletedCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostSetCommentApprovalStatusResponse.md b/docs/Models/PostSetCommentApprovalStatusResponse.md new file mode 100644 index 0000000..5481ee0 --- /dev/null +++ b/docs/Models/PostSetCommentApprovalStatusResponse.md @@ -0,0 +1,17 @@ +# PostSetCommentApprovalStatusResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **didResetFlaggedCount** | **Boolean** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostSetCommentReviewStatusResponse.md b/docs/Models/PostSetCommentReviewStatusResponse.md new file mode 100644 index 0000000..38d0a3d --- /dev/null +++ b/docs/Models/PostSetCommentReviewStatusResponse.md @@ -0,0 +1,16 @@ +# PostSetCommentReviewStatusResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostSetCommentSpamStatusResponse.md b/docs/Models/PostSetCommentSpamStatusResponse.md new file mode 100644 index 0000000..1bba478 --- /dev/null +++ b/docs/Models/PostSetCommentSpamStatusResponse.md @@ -0,0 +1,16 @@ +# PostSetCommentSpamStatusResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostSetCommentTextResponse.md b/docs/Models/PostSetCommentTextResponse.md new file mode 100644 index 0000000..fece5a2 --- /dev/null +++ b/docs/Models/PostSetCommentTextResponse.md @@ -0,0 +1,17 @@ +# PostSetCommentTextResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **newCommentTextHTML** | **String** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostUnFlagCommentResponse.md b/docs/Models/PostUnFlagCommentResponse.md new file mode 100644 index 0000000..ad3ca80 --- /dev/null +++ b/docs/Models/PostUnFlagCommentResponse.md @@ -0,0 +1,16 @@ +# PostUnFlagCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PostVoteResponse.md b/docs/Models/PostVoteResponse.md new file mode 100644 index 0000000..58d945e --- /dev/null +++ b/docs/Models/PostVoteResponse.md @@ -0,0 +1,20 @@ +# PostVoteResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **voteId** | **String** | | [optional] [default to null] | +| **isVerified** | **Boolean** | | [optional] [default to null] | +| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] [default to null] | +| **editKey** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PutAwardBadgeResponse.md b/docs/Models/PutAwardBadgeResponse.md new file mode 100644 index 0000000..8e8f77d --- /dev/null +++ b/docs/Models/PutAwardBadgeResponse.md @@ -0,0 +1,18 @@ +# PutAwardBadgeResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **notes** | **List** | | [optional] [default to null] | +| **badges** | [**List**](CommentUserBadgeInfo.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PutCloseThreadResponse.md b/docs/Models/PutCloseThreadResponse.md new file mode 100644 index 0000000..970c311 --- /dev/null +++ b/docs/Models/PutCloseThreadResponse.md @@ -0,0 +1,16 @@ +# PutCloseThreadResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PutRemoveBadgeResponse.md b/docs/Models/PutRemoveBadgeResponse.md new file mode 100644 index 0000000..2b87a74 --- /dev/null +++ b/docs/Models/PutRemoveBadgeResponse.md @@ -0,0 +1,17 @@ +# PutRemoveBadgeResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **badges** | [**List**](CommentUserBadgeInfo.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/PutReopenThreadResponse.md b/docs/Models/PutReopenThreadResponse.md new file mode 100644 index 0000000..2279b4c --- /dev/null +++ b/docs/Models/PutReopenThreadResponse.md @@ -0,0 +1,16 @@ +# PutReopenThreadResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ReactFeedPostPublicResponse.md b/docs/Models/ReactFeedPostPublicResponse.md new file mode 100644 index 0000000..1f4ecb7 --- /dev/null +++ b/docs/Models/ReactFeedPostPublicResponse.md @@ -0,0 +1,18 @@ +# ReactFeedPostPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reactType** | **String** | | [optional] [default to null] | +| **isUndo** | **Boolean** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/RenderEmailTemplateResponse_1.md b/docs/Models/RenderEmailTemplateResponse_1.md new file mode 100644 index 0000000..10f4875 --- /dev/null +++ b/docs/Models/RenderEmailTemplateResponse_1.md @@ -0,0 +1,17 @@ +# RenderEmailTemplateResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **html** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ReplaceTenantPackageResponse.md b/docs/Models/ReplaceTenantPackageResponse.md new file mode 100644 index 0000000..ba244df --- /dev/null +++ b/docs/Models/ReplaceTenantPackageResponse.md @@ -0,0 +1,16 @@ +# ReplaceTenantPackageResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ReplaceTenantUserResponse.md b/docs/Models/ReplaceTenantUserResponse.md new file mode 100644 index 0000000..7558de7 --- /dev/null +++ b/docs/Models/ReplaceTenantUserResponse.md @@ -0,0 +1,16 @@ +# ReplaceTenantUserResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ResetUserNotificationCountResponse.md b/docs/Models/ResetUserNotificationCountResponse.md new file mode 100644 index 0000000..78145d1 --- /dev/null +++ b/docs/Models/ResetUserNotificationCountResponse.md @@ -0,0 +1,16 @@ +# ResetUserNotificationCountResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/ResetUserNotificationsResponse_1.md b/docs/Models/ResetUserNotificationsResponse_1.md new file mode 100644 index 0000000..705c306 --- /dev/null +++ b/docs/Models/ResetUserNotificationsResponse_1.md @@ -0,0 +1,16 @@ +# ResetUserNotificationsResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SaveCommentResponse.md b/docs/Models/SaveCommentResponse.md new file mode 100644 index 0000000..91b75c5 --- /dev/null +++ b/docs/Models/SaveCommentResponse.md @@ -0,0 +1,19 @@ +# SaveCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **comment** | [**APIComment**](APIComment.md) | | [optional] [default to null] | +| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] [default to null] | +| **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SearchUsersResponse_1.md b/docs/Models/SearchUsersResponse_1.md new file mode 100644 index 0000000..536c764 --- /dev/null +++ b/docs/Models/SearchUsersResponse_1.md @@ -0,0 +1,18 @@ +# SearchUsersResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **sections** | [**List**](UserSearchSectionResult.md) | | [optional] [default to null] | +| **users** | [**List**](UserSearchResult.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SendInviteResponse.md b/docs/Models/SendInviteResponse.md new file mode 100644 index 0000000..8535b4a --- /dev/null +++ b/docs/Models/SendInviteResponse.md @@ -0,0 +1,16 @@ +# SendInviteResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SendLoginLinkResponse.md b/docs/Models/SendLoginLinkResponse.md new file mode 100644 index 0000000..49126dc --- /dev/null +++ b/docs/Models/SendLoginLinkResponse.md @@ -0,0 +1,16 @@ +# SendLoginLinkResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SetCommentTextResponse_1.md b/docs/Models/SetCommentTextResponse_1.md new file mode 100644 index 0000000..bf34783 --- /dev/null +++ b/docs/Models/SetCommentTextResponse_1.md @@ -0,0 +1,17 @@ +# SetCommentTextResponse_1 +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/SetTrustFactorResponse.md b/docs/Models/SetTrustFactorResponse.md new file mode 100644 index 0000000..08127f5 --- /dev/null +++ b/docs/Models/SetTrustFactorResponse.md @@ -0,0 +1,17 @@ +# SetTrustFactorResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **previousManualTrustFactor** | **Double** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UnBlockCommentPublicResponse.md b/docs/Models/UnBlockCommentPublicResponse.md new file mode 100644 index 0000000..731e1ab --- /dev/null +++ b/docs/Models/UnBlockCommentPublicResponse.md @@ -0,0 +1,17 @@ +# UnBlockCommentPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UnBlockUserFromCommentResponse.md b/docs/Models/UnBlockUserFromCommentResponse.md new file mode 100644 index 0000000..a6b8f10 --- /dev/null +++ b/docs/Models/UnBlockUserFromCommentResponse.md @@ -0,0 +1,17 @@ +# UnBlockUserFromCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UnFlagCommentResponse.md b/docs/Models/UnFlagCommentResponse.md new file mode 100644 index 0000000..da9825c --- /dev/null +++ b/docs/Models/UnFlagCommentResponse.md @@ -0,0 +1,18 @@ +# UnFlagCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **statusCode** | **Integer** | | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **wasUnapproved** | **Boolean** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UnLockCommentResponse.md b/docs/Models/UnLockCommentResponse.md new file mode 100644 index 0000000..e79927c --- /dev/null +++ b/docs/Models/UnLockCommentResponse.md @@ -0,0 +1,16 @@ +# UnLockCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UnPinCommentResponse.md b/docs/Models/UnPinCommentResponse.md new file mode 100644 index 0000000..1cf32b8 --- /dev/null +++ b/docs/Models/UnPinCommentResponse.md @@ -0,0 +1,17 @@ +# UnPinCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **commentPositions** | [**Map**](Record_string__before_string_or_null__after_string_or_null___value.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateCommentResponse.md b/docs/Models/UpdateCommentResponse.md new file mode 100644 index 0000000..37172d9 --- /dev/null +++ b/docs/Models/UpdateCommentResponse.md @@ -0,0 +1,16 @@ +# UpdateCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateEmailTemplateResponse.md b/docs/Models/UpdateEmailTemplateResponse.md new file mode 100644 index 0000000..2f591df --- /dev/null +++ b/docs/Models/UpdateEmailTemplateResponse.md @@ -0,0 +1,16 @@ +# UpdateEmailTemplateResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateFeedPostPublicResponse.md b/docs/Models/UpdateFeedPostPublicResponse.md new file mode 100644 index 0000000..5b3184b --- /dev/null +++ b/docs/Models/UpdateFeedPostPublicResponse.md @@ -0,0 +1,17 @@ +# UpdateFeedPostPublicResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **feedPost** | [**FeedPost**](FeedPost.md) | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateFeedPostResponse.md b/docs/Models/UpdateFeedPostResponse.md new file mode 100644 index 0000000..a78db73 --- /dev/null +++ b/docs/Models/UpdateFeedPostResponse.md @@ -0,0 +1,16 @@ +# UpdateFeedPostResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateModeratorResponse.md b/docs/Models/UpdateModeratorResponse.md new file mode 100644 index 0000000..64e742d --- /dev/null +++ b/docs/Models/UpdateModeratorResponse.md @@ -0,0 +1,16 @@ +# UpdateModeratorResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateNotificationResponse.md b/docs/Models/UpdateNotificationResponse.md new file mode 100644 index 0000000..bcc2b3e --- /dev/null +++ b/docs/Models/UpdateNotificationResponse.md @@ -0,0 +1,16 @@ +# UpdateNotificationResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateQuestionConfigResponse.md b/docs/Models/UpdateQuestionConfigResponse.md new file mode 100644 index 0000000..650d5f6 --- /dev/null +++ b/docs/Models/UpdateQuestionConfigResponse.md @@ -0,0 +1,16 @@ +# UpdateQuestionConfigResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateQuestionResultResponse.md b/docs/Models/UpdateQuestionResultResponse.md new file mode 100644 index 0000000..623f64c --- /dev/null +++ b/docs/Models/UpdateQuestionResultResponse.md @@ -0,0 +1,16 @@ +# UpdateQuestionResultResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateTenantPackageResponse.md b/docs/Models/UpdateTenantPackageResponse.md new file mode 100644 index 0000000..3f3b380 --- /dev/null +++ b/docs/Models/UpdateTenantPackageResponse.md @@ -0,0 +1,16 @@ +# UpdateTenantPackageResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateTenantResponse.md b/docs/Models/UpdateTenantResponse.md new file mode 100644 index 0000000..5663363 --- /dev/null +++ b/docs/Models/UpdateTenantResponse.md @@ -0,0 +1,16 @@ +# UpdateTenantResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateTenantUserResponse.md b/docs/Models/UpdateTenantUserResponse.md new file mode 100644 index 0000000..92d8dbc --- /dev/null +++ b/docs/Models/UpdateTenantUserResponse.md @@ -0,0 +1,16 @@ +# UpdateTenantUserResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateUserBadgeResponse.md b/docs/Models/UpdateUserBadgeResponse.md new file mode 100644 index 0000000..4b41be3 --- /dev/null +++ b/docs/Models/UpdateUserBadgeResponse.md @@ -0,0 +1,16 @@ +# UpdateUserBadgeResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md index 43874ef..0a2df28 100644 --- a/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md +++ b/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -7,6 +7,13 @@ | **matchedCount** | **Long** | | [optional] [default to null] | | **modifiedCount** | **Long** | | [optional] [default to null] | | **note** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md b/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md index 3e93cbd..01d4ed4 100644 --- a/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md +++ b/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -7,6 +7,13 @@ | **matchedCount** | **Long** | | [optional] [default to null] | | **modifiedCount** | **Long** | | [optional] [default to null] | | **note** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/UpdateUserNotificationStatusResponse.md b/docs/Models/UpdateUserNotificationStatusResponse.md index 8f1a2ce..b0a9e98 100644 --- a/docs/Models/UpdateUserNotificationStatusResponse.md +++ b/docs/Models/UpdateUserNotificationStatusResponse.md @@ -7,6 +7,13 @@ | **matchedCount** | **Long** | | [optional] [default to null] | | **modifiedCount** | **Long** | | [optional] [default to null] | | **note** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/VoteCommentResponse.md b/docs/Models/VoteCommentResponse.md new file mode 100644 index 0000000..1933d59 --- /dev/null +++ b/docs/Models/VoteCommentResponse.md @@ -0,0 +1,20 @@ +# VoteCommentResponse +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | +| **voteId** | **String** | | [optional] [default to null] | +| **isVerified** | **Boolean** | | [optional] [default to null] | +| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] [default to null] | +| **editKey** | **String** | | [optional] [default to null] | +| **reason** | **String** | | [optional] [default to null] | +| **code** | **String** | | [optional] [default to null] | +| **secondaryCode** | **String** | | [optional] [default to null] | +| **bannedUntil** | **Long** | | [optional] [default to null] | +| **maxCharacterLength** | **Integer** | | [optional] [default to null] | +| **translatedError** | **String** | | [optional] [default to null] | +| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/README.md b/docs/README.md index c923b37..30eadcf 100644 --- a/docs/README.md +++ b/docs/README.md @@ -256,11 +256,14 @@ All URIs are relative to *https://fastcomments.com* - [AddDomainConfigParams](./Models/AddDomainConfigParams.md) - [AddDomainConfigResponse](./Models/AddDomainConfigResponse.md) - [AddDomainConfigResponse_anyOf](./Models/AddDomainConfigResponse_anyOf.md) + - [AddHashTagResponse](./Models/AddHashTagResponse.md) + - [AddHashTagsBulkResponse](./Models/AddHashTagsBulkResponse.md) - [AddPageAPIResponse](./Models/AddPageAPIResponse.md) - [AddSSOUserAPIResponse](./Models/AddSSOUserAPIResponse.md) - [AdjustCommentVotesParams](./Models/AdjustCommentVotesParams.md) - [AdjustVotesResponse](./Models/AdjustVotesResponse.md) - [AggregateQuestionResultsResponse](./Models/AggregateQuestionResultsResponse.md) + - [AggregateQuestionResultsResponse_1](./Models/AggregateQuestionResultsResponse_1.md) - [AggregateResponse](./Models/AggregateResponse.md) - [AggregateTimeBucket](./Models/AggregateTimeBucket.md) - [AggregationAPIError](./Models/AggregationAPIError.md) @@ -280,12 +283,15 @@ All URIs are relative to *https://fastcomments.com* - [BannedUserMatch_matchedOnValue](./Models/BannedUserMatch_matchedOnValue.md) - [BillingInfo](./Models/BillingInfo.md) - [BlockFromCommentParams](./Models/BlockFromCommentParams.md) + - [BlockFromCommentPublicResponse](./Models/BlockFromCommentPublicResponse.md) - [BlockSuccess](./Models/BlockSuccess.md) + - [BlockUserFromCommentResponse](./Models/BlockUserFromCommentResponse.md) - [BuildModerationFilterParams](./Models/BuildModerationFilterParams.md) - [BuildModerationFilterResponse](./Models/BuildModerationFilterResponse.md) - [BulkAggregateQuestionItem](./Models/BulkAggregateQuestionItem.md) - [BulkAggregateQuestionResultsRequest](./Models/BulkAggregateQuestionResultsRequest.md) - [BulkAggregateQuestionResultsResponse](./Models/BulkAggregateQuestionResultsResponse.md) + - [BulkAggregateQuestionResultsResponse_1](./Models/BulkAggregateQuestionResultsResponse_1.md) - [BulkCreateHashTagsBody](./Models/BulkCreateHashTagsBody.md) - [BulkCreateHashTagsBody_tags_inner](./Models/BulkCreateHashTagsBody_tags_inner.md) - [BulkCreateHashTagsResponse](./Models/BulkCreateHashTagsResponse.md) @@ -295,7 +301,10 @@ All URIs are relative to *https://fastcomments.com* - [ChangeCommentPinStatusResponse](./Models/ChangeCommentPinStatusResponse.md) - [ChangeTicketStateBody](./Models/ChangeTicketStateBody.md) - [ChangeTicketStateResponse](./Models/ChangeTicketStateResponse.md) + - [ChangeTicketStateResponse_1](./Models/ChangeTicketStateResponse_1.md) - [CheckBlockedCommentsResponse](./Models/CheckBlockedCommentsResponse.md) + - [CheckedCommentsForBlockedResponse](./Models/CheckedCommentsForBlockedResponse.md) + - [CombineCommentsWithQuestionResultsResponse](./Models/CombineCommentsWithQuestionResultsResponse.md) - [CombineQuestionResultsWithCommentsResponse](./Models/CombineQuestionResultsWithCommentsResponse.md) - [CommentData](./Models/CommentData.md) - [CommentHTMLRenderingMode](./Models/CommentHTMLRenderingMode.md) @@ -315,40 +324,75 @@ All URIs are relative to *https://fastcomments.com* - [CreateAPISSOUserData](./Models/CreateAPISSOUserData.md) - [CreateAPIUserSubscriptionData](./Models/CreateAPIUserSubscriptionData.md) - [CreateCommentParams](./Models/CreateCommentParams.md) + - [CreateCommentPublicResponse](./Models/CreateCommentPublicResponse.md) - [CreateEmailTemplateBody](./Models/CreateEmailTemplateBody.md) - [CreateEmailTemplateResponse](./Models/CreateEmailTemplateResponse.md) + - [CreateEmailTemplateResponse_1](./Models/CreateEmailTemplateResponse_1.md) - [CreateFeedPostParams](./Models/CreateFeedPostParams.md) + - [CreateFeedPostPublicResponse](./Models/CreateFeedPostPublicResponse.md) - [CreateFeedPostResponse](./Models/CreateFeedPostResponse.md) + - [CreateFeedPostResponse_1](./Models/CreateFeedPostResponse_1.md) - [CreateFeedPostsResponse](./Models/CreateFeedPostsResponse.md) - [CreateHashTagBody](./Models/CreateHashTagBody.md) - [CreateHashTagResponse](./Models/CreateHashTagResponse.md) - [CreateModeratorBody](./Models/CreateModeratorBody.md) - [CreateModeratorResponse](./Models/CreateModeratorResponse.md) + - [CreateModeratorResponse_1](./Models/CreateModeratorResponse_1.md) - [CreateQuestionConfigBody](./Models/CreateQuestionConfigBody.md) - [CreateQuestionConfigResponse](./Models/CreateQuestionConfigResponse.md) + - [CreateQuestionConfigResponse_1](./Models/CreateQuestionConfigResponse_1.md) - [CreateQuestionResultBody](./Models/CreateQuestionResultBody.md) - [CreateQuestionResultResponse](./Models/CreateQuestionResultResponse.md) + - [CreateQuestionResultResponse_1](./Models/CreateQuestionResultResponse_1.md) - [CreateSubscriptionAPIResponse](./Models/CreateSubscriptionAPIResponse.md) - [CreateTenantBody](./Models/CreateTenantBody.md) - [CreateTenantPackageBody](./Models/CreateTenantPackageBody.md) - [CreateTenantPackageResponse](./Models/CreateTenantPackageResponse.md) + - [CreateTenantPackageResponse_1](./Models/CreateTenantPackageResponse_1.md) - [CreateTenantResponse](./Models/CreateTenantResponse.md) + - [CreateTenantResponse_1](./Models/CreateTenantResponse_1.md) - [CreateTenantUserBody](./Models/CreateTenantUserBody.md) - [CreateTenantUserResponse](./Models/CreateTenantUserResponse.md) + - [CreateTenantUserResponse_1](./Models/CreateTenantUserResponse_1.md) - [CreateTicketBody](./Models/CreateTicketBody.md) - [CreateTicketResponse](./Models/CreateTicketResponse.md) + - [CreateTicketResponse_1](./Models/CreateTicketResponse_1.md) - [CreateUserBadgeParams](./Models/CreateUserBadgeParams.md) + - [CreateUserBadgeResponse](./Models/CreateUserBadgeResponse.md) - [CreateV1PageReact](./Models/CreateV1PageReact.md) + - [CreateV1PageReactResponse](./Models/CreateV1PageReactResponse.md) + - [CreateV2PageReactResponse](./Models/CreateV2PageReactResponse.md) + - [CreateVoteResponse](./Models/CreateVoteResponse.md) - [CustomConfigParameters](./Models/CustomConfigParameters.md) - [CustomEmailTemplate](./Models/CustomEmailTemplate.md) - [DeleteCommentAction](./Models/DeleteCommentAction.md) + - [DeleteCommentPublicResponse](./Models/DeleteCommentPublicResponse.md) + - [DeleteCommentResponse](./Models/DeleteCommentResponse.md) - [DeleteCommentResult](./Models/DeleteCommentResult.md) + - [DeleteCommentVoteResponse](./Models/DeleteCommentVoteResponse.md) - [DeleteDomainConfigResponse](./Models/DeleteDomainConfigResponse.md) + - [DeleteEmailTemplateRenderErrorResponse](./Models/DeleteEmailTemplateRenderErrorResponse.md) + - [DeleteEmailTemplateResponse](./Models/DeleteEmailTemplateResponse.md) - [DeleteFeedPostPublicResponse](./Models/DeleteFeedPostPublicResponse.md) + - [DeleteFeedPostPublicResponse_anyOf](./Models/DeleteFeedPostPublicResponse_anyOf.md) - [DeleteHashTagRequestBody](./Models/DeleteHashTagRequestBody.md) + - [DeleteHashTagResponse](./Models/DeleteHashTagResponse.md) + - [DeleteModerationVoteResponse](./Models/DeleteModerationVoteResponse.md) + - [DeleteModeratorResponse](./Models/DeleteModeratorResponse.md) + - [DeleteNotificationCountResponse](./Models/DeleteNotificationCountResponse.md) - [DeletePageAPIResponse](./Models/DeletePageAPIResponse.md) + - [DeletePendingWebhookEventResponse](./Models/DeletePendingWebhookEventResponse.md) + - [DeleteQuestionConfigResponse](./Models/DeleteQuestionConfigResponse.md) + - [DeleteQuestionResultResponse](./Models/DeleteQuestionResultResponse.md) - [DeleteSSOUserAPIResponse](./Models/DeleteSSOUserAPIResponse.md) - [DeleteSubscriptionAPIResponse](./Models/DeleteSubscriptionAPIResponse.md) + - [DeleteTenantPackageResponse](./Models/DeleteTenantPackageResponse.md) + - [DeleteTenantResponse](./Models/DeleteTenantResponse.md) + - [DeleteTenantUserResponse](./Models/DeleteTenantUserResponse.md) + - [DeleteUserBadgeResponse](./Models/DeleteUserBadgeResponse.md) + - [DeleteV1PageReactResponse](./Models/DeleteV1PageReactResponse.md) + - [DeleteV2PageReactResponse](./Models/DeleteV2PageReactResponse.md) + - [DeleteVoteResponse](./Models/DeleteVoteResponse.md) - [DeletedCommentResultComment](./Models/DeletedCommentResultComment.md) - [DigestEmailFrequency](./Models/DigestEmailFrequency.md) - [EmailTemplateDefinition](./Models/EmailTemplateDefinition.md) @@ -364,72 +408,154 @@ All URIs are relative to *https://fastcomments.com* - [FeedPostsStatsResponse](./Models/FeedPostsStatsResponse.md) - [FindCommentsByRangeItem](./Models/FindCommentsByRangeItem.md) - [FindCommentsByRangeResponse](./Models/FindCommentsByRangeResponse.md) + - [FlagCommentPublicResponse](./Models/FlagCommentPublicResponse.md) - [FlagCommentResponse](./Models/FlagCommentResponse.md) + - [FlagCommentResponse_1](./Models/FlagCommentResponse_1.md) + - [GetApiCommentsResponse](./Models/GetApiCommentsResponse.md) + - [GetApiExportStatusResponse](./Models/GetApiExportStatusResponse.md) + - [GetApiIdsResponse](./Models/GetApiIdsResponse.md) - [GetAuditLogsResponse](./Models/GetAuditLogsResponse.md) + - [GetAuditLogsResponse_1](./Models/GetAuditLogsResponse_1.md) + - [GetBanUsersFromCommentResponse](./Models/GetBanUsersFromCommentResponse.md) - [GetBannedUsersCountResponse](./Models/GetBannedUsersCountResponse.md) - [GetBannedUsersFromCommentResponse](./Models/GetBannedUsersFromCommentResponse.md) - [GetCachedNotificationCountResponse](./Models/GetCachedNotificationCountResponse.md) + - [GetCachedNotificationCountResponse_1](./Models/GetCachedNotificationCountResponse_1.md) - [GetCommentBanStatusResponse](./Models/GetCommentBanStatusResponse.md) + - [GetCommentBanStatusResponse_1](./Models/GetCommentBanStatusResponse_1.md) + - [GetCommentChildrenResponse](./Models/GetCommentChildrenResponse.md) + - [GetCommentResponse](./Models/GetCommentResponse.md) - [GetCommentTextResponse](./Models/GetCommentTextResponse.md) + - [GetCommentTextResponse_1](./Models/GetCommentTextResponse_1.md) + - [GetCommentVoteUserNamesResponse](./Models/GetCommentVoteUserNamesResponse.md) - [GetCommentVoteUserNamesSuccessResponse](./Models/GetCommentVoteUserNamesSuccessResponse.md) - [GetCommentsForUserResponse](./Models/GetCommentsForUserResponse.md) + - [GetCommentsForUserResponse_1](./Models/GetCommentsForUserResponse_1.md) + - [GetCommentsPublicResponse](./Models/GetCommentsPublicResponse.md) + - [GetCommentsResponse](./Models/GetCommentsResponse.md) - [GetCommentsResponseWithPresence_PublicComment_](./Models/GetCommentsResponseWithPresence_PublicComment_.md) - [GetCommentsResponse_PublicComment_](./Models/GetCommentsResponse_PublicComment_.md) + - [GetCountResponse](./Models/GetCountResponse.md) + - [GetCountsResponse](./Models/GetCountsResponse.md) - [GetDomainConfigResponse](./Models/GetDomainConfigResponse.md) - [GetDomainConfigsResponse](./Models/GetDomainConfigsResponse.md) - [GetDomainConfigsResponse_anyOf](./Models/GetDomainConfigsResponse_anyOf.md) - [GetDomainConfigsResponse_anyOf_1](./Models/GetDomainConfigsResponse_anyOf_1.md) - [GetEmailTemplateDefinitionsResponse](./Models/GetEmailTemplateDefinitionsResponse.md) + - [GetEmailTemplateDefinitionsResponse_1](./Models/GetEmailTemplateDefinitionsResponse_1.md) - [GetEmailTemplateRenderErrorsResponse](./Models/GetEmailTemplateRenderErrorsResponse.md) + - [GetEmailTemplateRenderErrorsResponse_1](./Models/GetEmailTemplateRenderErrorsResponse_1.md) - [GetEmailTemplateResponse](./Models/GetEmailTemplateResponse.md) + - [GetEmailTemplateResponse_1](./Models/GetEmailTemplateResponse_1.md) - [GetEmailTemplatesResponse](./Models/GetEmailTemplatesResponse.md) + - [GetEmailTemplatesResponse_1](./Models/GetEmailTemplatesResponse_1.md) - [GetEventLogResponse](./Models/GetEventLogResponse.md) + - [GetEventLogResponse_1](./Models/GetEventLogResponse_1.md) + - [GetFeedPostsPublicResponse](./Models/GetFeedPostsPublicResponse.md) - [GetFeedPostsResponse](./Models/GetFeedPostsResponse.md) + - [GetFeedPostsResponse_1](./Models/GetFeedPostsResponse_1.md) + - [GetFeedPostsStatsResponse](./Models/GetFeedPostsStatsResponse.md) + - [GetGifLargeResponse](./Models/GetGifLargeResponse.md) - [GetGifsSearchResponse](./Models/GetGifsSearchResponse.md) - [GetGifsTrendingResponse](./Models/GetGifsTrendingResponse.md) + - [GetGlobalEventLogResponse](./Models/GetGlobalEventLogResponse.md) - [GetHashTagsResponse](./Models/GetHashTagsResponse.md) + - [GetHashTagsResponse_1](./Models/GetHashTagsResponse_1.md) + - [GetLogsResponse](./Models/GetLogsResponse.md) + - [GetManualBadgesForUserResponse](./Models/GetManualBadgesForUserResponse.md) + - [GetManualBadgesResponse](./Models/GetManualBadgesResponse.md) + - [GetModerationCommentResponse](./Models/GetModerationCommentResponse.md) + - [GetModerationCommentTextResponse](./Models/GetModerationCommentTextResponse.md) - [GetModeratorResponse](./Models/GetModeratorResponse.md) + - [GetModeratorResponse_1](./Models/GetModeratorResponse_1.md) - [GetModeratorsResponse](./Models/GetModeratorsResponse.md) + - [GetModeratorsResponse_1](./Models/GetModeratorsResponse_1.md) - [GetMyNotificationsResponse](./Models/GetMyNotificationsResponse.md) - [GetNotificationCountResponse](./Models/GetNotificationCountResponse.md) + - [GetNotificationCountResponse_1](./Models/GetNotificationCountResponse_1.md) - [GetNotificationsResponse](./Models/GetNotificationsResponse.md) + - [GetNotificationsResponse_1](./Models/GetNotificationsResponse_1.md) + - [GetOfflineUsersResponse](./Models/GetOfflineUsersResponse.md) + - [GetOnlineUsersResponse](./Models/GetOnlineUsersResponse.md) - [GetPageByURLIdAPIResponse](./Models/GetPageByURLIdAPIResponse.md) - [GetPagesAPIResponse](./Models/GetPagesAPIResponse.md) + - [GetPagesPublicResponse](./Models/GetPagesPublicResponse.md) - [GetPendingWebhookEventCountResponse](./Models/GetPendingWebhookEventCountResponse.md) + - [GetPendingWebhookEventCountResponse_1](./Models/GetPendingWebhookEventCountResponse_1.md) - [GetPendingWebhookEventsResponse](./Models/GetPendingWebhookEventsResponse.md) + - [GetPendingWebhookEventsResponse_1](./Models/GetPendingWebhookEventsResponse_1.md) + - [GetPreBanSummaryResponse](./Models/GetPreBanSummaryResponse.md) - [GetPublicFeedPostsResponse](./Models/GetPublicFeedPostsResponse.md) - [GetPublicPagesResponse](./Models/GetPublicPagesResponse.md) - [GetQuestionConfigResponse](./Models/GetQuestionConfigResponse.md) + - [GetQuestionConfigResponse_1](./Models/GetQuestionConfigResponse_1.md) - [GetQuestionConfigsResponse](./Models/GetQuestionConfigsResponse.md) + - [GetQuestionConfigsResponse_1](./Models/GetQuestionConfigsResponse_1.md) - [GetQuestionResultResponse](./Models/GetQuestionResultResponse.md) + - [GetQuestionResultResponse_1](./Models/GetQuestionResultResponse_1.md) - [GetQuestionResultsResponse](./Models/GetQuestionResultsResponse.md) + - [GetQuestionResultsResponse_1](./Models/GetQuestionResultsResponse_1.md) - [GetSSOUserByEmailAPIResponse](./Models/GetSSOUserByEmailAPIResponse.md) - [GetSSOUserByIdAPIResponse](./Models/GetSSOUserByIdAPIResponse.md) - [GetSSOUsersResponse](./Models/GetSSOUsersResponse.md) + - [GetSearchCommentsSummaryResponse](./Models/GetSearchCommentsSummaryResponse.md) + - [GetSearchPagesResponse](./Models/GetSearchPagesResponse.md) + - [GetSearchSitesResponse](./Models/GetSearchSitesResponse.md) + - [GetSearchSuggestResponse](./Models/GetSearchSuggestResponse.md) + - [GetSearchUsersResponse](./Models/GetSearchUsersResponse.md) - [GetSubscriptionsAPIResponse](./Models/GetSubscriptionsAPIResponse.md) - [GetTenantDailyUsagesResponse](./Models/GetTenantDailyUsagesResponse.md) + - [GetTenantDailyUsagesResponse_1](./Models/GetTenantDailyUsagesResponse_1.md) - [GetTenantManualBadgesResponse](./Models/GetTenantManualBadgesResponse.md) - [GetTenantPackageResponse](./Models/GetTenantPackageResponse.md) + - [GetTenantPackageResponse_1](./Models/GetTenantPackageResponse_1.md) - [GetTenantPackagesResponse](./Models/GetTenantPackagesResponse.md) + - [GetTenantPackagesResponse_1](./Models/GetTenantPackagesResponse_1.md) - [GetTenantResponse](./Models/GetTenantResponse.md) + - [GetTenantResponse_1](./Models/GetTenantResponse_1.md) - [GetTenantUserResponse](./Models/GetTenantUserResponse.md) + - [GetTenantUserResponse_1](./Models/GetTenantUserResponse_1.md) - [GetTenantUsersResponse](./Models/GetTenantUsersResponse.md) + - [GetTenantUsersResponse_1](./Models/GetTenantUsersResponse_1.md) - [GetTenantsResponse](./Models/GetTenantsResponse.md) + - [GetTenantsResponse_1](./Models/GetTenantsResponse_1.md) - [GetTicketResponse](./Models/GetTicketResponse.md) + - [GetTicketResponse_1](./Models/GetTicketResponse_1.md) - [GetTicketsResponse](./Models/GetTicketsResponse.md) + - [GetTicketsResponse_1](./Models/GetTicketsResponse_1.md) - [GetTranslationsResponse](./Models/GetTranslationsResponse.md) + - [GetTranslationsResponse_1](./Models/GetTranslationsResponse_1.md) + - [GetTrustFactorResponse](./Models/GetTrustFactorResponse.md) + - [GetUserBadgeProgressByIdResponse](./Models/GetUserBadgeProgressByIdResponse.md) + - [GetUserBadgeProgressByUserIdResponse](./Models/GetUserBadgeProgressByUserIdResponse.md) + - [GetUserBadgeProgressListResponse](./Models/GetUserBadgeProgressListResponse.md) + - [GetUserBadgeResponse](./Models/GetUserBadgeResponse.md) + - [GetUserBadgesResponse](./Models/GetUserBadgesResponse.md) + - [GetUserBanPreferenceResponse](./Models/GetUserBanPreferenceResponse.md) - [GetUserInternalProfileResponse](./Models/GetUserInternalProfileResponse.md) + - [GetUserInternalProfileResponse_1](./Models/GetUserInternalProfileResponse_1.md) - [GetUserInternalProfileResponse_profile](./Models/GetUserInternalProfileResponse_profile.md) - [GetUserManualBadgesResponse](./Models/GetUserManualBadgesResponse.md) - [GetUserNotificationCountResponse](./Models/GetUserNotificationCountResponse.md) + - [GetUserNotificationCountResponse_1](./Models/GetUserNotificationCountResponse_1.md) + - [GetUserNotificationsResponse](./Models/GetUserNotificationsResponse.md) - [GetUserPresenceStatusesResponse](./Models/GetUserPresenceStatusesResponse.md) + - [GetUserPresenceStatusesResponse_1](./Models/GetUserPresenceStatusesResponse_1.md) + - [GetUserReactsPublicResponse](./Models/GetUserReactsPublicResponse.md) - [GetUserResponse](./Models/GetUserResponse.md) + - [GetUserResponse_1](./Models/GetUserResponse_1.md) - [GetUserTrustFactorResponse](./Models/GetUserTrustFactorResponse.md) + - [GetUsersInfoResponse](./Models/GetUsersInfoResponse.md) - [GetV1PageLikes](./Models/GetV1PageLikes.md) + - [GetV1PageLikesResponse](./Models/GetV1PageLikesResponse.md) - [GetV2PageReactUsersResponse](./Models/GetV2PageReactUsersResponse.md) + - [GetV2PageReactUsersResponse_1](./Models/GetV2PageReactUsersResponse_1.md) - [GetV2PageReacts](./Models/GetV2PageReacts.md) + - [GetV2PageReactsResponse](./Models/GetV2PageReactsResponse.md) - [GetVotesForUserResponse](./Models/GetVotesForUserResponse.md) + - [GetVotesForUserResponse_1](./Models/GetVotesForUserResponse_1.md) - [GetVotesResponse](./Models/GetVotesResponse.md) + - [GetVotesResponse_1](./Models/GetVotesResponse_1.md) - [GifGetLargeResponse](./Models/GifGetLargeResponse.md) - [GifRating](./Models/GifRating.md) - [GifSearchInternalError](./Models/GifSearchInternalError.md) @@ -444,6 +570,7 @@ All URIs are relative to *https://fastcomments.com* - [LiveEvent](./Models/LiveEvent.md) - [LiveEventType](./Models/LiveEventType.md) - [LiveEvent_extraInfo](./Models/LiveEvent_extraInfo.md) + - [LockCommentResponse](./Models/LockCommentResponse.md) - [MediaAsset](./Models/MediaAsset.md) - [MentionAutoCompleteMode](./Models/MentionAutoCompleteMode.md) - [MetaItem](./Models/MetaItem.md) @@ -477,10 +604,26 @@ All URIs are relative to *https://fastcomments.com* - [PagesSortBy](./Models/PagesSortBy.md) - [PatchDomainConfigParams](./Models/PatchDomainConfigParams.md) - [PatchDomainConfigResponse](./Models/PatchDomainConfigResponse.md) + - [PatchHashTagResponse](./Models/PatchHashTagResponse.md) - [PatchPageAPIResponse](./Models/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](./Models/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](./Models/PendingCommentToSyncOutbound.md) + - [PinCommentResponse](./Models/PinCommentResponse.md) + - [PostAdjustCommentVotesResponse](./Models/PostAdjustCommentVotesResponse.md) + - [PostApiExportResponse](./Models/PostApiExportResponse.md) + - [PostBanUserFromCommentResponse](./Models/PostBanUserFromCommentResponse.md) + - [PostBanUserUndoResponse](./Models/PostBanUserUndoResponse.md) + - [PostBulkPreBanSummaryResponse](./Models/PostBulkPreBanSummaryResponse.md) + - [PostCommentsByIdsResponse](./Models/PostCommentsByIdsResponse.md) + - [PostFlagCommentResponse](./Models/PostFlagCommentResponse.md) - [PostRemoveCommentResponse](./Models/PostRemoveCommentResponse.md) + - [PostRestoreDeletedCommentResponse](./Models/PostRestoreDeletedCommentResponse.md) + - [PostSetCommentApprovalStatusResponse](./Models/PostSetCommentApprovalStatusResponse.md) + - [PostSetCommentReviewStatusResponse](./Models/PostSetCommentReviewStatusResponse.md) + - [PostSetCommentSpamStatusResponse](./Models/PostSetCommentSpamStatusResponse.md) + - [PostSetCommentTextResponse](./Models/PostSetCommentTextResponse.md) + - [PostUnFlagCommentResponse](./Models/PostUnFlagCommentResponse.md) + - [PostVoteResponse](./Models/PostVoteResponse.md) - [PreBanSummary](./Models/PreBanSummary.md) - [PubSubComment](./Models/PubSubComment.md) - [PubSubCommentBase](./Models/PubSubCommentBase.md) @@ -494,7 +637,11 @@ All URIs are relative to *https://fastcomments.com* - [PublicFeedPostsResponse](./Models/PublicFeedPostsResponse.md) - [PublicPage](./Models/PublicPage.md) - [PublicVote](./Models/PublicVote.md) + - [PutAwardBadgeResponse](./Models/PutAwardBadgeResponse.md) + - [PutCloseThreadResponse](./Models/PutCloseThreadResponse.md) - [PutDomainConfigResponse](./Models/PutDomainConfigResponse.md) + - [PutRemoveBadgeResponse](./Models/PutRemoveBadgeResponse.md) + - [PutReopenThreadResponse](./Models/PutReopenThreadResponse.md) - [PutSSOUserAPIResponse](./Models/PutSSOUserAPIResponse.md) - [QueryPredicate](./Models/QueryPredicate.md) - [QueryPredicate_value](./Models/QueryPredicate_value.md) @@ -507,30 +654,42 @@ All URIs are relative to *https://fastcomments.com* - [QuestionSubQuestionVisibility](./Models/QuestionSubQuestionVisibility.md) - [QuestionWhenSave](./Models/QuestionWhenSave.md) - [ReactBodyParams](./Models/ReactBodyParams.md) + - [ReactFeedPostPublicResponse](./Models/ReactFeedPostPublicResponse.md) - [ReactFeedPostResponse](./Models/ReactFeedPostResponse.md) - [Record_string__before_string_or_null__after_string_or_null___value](./Models/Record_string__before_string_or_null__after_string_or_null___value.md) - [RemoveCommentActionResponse](./Models/RemoveCommentActionResponse.md) - [RemoveUserBadgeResponse](./Models/RemoveUserBadgeResponse.md) - [RenderEmailTemplateBody](./Models/RenderEmailTemplateBody.md) - [RenderEmailTemplateResponse](./Models/RenderEmailTemplateResponse.md) + - [RenderEmailTemplateResponse_1](./Models/RenderEmailTemplateResponse_1.md) - [RenderableUserNotification](./Models/RenderableUserNotification.md) - [RepeatCommentCheckIgnoredReason](./Models/RepeatCommentCheckIgnoredReason.md) - [RepeatCommentHandlingAction](./Models/RepeatCommentHandlingAction.md) - [ReplaceTenantPackageBody](./Models/ReplaceTenantPackageBody.md) + - [ReplaceTenantPackageResponse](./Models/ReplaceTenantPackageResponse.md) - [ReplaceTenantUserBody](./Models/ReplaceTenantUserBody.md) + - [ReplaceTenantUserResponse](./Models/ReplaceTenantUserResponse.md) + - [ResetUserNotificationCountResponse](./Models/ResetUserNotificationCountResponse.md) - [ResetUserNotificationsResponse](./Models/ResetUserNotificationsResponse.md) + - [ResetUserNotificationsResponse_1](./Models/ResetUserNotificationsResponse_1.md) - [SORT_DIR](./Models/SORT_DIR.md) - [SSOSecurityLevel](./Models/SSOSecurityLevel.md) + - [SaveCommentResponse](./Models/SaveCommentResponse.md) - [SaveCommentResponseOptimized](./Models/SaveCommentResponseOptimized.md) - [SaveCommentsBulkResponse](./Models/SaveCommentsBulkResponse.md) - [SaveCommentsResponseWithPresence](./Models/SaveCommentsResponseWithPresence.md) - [SearchUsersResponse](./Models/SearchUsersResponse.md) + - [SearchUsersResponse_1](./Models/SearchUsersResponse_1.md) - [SearchUsersResult](./Models/SearchUsersResult.md) - [SearchUsersSectionedResponse](./Models/SearchUsersSectionedResponse.md) + - [SendInviteResponse](./Models/SendInviteResponse.md) + - [SendLoginLinkResponse](./Models/SendLoginLinkResponse.md) - [SetCommentApprovedResponse](./Models/SetCommentApprovedResponse.md) - [SetCommentTextParams](./Models/SetCommentTextParams.md) - [SetCommentTextResponse](./Models/SetCommentTextResponse.md) + - [SetCommentTextResponse_1](./Models/SetCommentTextResponse_1.md) - [SetCommentTextResult](./Models/SetCommentTextResult.md) + - [SetTrustFactorResponse](./Models/SetTrustFactorResponse.md) - [SetUserTrustFactorResponse](./Models/SetUserTrustFactorResponse.md) - [SizePreset](./Models/SizePreset.md) - [SortDirections](./Models/SortDirections.md) @@ -539,26 +698,43 @@ All URIs are relative to *https://fastcomments.com* - [TenantBadge](./Models/TenantBadge.md) - [TenantHashTag](./Models/TenantHashTag.md) - [TenantPackage](./Models/TenantPackage.md) + - [UnBlockCommentPublicResponse](./Models/UnBlockCommentPublicResponse.md) - [UnBlockFromCommentParams](./Models/UnBlockFromCommentParams.md) + - [UnBlockUserFromCommentResponse](./Models/UnBlockUserFromCommentResponse.md) + - [UnFlagCommentResponse](./Models/UnFlagCommentResponse.md) + - [UnLockCommentResponse](./Models/UnLockCommentResponse.md) + - [UnPinCommentResponse](./Models/UnPinCommentResponse.md) - [UnblockSuccess](./Models/UnblockSuccess.md) - [UpdatableCommentParams](./Models/UpdatableCommentParams.md) - [UpdateAPIPageData](./Models/UpdateAPIPageData.md) - [UpdateAPISSOUserData](./Models/UpdateAPISSOUserData.md) - [UpdateAPIUserSubscriptionData](./Models/UpdateAPIUserSubscriptionData.md) + - [UpdateCommentResponse](./Models/UpdateCommentResponse.md) - [UpdateDomainConfigParams](./Models/UpdateDomainConfigParams.md) - [UpdateEmailTemplateBody](./Models/UpdateEmailTemplateBody.md) + - [UpdateEmailTemplateResponse](./Models/UpdateEmailTemplateResponse.md) - [UpdateFeedPostParams](./Models/UpdateFeedPostParams.md) + - [UpdateFeedPostPublicResponse](./Models/UpdateFeedPostPublicResponse.md) + - [UpdateFeedPostResponse](./Models/UpdateFeedPostResponse.md) - [UpdateHashTagBody](./Models/UpdateHashTagBody.md) - [UpdateHashTagResponse](./Models/UpdateHashTagResponse.md) - [UpdateModeratorBody](./Models/UpdateModeratorBody.md) + - [UpdateModeratorResponse](./Models/UpdateModeratorResponse.md) - [UpdateNotificationBody](./Models/UpdateNotificationBody.md) + - [UpdateNotificationResponse](./Models/UpdateNotificationResponse.md) - [UpdateQuestionConfigBody](./Models/UpdateQuestionConfigBody.md) + - [UpdateQuestionConfigResponse](./Models/UpdateQuestionConfigResponse.md) - [UpdateQuestionResultBody](./Models/UpdateQuestionResultBody.md) + - [UpdateQuestionResultResponse](./Models/UpdateQuestionResultResponse.md) - [UpdateSubscriptionAPIResponse](./Models/UpdateSubscriptionAPIResponse.md) - [UpdateTenantBody](./Models/UpdateTenantBody.md) - [UpdateTenantPackageBody](./Models/UpdateTenantPackageBody.md) + - [UpdateTenantPackageResponse](./Models/UpdateTenantPackageResponse.md) + - [UpdateTenantResponse](./Models/UpdateTenantResponse.md) - [UpdateTenantUserBody](./Models/UpdateTenantUserBody.md) + - [UpdateTenantUserResponse](./Models/UpdateTenantUserResponse.md) - [UpdateUserBadgeParams](./Models/UpdateUserBadgeParams.md) + - [UpdateUserBadgeResponse](./Models/UpdateUserBadgeResponse.md) - [UpdateUserNotificationCommentSubscriptionStatusResponse](./Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md) - [UpdateUserNotificationPageSubscriptionStatusResponse](./Models/UpdateUserNotificationPageSubscriptionStatusResponse.md) - [UpdateUserNotificationStatusResponse](./Models/UpdateUserNotificationStatusResponse.md) @@ -577,6 +753,7 @@ All URIs are relative to *https://fastcomments.com* - [UserSessionInfo](./Models/UserSessionInfo.md) - [UsersListLocation](./Models/UsersListLocation.md) - [VoteBodyParams](./Models/VoteBodyParams.md) + - [VoteCommentResponse](./Models/VoteCommentResponse.md) - [VoteDeleteResponse](./Models/VoteDeleteResponse.md) - [VoteResponse](./Models/VoteResponse.md) - [VoteResponseUser](./Models/VoteResponseUser.md) diff --git a/openapi.json b/openapi.json index ca0225c..b02430d 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 bd5002a9b4a7e05c24441c5ad3f87361f265d17f Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 22 Jun 2026 14:46:28 -0700 Subject: [PATCH 2/3] Regenerate against corrected spec (tsoa 6.6.8 splits X | APIError response unions) --- .../FastCommentsClient/api/DefaultApi.h | 334 +- .../FastCommentsClient/api/ModerationApi.h | 161 +- .../FastCommentsClient/api/PublicApi.h | 166 +- .../model/AddHashTagResponse.h | 147 - .../model/AddHashTagsBulkResponse.h | 148 - .../AggregateQuestionResultsResponse_1.h | 147 - .../model/BlockFromCommentPublicResponse.h | 149 - .../model/BlockUserFromCommentResponse.h | 149 - .../BulkAggregateQuestionResultsResponse_1.h | 151 - .../model/ChangeTicketStateResponse_1.h | 147 - .../model/CheckedCommentsForBlockedResponse.h | 149 - ...mbineCommentsWithQuestionResultsResponse.h | 147 - .../model/CreateCommentPublicResponse.h | 177 - .../model/CreateEmailTemplateResponse_1.h | 147 - .../model/CreateFeedPostPublicResponse.h | 147 - .../model/CreateFeedPostResponse_1.h | 147 - .../model/CreateModeratorResponse_1.h | 147 - .../model/CreateQuestionConfigResponse_1.h | 147 - .../model/CreateQuestionResultResponse_1.h | 147 - .../model/CreateTenantPackageResponse_1.h | 147 - .../model/CreateTenantResponse_1.h | 147 - .../model/CreateTenantUserResponse_1.h | 147 - .../model/CreateTicketResponse_1.h | 147 - .../model/CreateUserBadgeResponse.h | 156 - .../model/CreateV1PageReactResponse.h | 137 - .../model/CreateV2PageReactResponse.h | 137 - .../model/CreateVoteResponse.h | 171 - .../model/DeleteCommentPublicResponse.h | 155 - .../model/DeleteCommentResponse.h | 146 - .../model/DeleteCommentVoteResponse.h | 145 - .../DeleteEmailTemplateRenderErrorResponse.h | 137 - .../model/DeleteEmailTemplateResponse.h | 137 - .../model/DeleteFeedPostPublicResponse.h | 61 - .../DeleteFeedPostPublicResponse_anyOf.h | 76 - .../model/DeleteHashTagResponse.h | 137 - .../model/DeleteModerationVoteResponse.h | 145 - .../model/DeleteModeratorResponse.h | 137 - .../model/DeleteNotificationCountResponse.h | 137 - .../model/DeletePendingWebhookEventResponse.h | 137 - .../model/DeleteQuestionConfigResponse.h | 137 - .../model/DeleteQuestionResultResponse.h | 137 - .../model/DeleteTenantPackageResponse.h | 137 - .../model/DeleteTenantResponse.h | 137 - .../model/DeleteTenantUserResponse.h | 137 - .../model/DeleteUserBadgeResponse.h | 137 - .../model/DeleteV1PageReactResponse.h | 137 - .../model/DeleteV2PageReactResponse.h | 137 - .../model/DeleteVoteResponse.h | 145 - .../model/FlagCommentPublicResponse.h | 137 - .../model/FlagCommentResponse_1.h | 153 - .../model/GetApiCommentsResponse.h | 167 - .../model/GetApiExportStatusResponse.h | 161 - .../model/GetApiIdsResponse.h | 154 - .../model/GetAuditLogsResponse_1.h | 148 - .../model/GetBanUsersFromCommentResponse.h | 148 - .../GetCachedNotificationCountResponse_1.h | 147 - .../model/GetCommentBanStatusResponse_1.h | 151 - .../model/GetCommentChildrenResponse.h | 148 - .../model/GetCommentResponse.h | 147 - .../model/GetCommentTextResponse_1.h | 153 - .../model/GetCommentVoteUserNamesResponse.h | 154 - .../model/GetCommentsForUserResponse_1.h | 146 - .../model/GetCommentsPublicResponse.h | 329 -- .../model/GetCommentsResponse.h | 148 - .../model/GetCountResponse.h | 145 - .../model/GetCountsResponse.h | 145 - .../GetEmailTemplateDefinitionsResponse_1.h | 148 - .../GetEmailTemplateRenderErrorsResponse_1.h | 148 - .../model/GetEmailTemplateResponse_1.h | 147 - .../model/GetEmailTemplatesResponse_1.h | 148 - .../model/GetEventLogResponse_1.h | 148 - .../model/GetFeedPostsPublicResponse.h | 190 - .../model/GetFeedPostsResponse_1.h | 148 - .../model/GetFeedPostsStatsResponse.h | 148 - .../model/GetGifLargeResponse.h | 145 - .../model/GetGifsSearchResponse.h | 51 - .../model/GetGlobalEventLogResponse.h | 148 - .../model/GetHashTagsResponse_1.h | 148 - .../model/GetLogsResponse.h | 148 - .../model/GetManualBadgesForUserResponse.h | 148 - .../model/GetManualBadgesResponse.h | 148 - .../model/GetModerationCommentResponse.h | 147 - .../model/GetModerationCommentTextResponse.h | 144 - .../model/GetModeratorResponse_1.h | 147 - .../model/GetModeratorsResponse_1.h | 148 - .../model/GetNotificationCountResponse_1.h | 145 - .../model/GetNotificationsResponse_1.h | 148 - .../model/GetOfflineUsersResponse.h | 162 - .../model/GetOnlineUsersResponse.h | 178 - .../model/GetPagesPublicResponse.h | 155 - .../GetPendingWebhookEventCountResponse_1.h | 145 - .../model/GetPendingWebhookEventsResponse_1.h | 148 - .../model/GetPreBanSummaryResponse.h | 154 - .../model/GetQuestionConfigResponse_1.h | 147 - .../model/GetQuestionConfigsResponse_1.h | 148 - .../model/GetQuestionResultResponse_1.h | 147 - .../model/GetQuestionResultsResponse_1.h | 148 - .../model/GetSearchCommentsSummaryResponse.h | 145 - .../model/GetSearchPagesResponse.h | 148 - .../model/GetSearchSitesResponse.h | 148 - .../model/GetSearchSuggestResponse.h | 158 - .../model/GetSearchUsersResponse.h | 148 - .../model/GetTenantDailyUsagesResponse_1.h | 148 - .../model/GetTenantPackageResponse_1.h | 147 - .../model/GetTenantPackagesResponse_1.h | 148 - .../model/GetTenantResponse_1.h | 147 - .../model/GetTenantUserResponse_1.h | 147 - .../model/GetTenantUsersResponse_1.h | 148 - .../model/GetTenantsResponse_1.h | 148 - .../model/GetTicketResponse_1.h | 156 - .../model/GetTicketsResponse_1.h | 148 - .../model/GetTranslationsResponse_1.h | 149 - .../model/GetTrustFactorResponse.h | 153 - .../model/GetUserBadgeProgressByIdResponse.h | 147 - .../GetUserBadgeProgressByUserIdResponse.h | 147 - .../model/GetUserBadgeProgressListResponse.h | 148 - .../model/GetUserBadgeResponse.h | 147 - .../model/GetUserBadgesResponse.h | 148 - .../model/GetUserBanPreferenceResponse.h | 146 - .../model/GetUserInternalProfileResponse_1.h | 147 - .../GetUserNotificationCountResponse_1.h | 145 - .../model/GetUserNotificationsResponse.h | 176 - .../model/GetUserPresenceStatusesResponse_1.h | 149 - .../model/GetUserReactsPublicResponse.h | 146 - .../model/GetUserResponse_1.h | 147 - .../model/GetUsersInfoResponse.h | 148 - .../model/GetV1PageLikesResponse.h | 169 - .../model/GetV2PageReactUsersResponse_1.h | 146 - .../model/GetV2PageReactsResponse.h | 158 - .../model/GetVotesForUserResponse_1.h | 164 - .../model/GetVotesResponse_1.h | 164 - .../model/LockCommentResponse.h | 137 - .../model/PatchHashTagResponse.h | 147 - .../model/PinCommentResponse.h | 151 - .../model/PostAdjustCommentVotesResponse.h | 145 - .../model/PostApiExportResponse.h | 145 - .../model/PostBanUserFromCommentResponse.h | 147 - .../model/PostBanUserUndoResponse.h | 137 - .../model/PostBulkPreBanSummaryResponse.h | 178 - .../model/PostCommentsByIdsResponse.h | 148 - .../model/PostFlagCommentResponse.h | 137 - .../model/PostRemoveCommentResponse.h | 67 +- .../model/PostRestoreDeletedCommentResponse.h | 137 - .../PostSetCommentApprovalStatusResponse.h | 145 - .../PostSetCommentReviewStatusResponse.h | 137 - .../model/PostSetCommentSpamStatusResponse.h | 137 - .../model/PostSetCommentTextResponse.h | 145 - .../model/PostUnFlagCommentResponse.h | 137 - .../model/PostVoteResponse.h | 171 - .../model/PutAwardBadgeResponse.h | 156 - .../model/PutCloseThreadResponse.h | 137 - .../model/PutRemoveBadgeResponse.h | 148 - .../model/PutReopenThreadResponse.h | 137 - .../model/ReactFeedPostPublicResponse.h | 153 - .../model/RenderEmailTemplateResponse_1.h | 145 - .../model/ReplaceTenantPackageResponse.h | 137 - .../model/ReplaceTenantUserResponse.h | 137 - .../ResetUserNotificationCountResponse.h | 137 - .../model/ResetUserNotificationsResponse_1.h | 137 - .../model/SaveCommentResponse.h | 169 - .../model/SearchUsersResponse_1.h | 158 - .../model/SendInviteResponse.h | 137 - .../model/SendLoginLinkResponse.h | 137 - .../model/SetCommentTextResponse_1.h | 147 - .../model/SetTrustFactorResponse.h | 145 - .../model/UnBlockCommentPublicResponse.h | 149 - .../model/UnBlockUserFromCommentResponse.h | 149 - .../model/UnFlagCommentResponse.h | 153 - .../model/UnLockCommentResponse.h | 137 - .../model/UnPinCommentResponse.h | 151 - .../model/UpdateCommentResponse.h | 137 - .../model/UpdateEmailTemplateResponse.h | 137 - .../model/UpdateFeedPostPublicResponse.h | 147 - .../model/UpdateFeedPostResponse.h | 137 - .../model/UpdateModeratorResponse.h | 137 - .../model/UpdateNotificationResponse.h | 137 - .../model/UpdateQuestionConfigResponse.h | 137 - .../model/UpdateQuestionResultResponse.h | 137 - .../model/UpdateTenantPackageResponse.h | 137 - .../model/UpdateTenantResponse.h | 137 - .../model/UpdateTenantUserResponse.h | 137 - .../model/UpdateUserBadgeResponse.h | 137 - ...icationCommentSubscriptionStatusResponse.h | 59 - ...tificationPageSubscriptionStatusResponse.h | 59 - .../UpdateUserNotificationStatusResponse.h | 59 - .../model/VoteCommentResponse.h | 171 - client/src/api/DefaultApi.cpp | 360 +- client/src/api/ModerationApi.cpp | 168 +- client/src/api/PublicApi.cpp | 176 +- client/src/model/AddHashTagResponse.cpp | 511 --- client/src/model/AddHashTagsBulkResponse.cpp | 511 --- .../AggregateQuestionResultsResponse_1.cpp | 511 --- .../model/BlockFromCommentPublicResponse.cpp | 510 --- .../model/BlockUserFromCommentResponse.cpp | 510 --- ...BulkAggregateQuestionResultsResponse_1.cpp | 511 --- .../src/model/ChangeTicketStateResponse_1.cpp | 511 --- .../CheckedCommentsForBlockedResponse.cpp | 510 --- ...ineCommentsWithQuestionResultsResponse.cpp | 511 --- .../src/model/CreateCommentPublicResponse.cpp | 654 --- .../model/CreateEmailTemplateResponse_1.cpp | 511 --- .../model/CreateFeedPostPublicResponse.cpp | 511 --- client/src/model/CreateFeedPostResponse_1.cpp | 511 --- .../src/model/CreateModeratorResponse_1.cpp | 511 --- .../model/CreateQuestionConfigResponse_1.cpp | 511 --- .../model/CreateQuestionResultResponse_1.cpp | 511 --- .../model/CreateTenantPackageResponse_1.cpp | 511 --- client/src/model/CreateTenantResponse_1.cpp | 511 --- .../src/model/CreateTenantUserResponse_1.cpp | 511 --- client/src/model/CreateTicketResponse_1.cpp | 511 --- client/src/model/CreateUserBadgeResponse.cpp | 559 --- .../src/model/CreateV1PageReactResponse.cpp | 463 --- .../src/model/CreateV2PageReactResponse.cpp | 463 --- client/src/model/CreateVoteResponse.cpp | 657 --- .../src/model/DeleteCommentPublicResponse.cpp | 559 --- client/src/model/DeleteCommentResponse.cpp | 511 --- .../src/model/DeleteCommentVoteResponse.cpp | 511 --- ...DeleteEmailTemplateRenderErrorResponse.cpp | 463 --- .../src/model/DeleteEmailTemplateResponse.cpp | 463 --- .../model/DeleteFeedPostPublicResponse.cpp | 340 -- .../DeleteFeedPostPublicResponse_anyOf.cpp | 123 - client/src/model/DeleteHashTagResponse.cpp | 463 --- .../model/DeleteModerationVoteResponse.cpp | 511 --- client/src/model/DeleteModeratorResponse.cpp | 463 --- .../model/DeleteNotificationCountResponse.cpp | 463 --- .../DeletePendingWebhookEventResponse.cpp | 463 --- .../model/DeleteQuestionConfigResponse.cpp | 463 --- .../model/DeleteQuestionResultResponse.cpp | 463 --- .../src/model/DeleteTenantPackageResponse.cpp | 463 --- client/src/model/DeleteTenantResponse.cpp | 463 --- client/src/model/DeleteTenantUserResponse.cpp | 463 --- client/src/model/DeleteUserBadgeResponse.cpp | 463 --- .../src/model/DeleteV1PageReactResponse.cpp | 463 --- .../src/model/DeleteV2PageReactResponse.cpp | 463 --- client/src/model/DeleteVoteResponse.cpp | 511 --- .../src/model/FlagCommentPublicResponse.cpp | 463 --- client/src/model/FlagCommentResponse_1.cpp | 559 --- client/src/model/GetApiCommentsResponse.cpp | 607 --- .../src/model/GetApiExportStatusResponse.cpp | 609 --- client/src/model/GetApiIdsResponse.cpp | 559 --- client/src/model/GetAuditLogsResponse_1.cpp | 511 --- .../model/GetBanUsersFromCommentResponse.cpp | 511 --- .../GetCachedNotificationCountResponse_1.cpp | 511 --- .../model/GetCommentBanStatusResponse_1.cpp | 554 --- .../src/model/GetCommentChildrenResponse.cpp | 511 --- client/src/model/GetCommentResponse.cpp | 511 --- client/src/model/GetCommentTextResponse_1.cpp | 561 --- .../model/GetCommentVoteUserNamesResponse.cpp | 559 --- .../model/GetCommentsForUserResponse_1.cpp | 511 --- .../src/model/GetCommentsPublicResponse.cpp | 1567 ------- client/src/model/GetCommentsResponse.cpp | 511 --- client/src/model/GetCountResponse.cpp | 511 --- client/src/model/GetCountsResponse.cpp | 511 --- .../GetEmailTemplateDefinitionsResponse_1.cpp | 511 --- ...GetEmailTemplateRenderErrorsResponse_1.cpp | 511 --- .../src/model/GetEmailTemplateResponse_1.cpp | 511 --- .../src/model/GetEmailTemplatesResponse_1.cpp | 511 --- client/src/model/GetEventLogResponse_1.cpp | 511 --- .../src/model/GetFeedPostsPublicResponse.cpp | 752 ---- client/src/model/GetFeedPostsResponse_1.cpp | 511 --- .../src/model/GetFeedPostsStatsResponse.cpp | 511 --- client/src/model/GetGifLargeResponse.cpp | 512 --- client/src/model/GetGifsSearchResponse.cpp | 291 -- .../src/model/GetGlobalEventLogResponse.cpp | 511 --- client/src/model/GetHashTagsResponse_1.cpp | 511 --- client/src/model/GetLogsResponse.cpp | 511 --- .../model/GetManualBadgesForUserResponse.cpp | 511 --- client/src/model/GetManualBadgesResponse.cpp | 511 --- .../model/GetModerationCommentResponse.cpp | 511 --- .../GetModerationCommentTextResponse.cpp | 509 --- client/src/model/GetModeratorResponse_1.cpp | 511 --- client/src/model/GetModeratorsResponse_1.cpp | 511 --- .../model/GetNotificationCountResponse_1.cpp | 511 --- .../src/model/GetNotificationsResponse_1.cpp | 511 --- client/src/model/GetOfflineUsersResponse.cpp | 603 --- client/src/model/GetOnlineUsersResponse.cpp | 699 ---- client/src/model/GetPagesPublicResponse.cpp | 557 --- .../GetPendingWebhookEventCountResponse_1.cpp | 511 --- .../GetPendingWebhookEventsResponse_1.cpp | 511 --- client/src/model/GetPreBanSummaryResponse.cpp | 559 --- .../src/model/GetQuestionConfigResponse_1.cpp | 511 --- .../model/GetQuestionConfigsResponse_1.cpp | 511 --- .../src/model/GetQuestionResultResponse_1.cpp | 511 --- .../model/GetQuestionResultsResponse_1.cpp | 511 --- .../GetSearchCommentsSummaryResponse.cpp | 511 --- client/src/model/GetSearchPagesResponse.cpp | 511 --- client/src/model/GetSearchSitesResponse.cpp | 511 --- client/src/model/GetSearchSuggestResponse.cpp | 559 --- client/src/model/GetSearchUsersResponse.cpp | 511 --- .../model/GetTenantDailyUsagesResponse_1.cpp | 511 --- .../src/model/GetTenantPackageResponse_1.cpp | 511 --- .../src/model/GetTenantPackagesResponse_1.cpp | 511 --- client/src/model/GetTenantResponse_1.cpp | 511 --- client/src/model/GetTenantUserResponse_1.cpp | 511 --- client/src/model/GetTenantUsersResponse_1.cpp | 511 --- client/src/model/GetTenantsResponse_1.cpp | 511 --- client/src/model/GetTicketResponse_1.cpp | 558 --- client/src/model/GetTicketsResponse_1.cpp | 511 --- .../src/model/GetTranslationsResponse_1.cpp | 511 --- client/src/model/GetTrustFactorResponse.cpp | 559 --- .../GetUserBadgeProgressByIdResponse.cpp | 511 --- .../GetUserBadgeProgressByUserIdResponse.cpp | 511 --- .../GetUserBadgeProgressListResponse.cpp | 511 --- client/src/model/GetUserBadgeResponse.cpp | 511 --- client/src/model/GetUserBadgesResponse.cpp | 511 --- .../model/GetUserBanPreferenceResponse.cpp | 509 --- .../GetUserInternalProfileResponse_1.cpp | 511 --- .../GetUserNotificationCountResponse_1.cpp | 511 --- .../model/GetUserNotificationsResponse.cpp | 655 --- .../GetUserPresenceStatusesResponse_1.cpp | 510 --- .../src/model/GetUserReactsPublicResponse.cpp | 511 --- client/src/model/GetUserResponse_1.cpp | 511 --- client/src/model/GetUsersInfoResponse.cpp | 511 --- client/src/model/GetV1PageLikesResponse.cpp | 656 --- .../model/GetV2PageReactUsersResponse_1.cpp | 511 --- client/src/model/GetV2PageReactsResponse.cpp | 558 --- .../src/model/GetVotesForUserResponse_1.cpp | 607 --- client/src/model/GetVotesResponse_1.cpp | 607 --- client/src/model/LockCommentResponse.cpp | 463 --- client/src/model/PatchHashTagResponse.cpp | 511 --- client/src/model/PinCommentResponse.cpp | 511 --- .../model/PostAdjustCommentVotesResponse.cpp | 511 --- client/src/model/PostApiExportResponse.cpp | 512 --- .../model/PostBanUserFromCommentResponse.cpp | 511 --- client/src/model/PostBanUserUndoResponse.cpp | 463 --- .../model/PostBulkPreBanSummaryResponse.cpp | 703 ---- .../src/model/PostCommentsByIdsResponse.cpp | 511 --- client/src/model/PostFlagCommentResponse.cpp | 463 --- .../src/model/PostRemoveCommentResponse.cpp | 349 +- .../PostRestoreDeletedCommentResponse.cpp | 463 --- .../PostSetCommentApprovalStatusResponse.cpp | 511 --- .../PostSetCommentReviewStatusResponse.cpp | 463 --- .../PostSetCommentSpamStatusResponse.cpp | 463 --- .../src/model/PostSetCommentTextResponse.cpp | 512 --- .../src/model/PostUnFlagCommentResponse.cpp | 463 --- client/src/model/PostVoteResponse.cpp | 657 --- client/src/model/PutAwardBadgeResponse.cpp | 559 --- client/src/model/PutCloseThreadResponse.cpp | 463 --- client/src/model/PutRemoveBadgeResponse.cpp | 511 --- client/src/model/PutReopenThreadResponse.cpp | 463 --- .../src/model/ReactFeedPostPublicResponse.cpp | 560 --- .../model/RenderEmailTemplateResponse_1.cpp | 512 --- .../model/ReplaceTenantPackageResponse.cpp | 463 --- .../src/model/ReplaceTenantUserResponse.cpp | 463 --- .../ResetUserNotificationCountResponse.cpp | 463 --- .../ResetUserNotificationsResponse_1.cpp | 463 --- client/src/model/SaveCommentResponse.cpp | 605 --- client/src/model/SearchUsersResponse_1.cpp | 559 --- client/src/model/SendInviteResponse.cpp | 463 --- client/src/model/SendLoginLinkResponse.cpp | 463 --- client/src/model/SetCommentTextResponse_1.cpp | 511 --- client/src/model/SetTrustFactorResponse.cpp | 511 --- .../model/UnBlockCommentPublicResponse.cpp | 510 --- .../model/UnBlockUserFromCommentResponse.cpp | 510 --- client/src/model/UnFlagCommentResponse.cpp | 559 --- client/src/model/UnLockCommentResponse.cpp | 463 --- client/src/model/UnPinCommentResponse.cpp | 511 --- client/src/model/UpdateCommentResponse.cpp | 463 --- .../src/model/UpdateEmailTemplateResponse.cpp | 463 --- .../model/UpdateFeedPostPublicResponse.cpp | 511 --- client/src/model/UpdateFeedPostResponse.cpp | 463 --- client/src/model/UpdateModeratorResponse.cpp | 463 --- .../src/model/UpdateNotificationResponse.cpp | 463 --- .../model/UpdateQuestionConfigResponse.cpp | 463 --- .../model/UpdateQuestionResultResponse.cpp | 463 --- .../src/model/UpdateTenantPackageResponse.cpp | 463 --- client/src/model/UpdateTenantResponse.cpp | 463 --- client/src/model/UpdateTenantUserResponse.cpp | 463 --- client/src/model/UpdateUserBadgeResponse.cpp | 463 --- ...ationCommentSubscriptionStatusResponse.cpp | 340 -- ...ficationPageSubscriptionStatusResponse.cpp | 340 -- .../UpdateUserNotificationStatusResponse.cpp | 340 -- client/src/model/VoteCommentResponse.cpp | 657 --- docs/Apis/DefaultApi.md | 360 +- docs/Apis/ModerationApi.md | 168 +- docs/Apis/PublicApi.md | 176 +- docs/Models/AddHashTagResponse.md | 17 - docs/Models/AddHashTagsBulkResponse.md | 17 - .../AggregateQuestionResultsResponse_1.md | 17 - docs/Models/BlockFromCommentPublicResponse.md | 17 - docs/Models/BlockUserFromCommentResponse.md | 17 - .../BulkAggregateQuestionResultsResponse_1.md | 17 - docs/Models/ChangeTicketStateResponse_1.md | 17 - .../CheckedCommentsForBlockedResponse.md | 17 - ...bineCommentsWithQuestionResultsResponse.md | 17 - docs/Models/CreateCommentPublicResponse.md | 20 - docs/Models/CreateEmailTemplateResponse_1.md | 17 - docs/Models/CreateFeedPostPublicResponse.md | 17 - docs/Models/CreateFeedPostResponse_1.md | 17 - docs/Models/CreateModeratorResponse_1.md | 17 - docs/Models/CreateQuestionConfigResponse_1.md | 17 - docs/Models/CreateQuestionResultResponse_1.md | 17 - docs/Models/CreateTenantPackageResponse_1.md | 17 - docs/Models/CreateTenantResponse_1.md | 17 - docs/Models/CreateTenantUserResponse_1.md | 17 - docs/Models/CreateTicketResponse_1.md | 17 - docs/Models/CreateUserBadgeResponse.md | 18 - docs/Models/CreateV1PageReactResponse.md | 16 - docs/Models/CreateV2PageReactResponse.md | 16 - docs/Models/CreateVoteResponse.md | 20 - docs/Models/DeleteCommentPublicResponse.md | 18 - docs/Models/DeleteCommentResponse.md | 17 - docs/Models/DeleteCommentVoteResponse.md | 17 - .../DeleteEmailTemplateRenderErrorResponse.md | 16 - docs/Models/DeleteEmailTemplateResponse.md | 16 - docs/Models/DeleteFeedPostPublicResponse.md | 7 - .../DeleteFeedPostPublicResponse_anyOf.md | 9 - docs/Models/DeleteHashTagResponse.md | 16 - docs/Models/DeleteModerationVoteResponse.md | 17 - docs/Models/DeleteModeratorResponse.md | 16 - .../Models/DeleteNotificationCountResponse.md | 16 - .../DeletePendingWebhookEventResponse.md | 16 - docs/Models/DeleteQuestionConfigResponse.md | 16 - docs/Models/DeleteQuestionResultResponse.md | 16 - docs/Models/DeleteTenantPackageResponse.md | 16 - docs/Models/DeleteTenantResponse.md | 16 - docs/Models/DeleteTenantUserResponse.md | 16 - docs/Models/DeleteUserBadgeResponse.md | 16 - docs/Models/DeleteV1PageReactResponse.md | 16 - docs/Models/DeleteV2PageReactResponse.md | 16 - docs/Models/DeleteVoteResponse.md | 17 - docs/Models/FlagCommentPublicResponse.md | 16 - docs/Models/FlagCommentResponse_1.md | 18 - docs/Models/GetApiCommentsResponse.md | 19 - docs/Models/GetApiExportStatusResponse.md | 19 - docs/Models/GetApiIdsResponse.md | 18 - docs/Models/GetAuditLogsResponse_1.md | 17 - docs/Models/GetBanUsersFromCommentResponse.md | 17 - .../GetCachedNotificationCountResponse_1.md | 17 - docs/Models/GetCommentBanStatusResponse_1.md | 18 - docs/Models/GetCommentChildrenResponse.md | 17 - docs/Models/GetCommentResponse.md | 17 - docs/Models/GetCommentTextResponse_1.md | 18 - .../Models/GetCommentVoteUserNamesResponse.md | 18 - docs/Models/GetCommentsForUserResponse_1.md | 17 - docs/Models/GetCommentsPublicResponse.md | 39 - docs/Models/GetCommentsResponse.md | 17 - docs/Models/GetCountResponse.md | 17 - docs/Models/GetCountsResponse.md | 17 - .../GetEmailTemplateDefinitionsResponse_1.md | 17 - .../GetEmailTemplateRenderErrorsResponse_1.md | 17 - docs/Models/GetEmailTemplateResponse_1.md | 17 - docs/Models/GetEmailTemplatesResponse_1.md | 17 - docs/Models/GetEventLogResponse_1.md | 17 - docs/Models/GetFeedPostsPublicResponse.md | 22 - docs/Models/GetFeedPostsResponse_1.md | 17 - docs/Models/GetFeedPostsStatsResponse.md | 17 - docs/Models/GetGifLargeResponse.md | 17 - docs/Models/GetGifsSearchResponse.md | 6 - docs/Models/GetGlobalEventLogResponse.md | 17 - docs/Models/GetHashTagsResponse_1.md | 17 - docs/Models/GetLogsResponse.md | 17 - docs/Models/GetManualBadgesForUserResponse.md | 17 - docs/Models/GetManualBadgesResponse.md | 17 - docs/Models/GetModerationCommentResponse.md | 17 - .../GetModerationCommentTextResponse.md | 17 - docs/Models/GetModeratorResponse_1.md | 17 - docs/Models/GetModeratorsResponse_1.md | 17 - docs/Models/GetNotificationCountResponse_1.md | 17 - docs/Models/GetNotificationsResponse_1.md | 17 - docs/Models/GetOfflineUsersResponse.md | 19 - docs/Models/GetOnlineUsersResponse.md | 21 - docs/Models/GetPagesPublicResponse.md | 18 - .../GetPendingWebhookEventCountResponse_1.md | 17 - .../GetPendingWebhookEventsResponse_1.md | 17 - docs/Models/GetPreBanSummaryResponse.md | 18 - docs/Models/GetQuestionConfigResponse_1.md | 17 - docs/Models/GetQuestionConfigsResponse_1.md | 17 - docs/Models/GetQuestionResultResponse_1.md | 17 - docs/Models/GetQuestionResultsResponse_1.md | 17 - .../GetSearchCommentsSummaryResponse.md | 17 - docs/Models/GetSearchPagesResponse.md | 17 - docs/Models/GetSearchSitesResponse.md | 17 - docs/Models/GetSearchSuggestResponse.md | 18 - docs/Models/GetSearchUsersResponse.md | 17 - docs/Models/GetTenantDailyUsagesResponse_1.md | 17 - docs/Models/GetTenantPackageResponse_1.md | 17 - docs/Models/GetTenantPackagesResponse_1.md | 17 - docs/Models/GetTenantResponse_1.md | 17 - docs/Models/GetTenantUserResponse_1.md | 17 - docs/Models/GetTenantUsersResponse_1.md | 17 - docs/Models/GetTenantsResponse_1.md | 17 - docs/Models/GetTicketResponse_1.md | 18 - docs/Models/GetTicketsResponse_1.md | 17 - docs/Models/GetTranslationsResponse_1.md | 17 - docs/Models/GetTrustFactorResponse.md | 18 - .../GetUserBadgeProgressByIdResponse.md | 17 - .../GetUserBadgeProgressByUserIdResponse.md | 17 - .../GetUserBadgeProgressListResponse.md | 17 - docs/Models/GetUserBadgeResponse.md | 17 - docs/Models/GetUserBadgesResponse.md | 17 - docs/Models/GetUserBanPreferenceResponse.md | 17 - .../GetUserInternalProfileResponse_1.md | 17 - .../GetUserNotificationCountResponse_1.md | 17 - docs/Models/GetUserNotificationsResponse.md | 20 - .../GetUserPresenceStatusesResponse_1.md | 17 - docs/Models/GetUserReactsPublicResponse.md | 17 - docs/Models/GetUserResponse_1.md | 17 - docs/Models/GetUsersInfoResponse.md | 17 - docs/Models/GetV1PageLikesResponse.md | 20 - docs/Models/GetV2PageReactUsersResponse_1.md | 17 - docs/Models/GetV2PageReactsResponse.md | 18 - docs/Models/GetVotesForUserResponse_1.md | 19 - docs/Models/GetVotesResponse_1.md | 19 - docs/Models/LockCommentResponse.md | 16 - docs/Models/PatchHashTagResponse.md | 17 - docs/Models/PinCommentResponse.md | 17 - docs/Models/PostAdjustCommentVotesResponse.md | 17 - docs/Models/PostApiExportResponse.md | 17 - docs/Models/PostBanUserFromCommentResponse.md | 17 - docs/Models/PostBanUserUndoResponse.md | 16 - docs/Models/PostBulkPreBanSummaryResponse.md | 21 - docs/Models/PostCommentsByIdsResponse.md | 17 - docs/Models/PostFlagCommentResponse.md | 16 - docs/Models/PostRemoveCommentResponse.md | 11 +- .../PostRestoreDeletedCommentResponse.md | 16 - .../PostSetCommentApprovalStatusResponse.md | 17 - .../PostSetCommentReviewStatusResponse.md | 16 - .../PostSetCommentSpamStatusResponse.md | 16 - docs/Models/PostSetCommentTextResponse.md | 17 - docs/Models/PostUnFlagCommentResponse.md | 16 - docs/Models/PostVoteResponse.md | 20 - docs/Models/PutAwardBadgeResponse.md | 18 - docs/Models/PutCloseThreadResponse.md | 16 - docs/Models/PutRemoveBadgeResponse.md | 17 - docs/Models/PutReopenThreadResponse.md | 16 - docs/Models/ReactFeedPostPublicResponse.md | 18 - docs/Models/RenderEmailTemplateResponse_1.md | 17 - docs/Models/ReplaceTenantPackageResponse.md | 16 - docs/Models/ReplaceTenantUserResponse.md | 16 - .../ResetUserNotificationCountResponse.md | 16 - .../ResetUserNotificationsResponse_1.md | 16 - docs/Models/SaveCommentResponse.md | 19 - docs/Models/SearchUsersResponse_1.md | 18 - docs/Models/SendInviteResponse.md | 16 - docs/Models/SendLoginLinkResponse.md | 16 - docs/Models/SetCommentTextResponse_1.md | 17 - docs/Models/SetTrustFactorResponse.md | 17 - docs/Models/UnBlockCommentPublicResponse.md | 17 - docs/Models/UnBlockUserFromCommentResponse.md | 17 - docs/Models/UnFlagCommentResponse.md | 18 - docs/Models/UnLockCommentResponse.md | 16 - docs/Models/UnPinCommentResponse.md | 17 - docs/Models/UpdateCommentResponse.md | 16 - docs/Models/UpdateEmailTemplateResponse.md | 16 - docs/Models/UpdateFeedPostPublicResponse.md | 17 - docs/Models/UpdateFeedPostResponse.md | 16 - docs/Models/UpdateModeratorResponse.md | 16 - docs/Models/UpdateNotificationResponse.md | 16 - docs/Models/UpdateQuestionConfigResponse.md | 16 - docs/Models/UpdateQuestionResultResponse.md | 16 - docs/Models/UpdateTenantPackageResponse.md | 16 - docs/Models/UpdateTenantResponse.md | 16 - docs/Models/UpdateTenantUserResponse.md | 16 - docs/Models/UpdateUserBadgeResponse.md | 16 - ...cationCommentSubscriptionStatusResponse.md | 7 - ...ificationPageSubscriptionStatusResponse.md | 7 - .../UpdateUserNotificationStatusResponse.md | 7 - docs/Models/VoteCommentResponse.md | 20 - docs/README.md | 177 - openapi.json | 3634 +++++++++-------- 560 files changed, 3035 insertions(+), 126359 deletions(-) delete mode 100644 client/include/FastCommentsClient/model/AddHashTagResponse.h delete mode 100644 client/include/FastCommentsClient/model/AddHashTagsBulkResponse.h delete mode 100644 client/include/FastCommentsClient/model/AggregateQuestionResultsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/BlockFromCommentPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/BlockUserFromCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/ChangeTicketStateResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/CheckedCommentsForBlockedResponse.h delete mode 100644 client/include/FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h delete mode 100644 client/include/FastCommentsClient/model/CreateCommentPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/CreateEmailTemplateResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/CreateFeedPostPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/CreateFeedPostResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/CreateModeratorResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/CreateQuestionConfigResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/CreateQuestionResultResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/CreateTenantPackageResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/CreateTenantResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/CreateTenantUserResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/CreateTicketResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/CreateUserBadgeResponse.h delete mode 100644 client/include/FastCommentsClient/model/CreateV1PageReactResponse.h delete mode 100644 client/include/FastCommentsClient/model/CreateV2PageReactResponse.h delete mode 100644 client/include/FastCommentsClient/model/CreateVoteResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteCommentPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteCommentVoteResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteEmailTemplateResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h delete mode 100644 client/include/FastCommentsClient/model/DeleteHashTagResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteModerationVoteResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteModeratorResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteNotificationCountResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeletePendingWebhookEventResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteQuestionConfigResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteQuestionResultResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteTenantPackageResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteTenantResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteTenantUserResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteUserBadgeResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteV1PageReactResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteV2PageReactResponse.h delete mode 100644 client/include/FastCommentsClient/model/DeleteVoteResponse.h delete mode 100644 client/include/FastCommentsClient/model/FlagCommentPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/FlagCommentResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetApiCommentsResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetApiExportStatusResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetApiIdsResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetAuditLogsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetBanUsersFromCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetCachedNotificationCountResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentBanStatusResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentChildrenResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentTextResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentVoteUserNamesResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentsForUserResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentsPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetCommentsResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetCountResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetCountsResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetEmailTemplateResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetEmailTemplatesResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetEventLogResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetFeedPostsPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetFeedPostsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetFeedPostsStatsResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetGifLargeResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetGlobalEventLogResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetHashTagsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetLogsResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetManualBadgesForUserResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetManualBadgesResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetModerationCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetModerationCommentTextResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetModeratorResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetModeratorsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetNotificationCountResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetNotificationsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetOfflineUsersResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetOnlineUsersResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetPagesPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetPreBanSummaryResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetQuestionConfigResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetQuestionConfigsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetQuestionResultResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetQuestionResultsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetSearchCommentsSummaryResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetSearchPagesResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetSearchSitesResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetSearchSuggestResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetSearchUsersResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantPackageResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantPackagesResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantUserResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantUsersResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetTenantsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetTicketResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetTicketsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetTranslationsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetTrustFactorResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserBadgeProgressListResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserBadgeResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserBadgesResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserBanPreferenceResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserInternalProfileResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetUserNotificationCountResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetUserNotificationsResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetUserReactsPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetUserResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetUsersInfoResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetV1PageLikesResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetV2PageReactUsersResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetV2PageReactsResponse.h delete mode 100644 client/include/FastCommentsClient/model/GetVotesForUserResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/GetVotesResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/LockCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/PatchHashTagResponse.h delete mode 100644 client/include/FastCommentsClient/model/PinCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostAdjustCommentVotesResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostApiExportResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostBanUserFromCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostBanUserUndoResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostBulkPreBanSummaryResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostCommentsByIdsResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostFlagCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostRestoreDeletedCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostSetCommentReviewStatusResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostSetCommentSpamStatusResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostSetCommentTextResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostUnFlagCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/PostVoteResponse.h delete mode 100644 client/include/FastCommentsClient/model/PutAwardBadgeResponse.h delete mode 100644 client/include/FastCommentsClient/model/PutCloseThreadResponse.h delete mode 100644 client/include/FastCommentsClient/model/PutRemoveBadgeResponse.h delete mode 100644 client/include/FastCommentsClient/model/PutReopenThreadResponse.h delete mode 100644 client/include/FastCommentsClient/model/ReactFeedPostPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/RenderEmailTemplateResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/ReplaceTenantPackageResponse.h delete mode 100644 client/include/FastCommentsClient/model/ReplaceTenantUserResponse.h delete mode 100644 client/include/FastCommentsClient/model/ResetUserNotificationCountResponse.h delete mode 100644 client/include/FastCommentsClient/model/ResetUserNotificationsResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/SaveCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/SearchUsersResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/SendInviteResponse.h delete mode 100644 client/include/FastCommentsClient/model/SendLoginLinkResponse.h delete mode 100644 client/include/FastCommentsClient/model/SetCommentTextResponse_1.h delete mode 100644 client/include/FastCommentsClient/model/SetTrustFactorResponse.h delete mode 100644 client/include/FastCommentsClient/model/UnBlockCommentPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/UnBlockUserFromCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/UnFlagCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/UnLockCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/UnPinCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateCommentResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateEmailTemplateResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateFeedPostPublicResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateFeedPostResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateModeratorResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateNotificationResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateQuestionConfigResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateQuestionResultResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateTenantPackageResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateTenantResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateTenantUserResponse.h delete mode 100644 client/include/FastCommentsClient/model/UpdateUserBadgeResponse.h delete mode 100644 client/include/FastCommentsClient/model/VoteCommentResponse.h delete mode 100644 client/src/model/AddHashTagResponse.cpp delete mode 100644 client/src/model/AddHashTagsBulkResponse.cpp delete mode 100644 client/src/model/AggregateQuestionResultsResponse_1.cpp delete mode 100644 client/src/model/BlockFromCommentPublicResponse.cpp delete mode 100644 client/src/model/BlockUserFromCommentResponse.cpp delete mode 100644 client/src/model/BulkAggregateQuestionResultsResponse_1.cpp delete mode 100644 client/src/model/ChangeTicketStateResponse_1.cpp delete mode 100644 client/src/model/CheckedCommentsForBlockedResponse.cpp delete mode 100644 client/src/model/CombineCommentsWithQuestionResultsResponse.cpp delete mode 100644 client/src/model/CreateCommentPublicResponse.cpp delete mode 100644 client/src/model/CreateEmailTemplateResponse_1.cpp delete mode 100644 client/src/model/CreateFeedPostPublicResponse.cpp delete mode 100644 client/src/model/CreateFeedPostResponse_1.cpp delete mode 100644 client/src/model/CreateModeratorResponse_1.cpp delete mode 100644 client/src/model/CreateQuestionConfigResponse_1.cpp delete mode 100644 client/src/model/CreateQuestionResultResponse_1.cpp delete mode 100644 client/src/model/CreateTenantPackageResponse_1.cpp delete mode 100644 client/src/model/CreateTenantResponse_1.cpp delete mode 100644 client/src/model/CreateTenantUserResponse_1.cpp delete mode 100644 client/src/model/CreateTicketResponse_1.cpp delete mode 100644 client/src/model/CreateUserBadgeResponse.cpp delete mode 100644 client/src/model/CreateV1PageReactResponse.cpp delete mode 100644 client/src/model/CreateV2PageReactResponse.cpp delete mode 100644 client/src/model/CreateVoteResponse.cpp delete mode 100644 client/src/model/DeleteCommentPublicResponse.cpp delete mode 100644 client/src/model/DeleteCommentResponse.cpp delete mode 100644 client/src/model/DeleteCommentVoteResponse.cpp delete mode 100644 client/src/model/DeleteEmailTemplateRenderErrorResponse.cpp delete mode 100644 client/src/model/DeleteEmailTemplateResponse.cpp delete mode 100644 client/src/model/DeleteFeedPostPublicResponse_anyOf.cpp delete mode 100644 client/src/model/DeleteHashTagResponse.cpp delete mode 100644 client/src/model/DeleteModerationVoteResponse.cpp delete mode 100644 client/src/model/DeleteModeratorResponse.cpp delete mode 100644 client/src/model/DeleteNotificationCountResponse.cpp delete mode 100644 client/src/model/DeletePendingWebhookEventResponse.cpp delete mode 100644 client/src/model/DeleteQuestionConfigResponse.cpp delete mode 100644 client/src/model/DeleteQuestionResultResponse.cpp delete mode 100644 client/src/model/DeleteTenantPackageResponse.cpp delete mode 100644 client/src/model/DeleteTenantResponse.cpp delete mode 100644 client/src/model/DeleteTenantUserResponse.cpp delete mode 100644 client/src/model/DeleteUserBadgeResponse.cpp delete mode 100644 client/src/model/DeleteV1PageReactResponse.cpp delete mode 100644 client/src/model/DeleteV2PageReactResponse.cpp delete mode 100644 client/src/model/DeleteVoteResponse.cpp delete mode 100644 client/src/model/FlagCommentPublicResponse.cpp delete mode 100644 client/src/model/FlagCommentResponse_1.cpp delete mode 100644 client/src/model/GetApiCommentsResponse.cpp delete mode 100644 client/src/model/GetApiExportStatusResponse.cpp delete mode 100644 client/src/model/GetApiIdsResponse.cpp delete mode 100644 client/src/model/GetAuditLogsResponse_1.cpp delete mode 100644 client/src/model/GetBanUsersFromCommentResponse.cpp delete mode 100644 client/src/model/GetCachedNotificationCountResponse_1.cpp delete mode 100644 client/src/model/GetCommentBanStatusResponse_1.cpp delete mode 100644 client/src/model/GetCommentChildrenResponse.cpp delete mode 100644 client/src/model/GetCommentResponse.cpp delete mode 100644 client/src/model/GetCommentTextResponse_1.cpp delete mode 100644 client/src/model/GetCommentVoteUserNamesResponse.cpp delete mode 100644 client/src/model/GetCommentsForUserResponse_1.cpp delete mode 100644 client/src/model/GetCommentsPublicResponse.cpp delete mode 100644 client/src/model/GetCommentsResponse.cpp delete mode 100644 client/src/model/GetCountResponse.cpp delete mode 100644 client/src/model/GetCountsResponse.cpp delete mode 100644 client/src/model/GetEmailTemplateDefinitionsResponse_1.cpp delete mode 100644 client/src/model/GetEmailTemplateRenderErrorsResponse_1.cpp delete mode 100644 client/src/model/GetEmailTemplateResponse_1.cpp delete mode 100644 client/src/model/GetEmailTemplatesResponse_1.cpp delete mode 100644 client/src/model/GetEventLogResponse_1.cpp delete mode 100644 client/src/model/GetFeedPostsPublicResponse.cpp delete mode 100644 client/src/model/GetFeedPostsResponse_1.cpp delete mode 100644 client/src/model/GetFeedPostsStatsResponse.cpp delete mode 100644 client/src/model/GetGifLargeResponse.cpp delete mode 100644 client/src/model/GetGlobalEventLogResponse.cpp delete mode 100644 client/src/model/GetHashTagsResponse_1.cpp delete mode 100644 client/src/model/GetLogsResponse.cpp delete mode 100644 client/src/model/GetManualBadgesForUserResponse.cpp delete mode 100644 client/src/model/GetManualBadgesResponse.cpp delete mode 100644 client/src/model/GetModerationCommentResponse.cpp delete mode 100644 client/src/model/GetModerationCommentTextResponse.cpp delete mode 100644 client/src/model/GetModeratorResponse_1.cpp delete mode 100644 client/src/model/GetModeratorsResponse_1.cpp delete mode 100644 client/src/model/GetNotificationCountResponse_1.cpp delete mode 100644 client/src/model/GetNotificationsResponse_1.cpp delete mode 100644 client/src/model/GetOfflineUsersResponse.cpp delete mode 100644 client/src/model/GetOnlineUsersResponse.cpp delete mode 100644 client/src/model/GetPagesPublicResponse.cpp delete mode 100644 client/src/model/GetPendingWebhookEventCountResponse_1.cpp delete mode 100644 client/src/model/GetPendingWebhookEventsResponse_1.cpp delete mode 100644 client/src/model/GetPreBanSummaryResponse.cpp delete mode 100644 client/src/model/GetQuestionConfigResponse_1.cpp delete mode 100644 client/src/model/GetQuestionConfigsResponse_1.cpp delete mode 100644 client/src/model/GetQuestionResultResponse_1.cpp delete mode 100644 client/src/model/GetQuestionResultsResponse_1.cpp delete mode 100644 client/src/model/GetSearchCommentsSummaryResponse.cpp delete mode 100644 client/src/model/GetSearchPagesResponse.cpp delete mode 100644 client/src/model/GetSearchSitesResponse.cpp delete mode 100644 client/src/model/GetSearchSuggestResponse.cpp delete mode 100644 client/src/model/GetSearchUsersResponse.cpp delete mode 100644 client/src/model/GetTenantDailyUsagesResponse_1.cpp delete mode 100644 client/src/model/GetTenantPackageResponse_1.cpp delete mode 100644 client/src/model/GetTenantPackagesResponse_1.cpp delete mode 100644 client/src/model/GetTenantResponse_1.cpp delete mode 100644 client/src/model/GetTenantUserResponse_1.cpp delete mode 100644 client/src/model/GetTenantUsersResponse_1.cpp delete mode 100644 client/src/model/GetTenantsResponse_1.cpp delete mode 100644 client/src/model/GetTicketResponse_1.cpp delete mode 100644 client/src/model/GetTicketsResponse_1.cpp delete mode 100644 client/src/model/GetTranslationsResponse_1.cpp delete mode 100644 client/src/model/GetTrustFactorResponse.cpp delete mode 100644 client/src/model/GetUserBadgeProgressByIdResponse.cpp delete mode 100644 client/src/model/GetUserBadgeProgressByUserIdResponse.cpp delete mode 100644 client/src/model/GetUserBadgeProgressListResponse.cpp delete mode 100644 client/src/model/GetUserBadgeResponse.cpp delete mode 100644 client/src/model/GetUserBadgesResponse.cpp delete mode 100644 client/src/model/GetUserBanPreferenceResponse.cpp delete mode 100644 client/src/model/GetUserInternalProfileResponse_1.cpp delete mode 100644 client/src/model/GetUserNotificationCountResponse_1.cpp delete mode 100644 client/src/model/GetUserNotificationsResponse.cpp delete mode 100644 client/src/model/GetUserPresenceStatusesResponse_1.cpp delete mode 100644 client/src/model/GetUserReactsPublicResponse.cpp delete mode 100644 client/src/model/GetUserResponse_1.cpp delete mode 100644 client/src/model/GetUsersInfoResponse.cpp delete mode 100644 client/src/model/GetV1PageLikesResponse.cpp delete mode 100644 client/src/model/GetV2PageReactUsersResponse_1.cpp delete mode 100644 client/src/model/GetV2PageReactsResponse.cpp delete mode 100644 client/src/model/GetVotesForUserResponse_1.cpp delete mode 100644 client/src/model/GetVotesResponse_1.cpp delete mode 100644 client/src/model/LockCommentResponse.cpp delete mode 100644 client/src/model/PatchHashTagResponse.cpp delete mode 100644 client/src/model/PinCommentResponse.cpp delete mode 100644 client/src/model/PostAdjustCommentVotesResponse.cpp delete mode 100644 client/src/model/PostApiExportResponse.cpp delete mode 100644 client/src/model/PostBanUserFromCommentResponse.cpp delete mode 100644 client/src/model/PostBanUserUndoResponse.cpp delete mode 100644 client/src/model/PostBulkPreBanSummaryResponse.cpp delete mode 100644 client/src/model/PostCommentsByIdsResponse.cpp delete mode 100644 client/src/model/PostFlagCommentResponse.cpp delete mode 100644 client/src/model/PostRestoreDeletedCommentResponse.cpp delete mode 100644 client/src/model/PostSetCommentApprovalStatusResponse.cpp delete mode 100644 client/src/model/PostSetCommentReviewStatusResponse.cpp delete mode 100644 client/src/model/PostSetCommentSpamStatusResponse.cpp delete mode 100644 client/src/model/PostSetCommentTextResponse.cpp delete mode 100644 client/src/model/PostUnFlagCommentResponse.cpp delete mode 100644 client/src/model/PostVoteResponse.cpp delete mode 100644 client/src/model/PutAwardBadgeResponse.cpp delete mode 100644 client/src/model/PutCloseThreadResponse.cpp delete mode 100644 client/src/model/PutRemoveBadgeResponse.cpp delete mode 100644 client/src/model/PutReopenThreadResponse.cpp delete mode 100644 client/src/model/ReactFeedPostPublicResponse.cpp delete mode 100644 client/src/model/RenderEmailTemplateResponse_1.cpp delete mode 100644 client/src/model/ReplaceTenantPackageResponse.cpp delete mode 100644 client/src/model/ReplaceTenantUserResponse.cpp delete mode 100644 client/src/model/ResetUserNotificationCountResponse.cpp delete mode 100644 client/src/model/ResetUserNotificationsResponse_1.cpp delete mode 100644 client/src/model/SaveCommentResponse.cpp delete mode 100644 client/src/model/SearchUsersResponse_1.cpp delete mode 100644 client/src/model/SendInviteResponse.cpp delete mode 100644 client/src/model/SendLoginLinkResponse.cpp delete mode 100644 client/src/model/SetCommentTextResponse_1.cpp delete mode 100644 client/src/model/SetTrustFactorResponse.cpp delete mode 100644 client/src/model/UnBlockCommentPublicResponse.cpp delete mode 100644 client/src/model/UnBlockUserFromCommentResponse.cpp delete mode 100644 client/src/model/UnFlagCommentResponse.cpp delete mode 100644 client/src/model/UnLockCommentResponse.cpp delete mode 100644 client/src/model/UnPinCommentResponse.cpp delete mode 100644 client/src/model/UpdateCommentResponse.cpp delete mode 100644 client/src/model/UpdateEmailTemplateResponse.cpp delete mode 100644 client/src/model/UpdateFeedPostPublicResponse.cpp delete mode 100644 client/src/model/UpdateFeedPostResponse.cpp delete mode 100644 client/src/model/UpdateModeratorResponse.cpp delete mode 100644 client/src/model/UpdateNotificationResponse.cpp delete mode 100644 client/src/model/UpdateQuestionConfigResponse.cpp delete mode 100644 client/src/model/UpdateQuestionResultResponse.cpp delete mode 100644 client/src/model/UpdateTenantPackageResponse.cpp delete mode 100644 client/src/model/UpdateTenantResponse.cpp delete mode 100644 client/src/model/UpdateTenantUserResponse.cpp delete mode 100644 client/src/model/UpdateUserBadgeResponse.cpp delete mode 100644 client/src/model/VoteCommentResponse.cpp delete mode 100644 docs/Models/AddHashTagResponse.md delete mode 100644 docs/Models/AddHashTagsBulkResponse.md delete mode 100644 docs/Models/AggregateQuestionResultsResponse_1.md delete mode 100644 docs/Models/BlockFromCommentPublicResponse.md delete mode 100644 docs/Models/BlockUserFromCommentResponse.md delete mode 100644 docs/Models/BulkAggregateQuestionResultsResponse_1.md delete mode 100644 docs/Models/ChangeTicketStateResponse_1.md delete mode 100644 docs/Models/CheckedCommentsForBlockedResponse.md delete mode 100644 docs/Models/CombineCommentsWithQuestionResultsResponse.md delete mode 100644 docs/Models/CreateCommentPublicResponse.md delete mode 100644 docs/Models/CreateEmailTemplateResponse_1.md delete mode 100644 docs/Models/CreateFeedPostPublicResponse.md delete mode 100644 docs/Models/CreateFeedPostResponse_1.md delete mode 100644 docs/Models/CreateModeratorResponse_1.md delete mode 100644 docs/Models/CreateQuestionConfigResponse_1.md delete mode 100644 docs/Models/CreateQuestionResultResponse_1.md delete mode 100644 docs/Models/CreateTenantPackageResponse_1.md delete mode 100644 docs/Models/CreateTenantResponse_1.md delete mode 100644 docs/Models/CreateTenantUserResponse_1.md delete mode 100644 docs/Models/CreateTicketResponse_1.md delete mode 100644 docs/Models/CreateUserBadgeResponse.md delete mode 100644 docs/Models/CreateV1PageReactResponse.md delete mode 100644 docs/Models/CreateV2PageReactResponse.md delete mode 100644 docs/Models/CreateVoteResponse.md delete mode 100644 docs/Models/DeleteCommentPublicResponse.md delete mode 100644 docs/Models/DeleteCommentResponse.md delete mode 100644 docs/Models/DeleteCommentVoteResponse.md delete mode 100644 docs/Models/DeleteEmailTemplateRenderErrorResponse.md delete mode 100644 docs/Models/DeleteEmailTemplateResponse.md delete mode 100644 docs/Models/DeleteFeedPostPublicResponse_anyOf.md delete mode 100644 docs/Models/DeleteHashTagResponse.md delete mode 100644 docs/Models/DeleteModerationVoteResponse.md delete mode 100644 docs/Models/DeleteModeratorResponse.md delete mode 100644 docs/Models/DeleteNotificationCountResponse.md delete mode 100644 docs/Models/DeletePendingWebhookEventResponse.md delete mode 100644 docs/Models/DeleteQuestionConfigResponse.md delete mode 100644 docs/Models/DeleteQuestionResultResponse.md delete mode 100644 docs/Models/DeleteTenantPackageResponse.md delete mode 100644 docs/Models/DeleteTenantResponse.md delete mode 100644 docs/Models/DeleteTenantUserResponse.md delete mode 100644 docs/Models/DeleteUserBadgeResponse.md delete mode 100644 docs/Models/DeleteV1PageReactResponse.md delete mode 100644 docs/Models/DeleteV2PageReactResponse.md delete mode 100644 docs/Models/DeleteVoteResponse.md delete mode 100644 docs/Models/FlagCommentPublicResponse.md delete mode 100644 docs/Models/FlagCommentResponse_1.md delete mode 100644 docs/Models/GetApiCommentsResponse.md delete mode 100644 docs/Models/GetApiExportStatusResponse.md delete mode 100644 docs/Models/GetApiIdsResponse.md delete mode 100644 docs/Models/GetAuditLogsResponse_1.md delete mode 100644 docs/Models/GetBanUsersFromCommentResponse.md delete mode 100644 docs/Models/GetCachedNotificationCountResponse_1.md delete mode 100644 docs/Models/GetCommentBanStatusResponse_1.md delete mode 100644 docs/Models/GetCommentChildrenResponse.md delete mode 100644 docs/Models/GetCommentResponse.md delete mode 100644 docs/Models/GetCommentTextResponse_1.md delete mode 100644 docs/Models/GetCommentVoteUserNamesResponse.md delete mode 100644 docs/Models/GetCommentsForUserResponse_1.md delete mode 100644 docs/Models/GetCommentsPublicResponse.md delete mode 100644 docs/Models/GetCommentsResponse.md delete mode 100644 docs/Models/GetCountResponse.md delete mode 100644 docs/Models/GetCountsResponse.md delete mode 100644 docs/Models/GetEmailTemplateDefinitionsResponse_1.md delete mode 100644 docs/Models/GetEmailTemplateRenderErrorsResponse_1.md delete mode 100644 docs/Models/GetEmailTemplateResponse_1.md delete mode 100644 docs/Models/GetEmailTemplatesResponse_1.md delete mode 100644 docs/Models/GetEventLogResponse_1.md delete mode 100644 docs/Models/GetFeedPostsPublicResponse.md delete mode 100644 docs/Models/GetFeedPostsResponse_1.md delete mode 100644 docs/Models/GetFeedPostsStatsResponse.md delete mode 100644 docs/Models/GetGifLargeResponse.md delete mode 100644 docs/Models/GetGlobalEventLogResponse.md delete mode 100644 docs/Models/GetHashTagsResponse_1.md delete mode 100644 docs/Models/GetLogsResponse.md delete mode 100644 docs/Models/GetManualBadgesForUserResponse.md delete mode 100644 docs/Models/GetManualBadgesResponse.md delete mode 100644 docs/Models/GetModerationCommentResponse.md delete mode 100644 docs/Models/GetModerationCommentTextResponse.md delete mode 100644 docs/Models/GetModeratorResponse_1.md delete mode 100644 docs/Models/GetModeratorsResponse_1.md delete mode 100644 docs/Models/GetNotificationCountResponse_1.md delete mode 100644 docs/Models/GetNotificationsResponse_1.md delete mode 100644 docs/Models/GetOfflineUsersResponse.md delete mode 100644 docs/Models/GetOnlineUsersResponse.md delete mode 100644 docs/Models/GetPagesPublicResponse.md delete mode 100644 docs/Models/GetPendingWebhookEventCountResponse_1.md delete mode 100644 docs/Models/GetPendingWebhookEventsResponse_1.md delete mode 100644 docs/Models/GetPreBanSummaryResponse.md delete mode 100644 docs/Models/GetQuestionConfigResponse_1.md delete mode 100644 docs/Models/GetQuestionConfigsResponse_1.md delete mode 100644 docs/Models/GetQuestionResultResponse_1.md delete mode 100644 docs/Models/GetQuestionResultsResponse_1.md delete mode 100644 docs/Models/GetSearchCommentsSummaryResponse.md delete mode 100644 docs/Models/GetSearchPagesResponse.md delete mode 100644 docs/Models/GetSearchSitesResponse.md delete mode 100644 docs/Models/GetSearchSuggestResponse.md delete mode 100644 docs/Models/GetSearchUsersResponse.md delete mode 100644 docs/Models/GetTenantDailyUsagesResponse_1.md delete mode 100644 docs/Models/GetTenantPackageResponse_1.md delete mode 100644 docs/Models/GetTenantPackagesResponse_1.md delete mode 100644 docs/Models/GetTenantResponse_1.md delete mode 100644 docs/Models/GetTenantUserResponse_1.md delete mode 100644 docs/Models/GetTenantUsersResponse_1.md delete mode 100644 docs/Models/GetTenantsResponse_1.md delete mode 100644 docs/Models/GetTicketResponse_1.md delete mode 100644 docs/Models/GetTicketsResponse_1.md delete mode 100644 docs/Models/GetTranslationsResponse_1.md delete mode 100644 docs/Models/GetTrustFactorResponse.md delete mode 100644 docs/Models/GetUserBadgeProgressByIdResponse.md delete mode 100644 docs/Models/GetUserBadgeProgressByUserIdResponse.md delete mode 100644 docs/Models/GetUserBadgeProgressListResponse.md delete mode 100644 docs/Models/GetUserBadgeResponse.md delete mode 100644 docs/Models/GetUserBadgesResponse.md delete mode 100644 docs/Models/GetUserBanPreferenceResponse.md delete mode 100644 docs/Models/GetUserInternalProfileResponse_1.md delete mode 100644 docs/Models/GetUserNotificationCountResponse_1.md delete mode 100644 docs/Models/GetUserNotificationsResponse.md delete mode 100644 docs/Models/GetUserPresenceStatusesResponse_1.md delete mode 100644 docs/Models/GetUserReactsPublicResponse.md delete mode 100644 docs/Models/GetUserResponse_1.md delete mode 100644 docs/Models/GetUsersInfoResponse.md delete mode 100644 docs/Models/GetV1PageLikesResponse.md delete mode 100644 docs/Models/GetV2PageReactUsersResponse_1.md delete mode 100644 docs/Models/GetV2PageReactsResponse.md delete mode 100644 docs/Models/GetVotesForUserResponse_1.md delete mode 100644 docs/Models/GetVotesResponse_1.md delete mode 100644 docs/Models/LockCommentResponse.md delete mode 100644 docs/Models/PatchHashTagResponse.md delete mode 100644 docs/Models/PinCommentResponse.md delete mode 100644 docs/Models/PostAdjustCommentVotesResponse.md delete mode 100644 docs/Models/PostApiExportResponse.md delete mode 100644 docs/Models/PostBanUserFromCommentResponse.md delete mode 100644 docs/Models/PostBanUserUndoResponse.md delete mode 100644 docs/Models/PostBulkPreBanSummaryResponse.md delete mode 100644 docs/Models/PostCommentsByIdsResponse.md delete mode 100644 docs/Models/PostFlagCommentResponse.md delete mode 100644 docs/Models/PostRestoreDeletedCommentResponse.md delete mode 100644 docs/Models/PostSetCommentApprovalStatusResponse.md delete mode 100644 docs/Models/PostSetCommentReviewStatusResponse.md delete mode 100644 docs/Models/PostSetCommentSpamStatusResponse.md delete mode 100644 docs/Models/PostSetCommentTextResponse.md delete mode 100644 docs/Models/PostUnFlagCommentResponse.md delete mode 100644 docs/Models/PostVoteResponse.md delete mode 100644 docs/Models/PutAwardBadgeResponse.md delete mode 100644 docs/Models/PutCloseThreadResponse.md delete mode 100644 docs/Models/PutRemoveBadgeResponse.md delete mode 100644 docs/Models/PutReopenThreadResponse.md delete mode 100644 docs/Models/ReactFeedPostPublicResponse.md delete mode 100644 docs/Models/RenderEmailTemplateResponse_1.md delete mode 100644 docs/Models/ReplaceTenantPackageResponse.md delete mode 100644 docs/Models/ReplaceTenantUserResponse.md delete mode 100644 docs/Models/ResetUserNotificationCountResponse.md delete mode 100644 docs/Models/ResetUserNotificationsResponse_1.md delete mode 100644 docs/Models/SaveCommentResponse.md delete mode 100644 docs/Models/SearchUsersResponse_1.md delete mode 100644 docs/Models/SendInviteResponse.md delete mode 100644 docs/Models/SendLoginLinkResponse.md delete mode 100644 docs/Models/SetCommentTextResponse_1.md delete mode 100644 docs/Models/SetTrustFactorResponse.md delete mode 100644 docs/Models/UnBlockCommentPublicResponse.md delete mode 100644 docs/Models/UnBlockUserFromCommentResponse.md delete mode 100644 docs/Models/UnFlagCommentResponse.md delete mode 100644 docs/Models/UnLockCommentResponse.md delete mode 100644 docs/Models/UnPinCommentResponse.md delete mode 100644 docs/Models/UpdateCommentResponse.md delete mode 100644 docs/Models/UpdateEmailTemplateResponse.md delete mode 100644 docs/Models/UpdateFeedPostPublicResponse.md delete mode 100644 docs/Models/UpdateFeedPostResponse.md delete mode 100644 docs/Models/UpdateModeratorResponse.md delete mode 100644 docs/Models/UpdateNotificationResponse.md delete mode 100644 docs/Models/UpdateQuestionConfigResponse.md delete mode 100644 docs/Models/UpdateQuestionResultResponse.md delete mode 100644 docs/Models/UpdateTenantPackageResponse.md delete mode 100644 docs/Models/UpdateTenantResponse.md delete mode 100644 docs/Models/UpdateTenantUserResponse.md delete mode 100644 docs/Models/UpdateUserBadgeResponse.md delete mode 100644 docs/Models/VoteCommentResponse.md diff --git a/client/include/FastCommentsClient/api/DefaultApi.h b/client/include/FastCommentsClient/api/DefaultApi.h index aae540b..a2d41a8 100644 --- a/client/include/FastCommentsClient/api/DefaultApi.h +++ b/client/include/FastCommentsClient/api/DefaultApi.h @@ -22,166 +22,140 @@ #include "FastCommentsClient/ApiClient.h" +#include "FastCommentsClient/model/APICreateUserBadgeResponse.h" +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/APIEmptySuccessResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIGetCommentResponse.h" +#include "FastCommentsClient/model/APIGetCommentsResponse.h" +#include "FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h" +#include "FastCommentsClient/model/APIGetUserBadgeProgressResponse.h" +#include "FastCommentsClient/model/APIGetUserBadgeResponse.h" +#include "FastCommentsClient/model/APIGetUserBadgesResponse.h" +#include "FastCommentsClient/model/APISaveCommentResponse.h" #include "FastCommentsClient/model/AddDomainConfigParams.h" #include "FastCommentsClient/model/AddDomainConfigResponse.h" -#include "FastCommentsClient/model/AddHashTagResponse.h" -#include "FastCommentsClient/model/AddHashTagsBulkResponse.h" #include "FastCommentsClient/model/AddPageAPIResponse.h" #include "FastCommentsClient/model/AddSSOUserAPIResponse.h" -#include "FastCommentsClient/model/AggregateQuestionResultsResponse_1.h" +#include "FastCommentsClient/model/AggregateQuestionResultsResponse.h" #include "FastCommentsClient/model/AggregateResponse.h" #include "FastCommentsClient/model/AggregateTimeBucket.h" #include "FastCommentsClient/model/AggregationRequest.h" #include "FastCommentsClient/model/BlockFromCommentParams.h" -#include "FastCommentsClient/model/BlockUserFromCommentResponse.h" +#include "FastCommentsClient/model/BlockSuccess.h" #include "FastCommentsClient/model/BulkAggregateQuestionResultsRequest.h" -#include "FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h" +#include "FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h" #include "FastCommentsClient/model/BulkCreateHashTagsBody.h" +#include "FastCommentsClient/model/BulkCreateHashTagsResponse.h" #include "FastCommentsClient/model/ChangeTicketStateBody.h" -#include "FastCommentsClient/model/ChangeTicketStateResponse_1.h" -#include "FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h" +#include "FastCommentsClient/model/ChangeTicketStateResponse.h" +#include "FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h" #include "FastCommentsClient/model/CreateAPIPageData.h" #include "FastCommentsClient/model/CreateAPISSOUserData.h" #include "FastCommentsClient/model/CreateAPIUserSubscriptionData.h" #include "FastCommentsClient/model/CreateCommentParams.h" #include "FastCommentsClient/model/CreateEmailTemplateBody.h" -#include "FastCommentsClient/model/CreateEmailTemplateResponse_1.h" +#include "FastCommentsClient/model/CreateEmailTemplateResponse.h" #include "FastCommentsClient/model/CreateFeedPostParams.h" -#include "FastCommentsClient/model/CreateFeedPostResponse_1.h" +#include "FastCommentsClient/model/CreateFeedPostsResponse.h" #include "FastCommentsClient/model/CreateHashTagBody.h" +#include "FastCommentsClient/model/CreateHashTagResponse.h" #include "FastCommentsClient/model/CreateModeratorBody.h" -#include "FastCommentsClient/model/CreateModeratorResponse_1.h" +#include "FastCommentsClient/model/CreateModeratorResponse.h" #include "FastCommentsClient/model/CreateQuestionConfigBody.h" -#include "FastCommentsClient/model/CreateQuestionConfigResponse_1.h" +#include "FastCommentsClient/model/CreateQuestionConfigResponse.h" #include "FastCommentsClient/model/CreateQuestionResultBody.h" -#include "FastCommentsClient/model/CreateQuestionResultResponse_1.h" +#include "FastCommentsClient/model/CreateQuestionResultResponse.h" #include "FastCommentsClient/model/CreateSubscriptionAPIResponse.h" #include "FastCommentsClient/model/CreateTenantBody.h" #include "FastCommentsClient/model/CreateTenantPackageBody.h" -#include "FastCommentsClient/model/CreateTenantPackageResponse_1.h" -#include "FastCommentsClient/model/CreateTenantResponse_1.h" +#include "FastCommentsClient/model/CreateTenantPackageResponse.h" +#include "FastCommentsClient/model/CreateTenantResponse.h" #include "FastCommentsClient/model/CreateTenantUserBody.h" -#include "FastCommentsClient/model/CreateTenantUserResponse_1.h" +#include "FastCommentsClient/model/CreateTenantUserResponse.h" #include "FastCommentsClient/model/CreateTicketBody.h" -#include "FastCommentsClient/model/CreateTicketResponse_1.h" +#include "FastCommentsClient/model/CreateTicketResponse.h" #include "FastCommentsClient/model/CreateUserBadgeParams.h" -#include "FastCommentsClient/model/CreateUserBadgeResponse.h" -#include "FastCommentsClient/model/CreateVoteResponse.h" -#include "FastCommentsClient/model/DeleteCommentResponse.h" +#include "FastCommentsClient/model/DeleteCommentResult.h" #include "FastCommentsClient/model/DeleteDomainConfigResponse.h" -#include "FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h" -#include "FastCommentsClient/model/DeleteEmailTemplateResponse.h" #include "FastCommentsClient/model/DeleteHashTagRequestBody.h" -#include "FastCommentsClient/model/DeleteHashTagResponse.h" -#include "FastCommentsClient/model/DeleteModeratorResponse.h" -#include "FastCommentsClient/model/DeleteNotificationCountResponse.h" #include "FastCommentsClient/model/DeletePageAPIResponse.h" -#include "FastCommentsClient/model/DeletePendingWebhookEventResponse.h" -#include "FastCommentsClient/model/DeleteQuestionConfigResponse.h" -#include "FastCommentsClient/model/DeleteQuestionResultResponse.h" #include "FastCommentsClient/model/DeleteSSOUserAPIResponse.h" #include "FastCommentsClient/model/DeleteSubscriptionAPIResponse.h" -#include "FastCommentsClient/model/DeleteTenantPackageResponse.h" -#include "FastCommentsClient/model/DeleteTenantResponse.h" -#include "FastCommentsClient/model/DeleteTenantUserResponse.h" -#include "FastCommentsClient/model/DeleteUserBadgeResponse.h" -#include "FastCommentsClient/model/DeleteVoteResponse.h" #include "FastCommentsClient/model/FeedPost.h" -#include "FastCommentsClient/model/FlagCommentResponse_1.h" -#include "FastCommentsClient/model/GetAuditLogsResponse_1.h" -#include "FastCommentsClient/model/GetCachedNotificationCountResponse_1.h" -#include "FastCommentsClient/model/GetCommentResponse.h" -#include "FastCommentsClient/model/GetCommentsResponse.h" +#include "FastCommentsClient/model/FlagCommentResponse.h" +#include "FastCommentsClient/model/GetAuditLogsResponse.h" +#include "FastCommentsClient/model/GetCachedNotificationCountResponse.h" #include "FastCommentsClient/model/GetDomainConfigResponse.h" #include "FastCommentsClient/model/GetDomainConfigsResponse.h" -#include "FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h" -#include "FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h" -#include "FastCommentsClient/model/GetEmailTemplateResponse_1.h" -#include "FastCommentsClient/model/GetEmailTemplatesResponse_1.h" -#include "FastCommentsClient/model/GetFeedPostsResponse_1.h" -#include "FastCommentsClient/model/GetHashTagsResponse_1.h" -#include "FastCommentsClient/model/GetModeratorResponse_1.h" -#include "FastCommentsClient/model/GetModeratorsResponse_1.h" -#include "FastCommentsClient/model/GetNotificationCountResponse_1.h" -#include "FastCommentsClient/model/GetNotificationsResponse_1.h" +#include "FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h" +#include "FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h" +#include "FastCommentsClient/model/GetEmailTemplateResponse.h" +#include "FastCommentsClient/model/GetEmailTemplatesResponse.h" +#include "FastCommentsClient/model/GetFeedPostsResponse.h" +#include "FastCommentsClient/model/GetHashTagsResponse.h" +#include "FastCommentsClient/model/GetModeratorResponse.h" +#include "FastCommentsClient/model/GetModeratorsResponse.h" +#include "FastCommentsClient/model/GetNotificationCountResponse.h" +#include "FastCommentsClient/model/GetNotificationsResponse.h" #include "FastCommentsClient/model/GetPageByURLIdAPIResponse.h" #include "FastCommentsClient/model/GetPagesAPIResponse.h" -#include "FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h" -#include "FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h" -#include "FastCommentsClient/model/GetQuestionConfigResponse_1.h" -#include "FastCommentsClient/model/GetQuestionConfigsResponse_1.h" -#include "FastCommentsClient/model/GetQuestionResultResponse_1.h" -#include "FastCommentsClient/model/GetQuestionResultsResponse_1.h" +#include "FastCommentsClient/model/GetPendingWebhookEventCountResponse.h" +#include "FastCommentsClient/model/GetPendingWebhookEventsResponse.h" +#include "FastCommentsClient/model/GetQuestionConfigResponse.h" +#include "FastCommentsClient/model/GetQuestionConfigsResponse.h" +#include "FastCommentsClient/model/GetQuestionResultResponse.h" +#include "FastCommentsClient/model/GetQuestionResultsResponse.h" #include "FastCommentsClient/model/GetSSOUserByEmailAPIResponse.h" #include "FastCommentsClient/model/GetSSOUserByIdAPIResponse.h" #include "FastCommentsClient/model/GetSSOUsersResponse.h" #include "FastCommentsClient/model/GetSubscriptionsAPIResponse.h" -#include "FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h" -#include "FastCommentsClient/model/GetTenantPackageResponse_1.h" -#include "FastCommentsClient/model/GetTenantPackagesResponse_1.h" -#include "FastCommentsClient/model/GetTenantResponse_1.h" -#include "FastCommentsClient/model/GetTenantUserResponse_1.h" -#include "FastCommentsClient/model/GetTenantUsersResponse_1.h" -#include "FastCommentsClient/model/GetTenantsResponse_1.h" -#include "FastCommentsClient/model/GetTicketResponse_1.h" -#include "FastCommentsClient/model/GetTicketsResponse_1.h" -#include "FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h" -#include "FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h" -#include "FastCommentsClient/model/GetUserBadgeProgressListResponse.h" -#include "FastCommentsClient/model/GetUserBadgeResponse.h" -#include "FastCommentsClient/model/GetUserBadgesResponse.h" -#include "FastCommentsClient/model/GetUserResponse_1.h" -#include "FastCommentsClient/model/GetVotesForUserResponse_1.h" -#include "FastCommentsClient/model/GetVotesResponse_1.h" +#include "FastCommentsClient/model/GetTenantDailyUsagesResponse.h" +#include "FastCommentsClient/model/GetTenantPackageResponse.h" +#include "FastCommentsClient/model/GetTenantPackagesResponse.h" +#include "FastCommentsClient/model/GetTenantResponse.h" +#include "FastCommentsClient/model/GetTenantUserResponse.h" +#include "FastCommentsClient/model/GetTenantUsersResponse.h" +#include "FastCommentsClient/model/GetTenantsResponse.h" +#include "FastCommentsClient/model/GetTicketResponse.h" +#include "FastCommentsClient/model/GetTicketsResponse.h" +#include "FastCommentsClient/model/GetUserResponse.h" +#include "FastCommentsClient/model/GetVotesForUserResponse.h" +#include "FastCommentsClient/model/GetVotesResponse.h" #include "FastCommentsClient/model/PatchDomainConfigParams.h" #include "FastCommentsClient/model/PatchDomainConfigResponse.h" -#include "FastCommentsClient/model/PatchHashTagResponse.h" #include "FastCommentsClient/model/PatchPageAPIResponse.h" #include "FastCommentsClient/model/PatchSSOUserAPIResponse.h" #include "FastCommentsClient/model/PutDomainConfigResponse.h" #include "FastCommentsClient/model/PutSSOUserAPIResponse.h" #include "FastCommentsClient/model/RenderEmailTemplateBody.h" -#include "FastCommentsClient/model/RenderEmailTemplateResponse_1.h" +#include "FastCommentsClient/model/RenderEmailTemplateResponse.h" #include "FastCommentsClient/model/ReplaceTenantPackageBody.h" -#include "FastCommentsClient/model/ReplaceTenantPackageResponse.h" #include "FastCommentsClient/model/ReplaceTenantUserBody.h" -#include "FastCommentsClient/model/ReplaceTenantUserResponse.h" #include "FastCommentsClient/model/SORT_DIR.h" -#include "FastCommentsClient/model/SaveCommentResponse.h" #include "FastCommentsClient/model/SaveCommentsBulkResponse.h" -#include "FastCommentsClient/model/SendInviteResponse.h" -#include "FastCommentsClient/model/SendLoginLinkResponse.h" #include "FastCommentsClient/model/SortDirections.h" #include "FastCommentsClient/model/UnBlockFromCommentParams.h" -#include "FastCommentsClient/model/UnBlockUserFromCommentResponse.h" -#include "FastCommentsClient/model/UnFlagCommentResponse.h" +#include "FastCommentsClient/model/UnblockSuccess.h" #include "FastCommentsClient/model/UpdatableCommentParams.h" #include "FastCommentsClient/model/UpdateAPIPageData.h" #include "FastCommentsClient/model/UpdateAPISSOUserData.h" #include "FastCommentsClient/model/UpdateAPIUserSubscriptionData.h" -#include "FastCommentsClient/model/UpdateCommentResponse.h" #include "FastCommentsClient/model/UpdateDomainConfigParams.h" #include "FastCommentsClient/model/UpdateEmailTemplateBody.h" -#include "FastCommentsClient/model/UpdateEmailTemplateResponse.h" -#include "FastCommentsClient/model/UpdateFeedPostResponse.h" #include "FastCommentsClient/model/UpdateHashTagBody.h" +#include "FastCommentsClient/model/UpdateHashTagResponse.h" #include "FastCommentsClient/model/UpdateModeratorBody.h" -#include "FastCommentsClient/model/UpdateModeratorResponse.h" #include "FastCommentsClient/model/UpdateNotificationBody.h" -#include "FastCommentsClient/model/UpdateNotificationResponse.h" #include "FastCommentsClient/model/UpdateQuestionConfigBody.h" -#include "FastCommentsClient/model/UpdateQuestionConfigResponse.h" #include "FastCommentsClient/model/UpdateQuestionResultBody.h" -#include "FastCommentsClient/model/UpdateQuestionResultResponse.h" #include "FastCommentsClient/model/UpdateSubscriptionAPIResponse.h" #include "FastCommentsClient/model/UpdateTenantBody.h" #include "FastCommentsClient/model/UpdateTenantPackageBody.h" -#include "FastCommentsClient/model/UpdateTenantPackageResponse.h" -#include "FastCommentsClient/model/UpdateTenantResponse.h" #include "FastCommentsClient/model/UpdateTenantUserBody.h" -#include "FastCommentsClient/model/UpdateTenantUserResponse.h" #include "FastCommentsClient/model/UpdateUserBadgeParams.h" -#include "FastCommentsClient/model/UpdateUserBadgeResponse.h" +#include "FastCommentsClient/model/VoteDeleteResponse.h" +#include "FastCommentsClient/model/VoteResponse.h" #include #include #include @@ -223,7 +197,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> addHashTag( + pplx::task> addHashTag( boost::optional tenantId, boost::optional> createHashTagBody ) const; @@ -235,7 +209,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> addHashTagsBulk( + pplx::task> addHashTagsBulk( boost::optional tenantId, boost::optional> bulkCreateHashTagsBody ) const; @@ -292,7 +266,7 @@ class DefaultApi /// (optional, default to new AggregateTimeBucket()) /// (optional, default to utility::datetime()) /// (optional, default to false) - pplx::task> aggregateQuestionResults( + pplx::task> aggregateQuestionResults( utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, @@ -312,7 +286,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> blockUserFromComment( + pplx::task> blockUserFromComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams, @@ -328,7 +302,7 @@ class DefaultApi /// /// /// (optional, default to false) - pplx::task> bulkAggregateQuestionResults( + pplx::task> bulkAggregateQuestionResults( utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest, boost::optional forceRecalculate @@ -343,7 +317,7 @@ class DefaultApi /// /// /// - pplx::task> changeTicketState( + pplx::task> changeTicketState( utility::string_t tenantId, utility::string_t userId, utility::string_t id, @@ -364,7 +338,7 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> combineCommentsWithQuestionResults( + pplx::task> combineCommentsWithQuestionResults( utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, @@ -383,7 +357,7 @@ class DefaultApi /// /// /// - pplx::task> createEmailTemplate( + pplx::task> createEmailTemplate( utility::string_t tenantId, std::shared_ptr createEmailTemplateBody ) const; @@ -399,7 +373,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - pplx::task> createFeedPost( + pplx::task> createFeedPost( utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, @@ -415,7 +389,7 @@ class DefaultApi /// /// /// - pplx::task> createModerator( + pplx::task> createModerator( utility::string_t tenantId, std::shared_ptr createModeratorBody ) const; @@ -427,7 +401,7 @@ class DefaultApi /// /// /// - pplx::task> createQuestionConfig( + pplx::task> createQuestionConfig( utility::string_t tenantId, std::shared_ptr createQuestionConfigBody ) const; @@ -439,7 +413,7 @@ class DefaultApi /// /// /// - pplx::task> createQuestionResult( + pplx::task> createQuestionResult( utility::string_t tenantId, std::shared_ptr createQuestionResultBody ) const; @@ -463,7 +437,7 @@ class DefaultApi /// /// /// - pplx::task> createTenant( + pplx::task> createTenant( utility::string_t tenantId, std::shared_ptr createTenantBody ) const; @@ -475,7 +449,7 @@ class DefaultApi /// /// /// - pplx::task> createTenantPackage( + pplx::task> createTenantPackage( utility::string_t tenantId, std::shared_ptr createTenantPackageBody ) const; @@ -487,7 +461,7 @@ class DefaultApi /// /// /// - pplx::task> createTenantUser( + pplx::task> createTenantUser( utility::string_t tenantId, std::shared_ptr createTenantUserBody ) const; @@ -500,7 +474,7 @@ class DefaultApi /// /// /// - pplx::task> createTicket( + pplx::task> createTicket( utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody @@ -513,7 +487,7 @@ class DefaultApi /// /// /// - pplx::task> createUserBadge( + pplx::task> createUserBadge( utility::string_t tenantId, std::shared_ptr createUserBadgeParams ) const; @@ -528,7 +502,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createVote( + pplx::task> createVote( utility::string_t tenantId, utility::string_t commentId, utility::string_t direction, @@ -545,7 +519,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - pplx::task> deleteComment( + pplx::task> deleteComment( utility::string_t tenantId, utility::string_t id, boost::optional contextUserId, @@ -571,7 +545,7 @@ class DefaultApi /// /// /// - pplx::task> deleteEmailTemplate( + pplx::task> deleteEmailTemplate( utility::string_t tenantId, utility::string_t id ) const; @@ -584,7 +558,7 @@ class DefaultApi /// /// /// - pplx::task> deleteEmailTemplateRenderError( + pplx::task> deleteEmailTemplateRenderError( utility::string_t tenantId, utility::string_t id, utility::string_t errorId @@ -598,7 +572,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> deleteHashTag( + pplx::task> deleteHashTag( utility::string_t tag, boost::optional tenantId, boost::optional> deleteHashTagRequestBody @@ -612,7 +586,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteModerator( + pplx::task> deleteModerator( utility::string_t tenantId, utility::string_t id, boost::optional sendEmail @@ -625,7 +599,7 @@ class DefaultApi /// /// /// - pplx::task> deleteNotificationCount( + pplx::task> deleteNotificationCount( utility::string_t tenantId, utility::string_t id ) const; @@ -649,7 +623,7 @@ class DefaultApi /// /// /// - pplx::task> deletePendingWebhookEvent( + pplx::task> deletePendingWebhookEvent( utility::string_t tenantId, utility::string_t id ) const; @@ -661,7 +635,7 @@ class DefaultApi /// /// /// - pplx::task> deleteQuestionConfig( + pplx::task> deleteQuestionConfig( utility::string_t tenantId, utility::string_t id ) const; @@ -673,7 +647,7 @@ class DefaultApi /// /// /// - pplx::task> deleteQuestionResult( + pplx::task> deleteQuestionResult( utility::string_t tenantId, utility::string_t id ) const; @@ -716,7 +690,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteTenant( + pplx::task> deleteTenant( utility::string_t tenantId, utility::string_t id, boost::optional sure @@ -729,7 +703,7 @@ class DefaultApi /// /// /// - pplx::task> deleteTenantPackage( + pplx::task> deleteTenantPackage( utility::string_t tenantId, utility::string_t id ) const; @@ -743,7 +717,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteTenantUser( + pplx::task> deleteTenantUser( utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, @@ -757,7 +731,7 @@ class DefaultApi /// /// /// - pplx::task> deleteUserBadge( + pplx::task> deleteUserBadge( utility::string_t tenantId, utility::string_t id ) const; @@ -770,7 +744,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteVote( + pplx::task> deleteVote( utility::string_t tenantId, utility::string_t id, boost::optional editKey @@ -785,7 +759,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> flagComment( + pplx::task> flagComment( utility::string_t tenantId, utility::string_t id, boost::optional userId, @@ -803,7 +777,7 @@ class DefaultApi /// (optional, default to new SORT_DIR()) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getAuditLogs( + pplx::task> getAuditLogs( utility::string_t tenantId, boost::optional limit, boost::optional skip, @@ -819,7 +793,7 @@ class DefaultApi /// /// /// - pplx::task> getCachedNotificationCount( + pplx::task> getCachedNotificationCount( utility::string_t tenantId, utility::string_t id ) const; @@ -831,7 +805,7 @@ class DefaultApi /// /// /// - pplx::task> getComment( + pplx::task> getComment( utility::string_t tenantId, utility::string_t id ) const; @@ -858,7 +832,7 @@ class DefaultApi /// (optional, default to new SortDirections()) /// (optional, default to 0L) /// (optional, default to 0L) - pplx::task> getComments( + pplx::task> getComments( utility::string_t tenantId, boost::optional page, boost::optional limit, @@ -907,7 +881,7 @@ class DefaultApi /// /// /// - pplx::task> getEmailTemplate( + pplx::task> getEmailTemplate( utility::string_t tenantId, utility::string_t id ) const; @@ -918,7 +892,7 @@ class DefaultApi /// /// /// - pplx::task> getEmailTemplateDefinitions( + pplx::task> getEmailTemplateDefinitions( utility::string_t tenantId ) const; /// @@ -930,7 +904,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getEmailTemplateRenderErrors( + pplx::task> getEmailTemplateRenderErrors( utility::string_t tenantId, utility::string_t id, boost::optional skip @@ -943,7 +917,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getEmailTemplates( + pplx::task> getEmailTemplates( utility::string_t tenantId, boost::optional skip ) const; @@ -957,7 +931,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0) /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) - pplx::task> getFeedPosts( + pplx::task> getFeedPosts( utility::string_t tenantId, boost::optional afterId, boost::optional limit, @@ -971,7 +945,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getHashTags( + pplx::task> getHashTags( utility::string_t tenantId, boost::optional page ) const; @@ -983,7 +957,7 @@ class DefaultApi /// /// /// - pplx::task> getModerator( + pplx::task> getModerator( utility::string_t tenantId, utility::string_t id ) const; @@ -995,7 +969,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getModerators( + pplx::task> getModerators( utility::string_t tenantId, boost::optional skip ) const; @@ -1011,7 +985,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getNotificationCount( + pplx::task> getNotificationCount( utility::string_t tenantId, boost::optional userId, boost::optional urlId, @@ -1032,7 +1006,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getNotifications( + pplx::task> getNotifications( utility::string_t tenantId, boost::optional userId, boost::optional urlId, @@ -1076,7 +1050,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getPendingWebhookEventCount( + pplx::task> getPendingWebhookEventCount( utility::string_t tenantId, boost::optional commentId, boost::optional externalId, @@ -1099,7 +1073,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getPendingWebhookEvents( + pplx::task> getPendingWebhookEvents( utility::string_t tenantId, boost::optional commentId, boost::optional externalId, @@ -1117,7 +1091,7 @@ class DefaultApi /// /// /// - pplx::task> getQuestionConfig( + pplx::task> getQuestionConfig( utility::string_t tenantId, utility::string_t id ) const; @@ -1129,7 +1103,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getQuestionConfigs( + pplx::task> getQuestionConfigs( utility::string_t tenantId, boost::optional skip ) const; @@ -1141,7 +1115,7 @@ class DefaultApi /// /// /// - pplx::task> getQuestionResult( + pplx::task> getQuestionResult( utility::string_t tenantId, utility::string_t id ) const; @@ -1158,7 +1132,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getQuestionResults( + pplx::task> getQuestionResults( utility::string_t tenantId, boost::optional urlId, boost::optional userId, @@ -1223,7 +1197,7 @@ class DefaultApi /// /// /// - pplx::task> getTenant( + pplx::task> getTenant( utility::string_t tenantId, utility::string_t id ) const; @@ -1238,7 +1212,7 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getTenantDailyUsages( + pplx::task> getTenantDailyUsages( utility::string_t tenantId, boost::optional yearNumber, boost::optional monthNumber, @@ -1253,7 +1227,7 @@ class DefaultApi /// /// /// - pplx::task> getTenantPackage( + pplx::task> getTenantPackage( utility::string_t tenantId, utility::string_t id ) const; @@ -1265,7 +1239,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getTenantPackages( + pplx::task> getTenantPackages( utility::string_t tenantId, boost::optional skip ) const; @@ -1277,7 +1251,7 @@ class DefaultApi /// /// /// - pplx::task> getTenantUser( + pplx::task> getTenantUser( utility::string_t tenantId, utility::string_t id ) const; @@ -1289,7 +1263,7 @@ class DefaultApi /// /// /// (optional, default to 0.0) - pplx::task> getTenantUsers( + pplx::task> getTenantUsers( utility::string_t tenantId, boost::optional skip ) const; @@ -1302,7 +1276,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) - pplx::task> getTenants( + pplx::task> getTenants( utility::string_t tenantId, boost::optional meta, boost::optional skip @@ -1316,7 +1290,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getTicket( + pplx::task> getTicket( utility::string_t tenantId, utility::string_t id, boost::optional userId @@ -1332,7 +1306,7 @@ class DefaultApi /// (optional, default to 0.0) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getTickets( + pplx::task> getTickets( utility::string_t tenantId, boost::optional userId, boost::optional state, @@ -1347,7 +1321,7 @@ class DefaultApi /// /// /// - pplx::task> getUser( + pplx::task> getUser( utility::string_t tenantId, utility::string_t id ) const; @@ -1359,7 +1333,7 @@ class DefaultApi /// /// /// - pplx::task> getUserBadge( + pplx::task> getUserBadge( utility::string_t tenantId, utility::string_t id ) const; @@ -1371,7 +1345,7 @@ class DefaultApi /// /// /// - pplx::task> getUserBadgeProgressById( + pplx::task> getUserBadgeProgressById( utility::string_t tenantId, utility::string_t id ) const; @@ -1383,7 +1357,7 @@ class DefaultApi /// /// /// - pplx::task> getUserBadgeProgressByUserId( + pplx::task> getUserBadgeProgressByUserId( utility::string_t tenantId, utility::string_t userId ) const; @@ -1397,7 +1371,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getUserBadgeProgressList( + pplx::task> getUserBadgeProgressList( utility::string_t tenantId, boost::optional userId, boost::optional limit, @@ -1416,7 +1390,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to 0.0) /// (optional, default to 0.0) - pplx::task> getUserBadges( + pplx::task> getUserBadges( utility::string_t tenantId, boost::optional userId, boost::optional badgeId, @@ -1433,7 +1407,7 @@ class DefaultApi /// /// /// - pplx::task> getVotes( + pplx::task> getVotes( utility::string_t tenantId, utility::string_t urlId ) const; @@ -1447,7 +1421,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getVotesForUser( + pplx::task> getVotesForUser( utility::string_t tenantId, utility::string_t urlId, boost::optional userId, @@ -1476,7 +1450,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional) - pplx::task> patchHashTag( + pplx::task> patchHashTag( utility::string_t tag, boost::optional tenantId, boost::optional> updateHashTagBody @@ -1550,7 +1524,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> renderEmailTemplate( + pplx::task> renderEmailTemplate( utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody, boost::optional locale @@ -1564,7 +1538,7 @@ class DefaultApi /// /// /// - pplx::task> replaceTenantPackage( + pplx::task> replaceTenantPackage( utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody @@ -1579,7 +1553,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> replaceTenantUser( + pplx::task> replaceTenantUser( utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody, @@ -1597,7 +1571,7 @@ class DefaultApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to false) - pplx::task> saveComment( + pplx::task> saveComment( utility::string_t tenantId, std::shared_ptr createCommentParams, boost::optional isLive, @@ -1634,7 +1608,7 @@ class DefaultApi /// /// /// - pplx::task> sendInvite( + pplx::task> sendInvite( utility::string_t tenantId, utility::string_t id, utility::string_t fromName @@ -1648,7 +1622,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> sendLoginLink( + pplx::task> sendLoginLink( utility::string_t tenantId, utility::string_t id, boost::optional redirectURL @@ -1664,7 +1638,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unBlockUserFromComment( + pplx::task> unBlockUserFromComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams, @@ -1681,7 +1655,7 @@ class DefaultApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unFlagComment( + pplx::task> unFlagComment( utility::string_t tenantId, utility::string_t id, boost::optional userId, @@ -1699,7 +1673,7 @@ class DefaultApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to false) - pplx::task> updateComment( + pplx::task> updateComment( utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams, @@ -1716,7 +1690,7 @@ class DefaultApi /// /// /// - pplx::task> updateEmailTemplate( + pplx::task> updateEmailTemplate( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody @@ -1730,7 +1704,7 @@ class DefaultApi /// /// /// - pplx::task> updateFeedPost( + pplx::task> updateFeedPost( utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost @@ -1744,7 +1718,7 @@ class DefaultApi /// /// /// - pplx::task> updateModerator( + pplx::task> updateModerator( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody @@ -1759,7 +1733,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateNotification( + pplx::task> updateNotification( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody, @@ -1774,7 +1748,7 @@ class DefaultApi /// /// /// - pplx::task> updateQuestionConfig( + pplx::task> updateQuestionConfig( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody @@ -1788,7 +1762,7 @@ class DefaultApi /// /// /// - pplx::task> updateQuestionResult( + pplx::task> updateQuestionResult( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody @@ -1818,7 +1792,7 @@ class DefaultApi /// /// /// - pplx::task> updateTenant( + pplx::task> updateTenant( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody @@ -1832,7 +1806,7 @@ class DefaultApi /// /// /// - pplx::task> updateTenantPackage( + pplx::task> updateTenantPackage( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody @@ -1847,7 +1821,7 @@ class DefaultApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateTenantUser( + pplx::task> updateTenantUser( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody, @@ -1862,7 +1836,7 @@ class DefaultApi /// /// /// - pplx::task> updateUserBadge( + pplx::task> updateUserBadge( utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams diff --git a/client/include/FastCommentsClient/api/ModerationApi.h b/client/include/FastCommentsClient/api/ModerationApi.h index 2b3eca3..6df1ae7 100644 --- a/client/include/FastCommentsClient/api/ModerationApi.h +++ b/client/include/FastCommentsClient/api/ModerationApi.h @@ -22,54 +22,47 @@ #include "FastCommentsClient/ApiClient.h" +#include "FastCommentsClient/model/APIEmptyResponse.h" +#include "FastCommentsClient/model/APIError.h" +#include "FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h" #include "FastCommentsClient/model/AdjustCommentVotesParams.h" +#include "FastCommentsClient/model/AdjustVotesResponse.h" +#include "FastCommentsClient/model/AwardUserBadgeResponse.h" +#include "FastCommentsClient/model/BanUserFromCommentResult.h" #include "FastCommentsClient/model/BanUserUndoParams.h" #include "FastCommentsClient/model/BulkPreBanParams.h" +#include "FastCommentsClient/model/BulkPreBanSummary.h" #include "FastCommentsClient/model/CommentsByIdsParams.h" -#include "FastCommentsClient/model/DeleteModerationVoteResponse.h" -#include "FastCommentsClient/model/GetApiCommentsResponse.h" -#include "FastCommentsClient/model/GetApiExportStatusResponse.h" -#include "FastCommentsClient/model/GetApiIdsResponse.h" -#include "FastCommentsClient/model/GetBanUsersFromCommentResponse.h" -#include "FastCommentsClient/model/GetCommentBanStatusResponse_1.h" -#include "FastCommentsClient/model/GetCommentChildrenResponse.h" -#include "FastCommentsClient/model/GetCountResponse.h" -#include "FastCommentsClient/model/GetCountsResponse.h" -#include "FastCommentsClient/model/GetLogsResponse.h" -#include "FastCommentsClient/model/GetManualBadgesForUserResponse.h" -#include "FastCommentsClient/model/GetManualBadgesResponse.h" -#include "FastCommentsClient/model/GetModerationCommentResponse.h" -#include "FastCommentsClient/model/GetModerationCommentTextResponse.h" -#include "FastCommentsClient/model/GetPreBanSummaryResponse.h" -#include "FastCommentsClient/model/GetSearchCommentsSummaryResponse.h" -#include "FastCommentsClient/model/GetSearchPagesResponse.h" -#include "FastCommentsClient/model/GetSearchSitesResponse.h" -#include "FastCommentsClient/model/GetSearchSuggestResponse.h" -#include "FastCommentsClient/model/GetSearchUsersResponse.h" -#include "FastCommentsClient/model/GetTrustFactorResponse.h" -#include "FastCommentsClient/model/GetUserBanPreferenceResponse.h" -#include "FastCommentsClient/model/GetUserInternalProfileResponse_1.h" -#include "FastCommentsClient/model/PostAdjustCommentVotesResponse.h" -#include "FastCommentsClient/model/PostApiExportResponse.h" -#include "FastCommentsClient/model/PostBanUserFromCommentResponse.h" -#include "FastCommentsClient/model/PostBanUserUndoResponse.h" -#include "FastCommentsClient/model/PostBulkPreBanSummaryResponse.h" -#include "FastCommentsClient/model/PostCommentsByIdsResponse.h" -#include "FastCommentsClient/model/PostFlagCommentResponse.h" +#include "FastCommentsClient/model/GetBannedUsersCountResponse.h" +#include "FastCommentsClient/model/GetBannedUsersFromCommentResponse.h" +#include "FastCommentsClient/model/GetCommentBanStatusResponse.h" +#include "FastCommentsClient/model/GetCommentTextResponse.h" +#include "FastCommentsClient/model/GetTenantManualBadgesResponse.h" +#include "FastCommentsClient/model/GetUserInternalProfileResponse.h" +#include "FastCommentsClient/model/GetUserManualBadgesResponse.h" +#include "FastCommentsClient/model/GetUserTrustFactorResponse.h" +#include "FastCommentsClient/model/ModerationAPIChildCommentsResponse.h" +#include "FastCommentsClient/model/ModerationAPICommentResponse.h" +#include "FastCommentsClient/model/ModerationAPICountCommentsResponse.h" +#include "FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h" +#include "FastCommentsClient/model/ModerationAPIGetCommentsResponse.h" +#include "FastCommentsClient/model/ModerationAPIGetLogsResponse.h" +#include "FastCommentsClient/model/ModerationCommentSearchResponse.h" +#include "FastCommentsClient/model/ModerationExportResponse.h" +#include "FastCommentsClient/model/ModerationExportStatusResponse.h" +#include "FastCommentsClient/model/ModerationPageSearchResponse.h" +#include "FastCommentsClient/model/ModerationSiteSearchResponse.h" +#include "FastCommentsClient/model/ModerationSuggestResponse.h" +#include "FastCommentsClient/model/ModerationUserSearchResponse.h" #include "FastCommentsClient/model/PostRemoveCommentResponse.h" -#include "FastCommentsClient/model/PostRestoreDeletedCommentResponse.h" -#include "FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h" -#include "FastCommentsClient/model/PostSetCommentReviewStatusResponse.h" -#include "FastCommentsClient/model/PostSetCommentSpamStatusResponse.h" -#include "FastCommentsClient/model/PostSetCommentTextResponse.h" -#include "FastCommentsClient/model/PostUnFlagCommentResponse.h" -#include "FastCommentsClient/model/PostVoteResponse.h" -#include "FastCommentsClient/model/PutAwardBadgeResponse.h" -#include "FastCommentsClient/model/PutCloseThreadResponse.h" -#include "FastCommentsClient/model/PutRemoveBadgeResponse.h" -#include "FastCommentsClient/model/PutReopenThreadResponse.h" +#include "FastCommentsClient/model/PreBanSummary.h" +#include "FastCommentsClient/model/RemoveUserBadgeResponse.h" +#include "FastCommentsClient/model/SetCommentApprovedResponse.h" #include "FastCommentsClient/model/SetCommentTextParams.h" -#include "FastCommentsClient/model/SetTrustFactorResponse.h" +#include "FastCommentsClient/model/SetCommentTextResponse.h" +#include "FastCommentsClient/model/SetUserTrustFactorResponse.h" +#include "FastCommentsClient/model/VoteDeleteResponse.h" +#include "FastCommentsClient/model/VoteResponse.h" #include #include @@ -101,7 +94,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteModerationVote( + pplx::task> deleteModerationVote( utility::string_t commentId, utility::string_t voteId, boost::optional broadcastId, @@ -124,7 +117,7 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getApiComments( + pplx::task> getApiComments( boost::optional page, boost::optional count, boost::optional textSearch, @@ -145,7 +138,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getApiExportStatus( + pplx::task> getApiExportStatus( boost::optional batchJobId, boost::optional tenantId, boost::optional sso @@ -164,7 +157,7 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getApiIds( + pplx::task> getApiIds( boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, @@ -183,7 +176,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getBanUsersFromComment( + pplx::task> getBanUsersFromComment( utility::string_t commentId, boost::optional tenantId, boost::optional sso @@ -197,7 +190,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentBanStatus( + pplx::task> getCommentBanStatus( utility::string_t commentId, boost::optional tenantId, boost::optional sso @@ -211,7 +204,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentChildren( + pplx::task> getCommentChildren( utility::string_t commentId, boost::optional tenantId, boost::optional sso @@ -229,7 +222,7 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCount( + pplx::task> getCount( boost::optional textSearch, boost::optional byIPFromComment, boost::optional filter, @@ -246,7 +239,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCounts( + pplx::task> getCounts( boost::optional tenantId, boost::optional sso ) const; @@ -259,7 +252,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getLogs( + pplx::task> getLogs( utility::string_t commentId, boost::optional tenantId, boost::optional sso @@ -272,7 +265,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getManualBadges( + pplx::task> getManualBadges( boost::optional tenantId, boost::optional sso ) const; @@ -286,7 +279,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getManualBadgesForUser( + pplx::task> getManualBadgesForUser( boost::optional badgesUserId, boost::optional commentId, boost::optional tenantId, @@ -303,7 +296,7 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getModerationComment( + pplx::task> getModerationComment( utility::string_t commentId, boost::optional includeEmail, boost::optional includeIP, @@ -319,7 +312,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getModerationCommentText( + pplx::task> getModerationCommentText( utility::string_t commentId, boost::optional tenantId, boost::optional sso @@ -336,7 +329,7 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getPreBanSummary( + pplx::task> getPreBanSummary( utility::string_t commentId, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, @@ -355,7 +348,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getSearchCommentsSummary( + pplx::task> getSearchCommentsSummary( boost::optional value, boost::optional filters, boost::optional searchFilters, @@ -371,7 +364,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getSearchPages( + pplx::task> getSearchPages( boost::optional value, boost::optional tenantId, boost::optional sso @@ -385,7 +378,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getSearchSites( + pplx::task> getSearchSites( boost::optional value, boost::optional tenantId, boost::optional sso @@ -399,7 +392,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getSearchSuggest( + pplx::task> getSearchSuggest( boost::optional textSearch, boost::optional tenantId, boost::optional sso @@ -413,7 +406,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getSearchUsers( + pplx::task> getSearchUsers( boost::optional value, boost::optional tenantId, boost::optional sso @@ -427,7 +420,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getTrustFactor( + pplx::task> getTrustFactor( boost::optional userId, boost::optional tenantId, boost::optional sso @@ -440,7 +433,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserBanPreference( + pplx::task> getUserBanPreference( boost::optional tenantId, boost::optional sso ) const; @@ -453,7 +446,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserInternalProfile( + pplx::task> getUserInternalProfile( boost::optional commentId, boost::optional tenantId, boost::optional sso @@ -469,7 +462,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postAdjustCommentVotes( + pplx::task> postAdjustCommentVotes( utility::string_t commentId, std::shared_ptr adjustCommentVotesParams, boost::optional broadcastId, @@ -489,7 +482,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postApiExport( + pplx::task> postApiExport( boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, @@ -515,7 +508,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postBanUserFromComment( + pplx::task> postBanUserFromComment( utility::string_t commentId, boost::optional banEmail, boost::optional banEmailDomain, @@ -537,7 +530,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postBanUserUndo( + pplx::task> postBanUserUndo( std::shared_ptr banUserUndoParams, boost::optional tenantId, boost::optional sso @@ -554,7 +547,7 @@ class ModerationApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postBulkPreBanSummary( + pplx::task> postBulkPreBanSummary( std::shared_ptr bulkPreBanParams, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, @@ -571,7 +564,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postCommentsByIds( + pplx::task> postCommentsByIds( std::shared_ptr commentsByIdsParams, boost::optional tenantId, boost::optional sso @@ -586,7 +579,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postFlagComment( + pplx::task> postFlagComment( utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, @@ -618,7 +611,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postRestoreDeletedComment( + pplx::task> postRestoreDeletedComment( utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, @@ -635,7 +628,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postSetCommentApprovalStatus( + pplx::task> postSetCommentApprovalStatus( utility::string_t commentId, boost::optional approved, boost::optional broadcastId, @@ -653,7 +646,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postSetCommentReviewStatus( + pplx::task> postSetCommentReviewStatus( utility::string_t commentId, boost::optional reviewed, boost::optional broadcastId, @@ -672,7 +665,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postSetCommentSpamStatus( + pplx::task> postSetCommentSpamStatus( utility::string_t commentId, boost::optional spam, boost::optional permNotSpam, @@ -691,7 +684,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postSetCommentText( + pplx::task> postSetCommentText( utility::string_t commentId, std::shared_ptr setCommentTextParams, boost::optional broadcastId, @@ -708,7 +701,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postUnFlagComment( + pplx::task> postUnFlagComment( utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, @@ -725,7 +718,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> postVote( + pplx::task> postVote( utility::string_t commentId, boost::optional direction, boost::optional broadcastId, @@ -744,7 +737,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> putAwardBadge( + pplx::task> putAwardBadge( utility::string_t badgeId, boost::optional userId, boost::optional commentId, @@ -761,7 +754,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> putCloseThread( + pplx::task> putCloseThread( utility::string_t urlId, boost::optional tenantId, boost::optional sso @@ -778,7 +771,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> putRemoveBadge( + pplx::task> putRemoveBadge( utility::string_t badgeId, boost::optional userId, boost::optional commentId, @@ -795,7 +788,7 @@ class ModerationApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> putReopenThread( + pplx::task> putReopenThread( utility::string_t urlId, boost::optional tenantId, boost::optional sso @@ -810,7 +803,7 @@ class ModerationApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> setTrustFactor( + pplx::task> setTrustFactor( boost::optional userId, boost::optional trustFactor, boost::optional tenantId, diff --git a/client/include/FastCommentsClient/api/PublicApi.h b/client/include/FastCommentsClient/api/PublicApi.h index 91b82f6..29db646 100644 --- a/client/include/FastCommentsClient/api/PublicApi.h +++ b/client/include/FastCommentsClient/api/PublicApi.h @@ -24,68 +24,58 @@ #include "FastCommentsClient/model/APIEmptyResponse.h" #include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/BlockFromCommentPublicResponse.h" -#include "FastCommentsClient/model/CheckedCommentsForBlockedResponse.h" +#include "FastCommentsClient/model/BlockSuccess.h" +#include "FastCommentsClient/model/ChangeCommentPinStatusResponse.h" +#include "FastCommentsClient/model/CheckBlockedCommentsResponse.h" #include "FastCommentsClient/model/CommentData.h" #include "FastCommentsClient/model/CommentTextUpdateRequest.h" -#include "FastCommentsClient/model/CreateCommentPublicResponse.h" #include "FastCommentsClient/model/CreateFeedPostParams.h" -#include "FastCommentsClient/model/CreateFeedPostPublicResponse.h" -#include "FastCommentsClient/model/CreateV1PageReactResponse.h" -#include "FastCommentsClient/model/CreateV2PageReactResponse.h" -#include "FastCommentsClient/model/DeleteCommentPublicResponse.h" -#include "FastCommentsClient/model/DeleteCommentVoteResponse.h" +#include "FastCommentsClient/model/CreateFeedPostResponse.h" +#include "FastCommentsClient/model/CreateV1PageReact.h" #include "FastCommentsClient/model/DeleteFeedPostPublicResponse.h" -#include "FastCommentsClient/model/DeleteV1PageReactResponse.h" -#include "FastCommentsClient/model/DeleteV2PageReactResponse.h" -#include "FastCommentsClient/model/FlagCommentPublicResponse.h" -#include "FastCommentsClient/model/GetCommentTextResponse_1.h" -#include "FastCommentsClient/model/GetCommentVoteUserNamesResponse.h" -#include "FastCommentsClient/model/GetCommentsForUserResponse_1.h" -#include "FastCommentsClient/model/GetCommentsPublicResponse.h" -#include "FastCommentsClient/model/GetEventLogResponse_1.h" -#include "FastCommentsClient/model/GetFeedPostsPublicResponse.h" -#include "FastCommentsClient/model/GetFeedPostsStatsResponse.h" -#include "FastCommentsClient/model/GetGifLargeResponse.h" +#include "FastCommentsClient/model/FeedPostsStatsResponse.h" +#include "FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h" +#include "FastCommentsClient/model/GetCommentsForUserResponse.h" +#include "FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h" +#include "FastCommentsClient/model/GetEventLogResponse.h" #include "FastCommentsClient/model/GetGifsSearchResponse.h" #include "FastCommentsClient/model/GetGifsTrendingResponse.h" -#include "FastCommentsClient/model/GetGlobalEventLogResponse.h" -#include "FastCommentsClient/model/GetOfflineUsersResponse.h" -#include "FastCommentsClient/model/GetOnlineUsersResponse.h" -#include "FastCommentsClient/model/GetPagesPublicResponse.h" -#include "FastCommentsClient/model/GetTranslationsResponse_1.h" -#include "FastCommentsClient/model/GetUserNotificationCountResponse_1.h" -#include "FastCommentsClient/model/GetUserNotificationsResponse.h" -#include "FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h" -#include "FastCommentsClient/model/GetUserReactsPublicResponse.h" -#include "FastCommentsClient/model/GetUsersInfoResponse.h" -#include "FastCommentsClient/model/GetV1PageLikesResponse.h" -#include "FastCommentsClient/model/GetV2PageReactUsersResponse_1.h" -#include "FastCommentsClient/model/GetV2PageReactsResponse.h" +#include "FastCommentsClient/model/GetMyNotificationsResponse.h" +#include "FastCommentsClient/model/GetPublicPagesResponse.h" +#include "FastCommentsClient/model/GetTranslationsResponse.h" +#include "FastCommentsClient/model/GetUserNotificationCountResponse.h" +#include "FastCommentsClient/model/GetUserPresenceStatusesResponse.h" +#include "FastCommentsClient/model/GetV1PageLikes.h" +#include "FastCommentsClient/model/GetV2PageReactUsersResponse.h" +#include "FastCommentsClient/model/GetV2PageReacts.h" +#include "FastCommentsClient/model/GifGetLargeResponse.h" #include "FastCommentsClient/HttpContent.h" -#include "FastCommentsClient/model/LockCommentResponse.h" +#include "FastCommentsClient/model/PageUsersInfoResponse.h" +#include "FastCommentsClient/model/PageUsersOfflineResponse.h" +#include "FastCommentsClient/model/PageUsersOnlineResponse.h" #include "FastCommentsClient/model/PagesSortBy.h" -#include "FastCommentsClient/model/PinCommentResponse.h" +#include "FastCommentsClient/model/PublicAPIDeleteCommentResponse.h" +#include "FastCommentsClient/model/PublicAPIGetCommentTextResponse.h" +#include "FastCommentsClient/model/PublicAPISetCommentTextResponse.h" #include "FastCommentsClient/model/PublicBlockFromCommentParams.h" +#include "FastCommentsClient/model/PublicFeedPostsResponse.h" #include "FastCommentsClient/model/ReactBodyParams.h" -#include "FastCommentsClient/model/ReactFeedPostPublicResponse.h" -#include "FastCommentsClient/model/ResetUserNotificationCountResponse.h" -#include "FastCommentsClient/model/ResetUserNotificationsResponse_1.h" -#include "FastCommentsClient/model/SearchUsersResponse_1.h" -#include "FastCommentsClient/model/SetCommentTextResponse_1.h" +#include "FastCommentsClient/model/ReactFeedPostResponse.h" +#include "FastCommentsClient/model/ResetUserNotificationsResponse.h" +#include "FastCommentsClient/model/SaveCommentsResponseWithPresence.h" +#include "FastCommentsClient/model/SearchUsersResult.h" #include "FastCommentsClient/model/SizePreset.h" #include "FastCommentsClient/model/SortDirections.h" -#include "FastCommentsClient/model/UnBlockCommentPublicResponse.h" -#include "FastCommentsClient/model/UnLockCommentResponse.h" -#include "FastCommentsClient/model/UnPinCommentResponse.h" +#include "FastCommentsClient/model/UnblockSuccess.h" #include "FastCommentsClient/model/UpdateFeedPostParams.h" -#include "FastCommentsClient/model/UpdateFeedPostPublicResponse.h" #include "FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h" #include "FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h" #include "FastCommentsClient/model/UpdateUserNotificationStatusResponse.h" #include "FastCommentsClient/model/UploadImageResponse.h" +#include "FastCommentsClient/model/UserReactsResponse.h" #include "FastCommentsClient/model/VoteBodyParams.h" -#include "FastCommentsClient/model/VoteCommentResponse.h" +#include "FastCommentsClient/model/VoteDeleteResponse.h" +#include "FastCommentsClient/model/VoteResponse.h" #include #include #include @@ -117,7 +107,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> blockFromCommentPublic( + pplx::task> blockFromCommentPublic( utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, @@ -132,7 +122,7 @@ class PublicApi /// /// A comma separated list of comment ids. /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> checkedCommentsForBlocked( + pplx::task> checkedCommentsForBlocked( utility::string_t tenantId, utility::string_t commentIds, boost::optional sso @@ -149,7 +139,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createCommentPublic( + pplx::task> createCommentPublic( utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, @@ -167,7 +157,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createFeedPostPublic( + pplx::task> createFeedPostPublic( utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, @@ -182,7 +172,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createV1PageReact( + pplx::task> createV1PageReact( utility::string_t tenantId, utility::string_t urlId, boost::optional title @@ -197,7 +187,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> createV2PageReact( + pplx::task> createV2PageReact( utility::string_t tenantId, utility::string_t urlId, utility::string_t id, @@ -214,7 +204,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteCommentPublic( + pplx::task> deleteCommentPublic( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -234,7 +224,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> deleteCommentVote( + pplx::task> deleteCommentVote( utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId, @@ -267,7 +257,7 @@ class PublicApi /// /// /// - pplx::task> deleteV1PageReact( + pplx::task> deleteV1PageReact( utility::string_t tenantId, utility::string_t urlId ) const; @@ -280,7 +270,7 @@ class PublicApi /// /// /// - pplx::task> deleteV2PageReact( + pplx::task> deleteV2PageReact( utility::string_t tenantId, utility::string_t urlId, utility::string_t id @@ -295,7 +285,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> flagCommentPublic( + pplx::task> flagCommentPublic( utility::string_t tenantId, utility::string_t commentId, bool isFlagged, @@ -311,7 +301,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentText( + pplx::task> getCommentText( utility::string_t tenantId, utility::string_t commentId, boost::optional editKey, @@ -327,7 +317,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentVoteUserNames( + pplx::task> getCommentVoteUserNames( utility::string_t tenantId, utility::string_t commentId, int32_t dir, @@ -346,7 +336,7 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - pplx::task> getCommentsForUser( + pplx::task> getCommentsForUser( boost::optional userId, boost::optional> direction, boost::optional repliesToUserId, @@ -389,7 +379,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getCommentsPublic( + pplx::task> getCommentsPublic( utility::string_t tenantId, utility::string_t urlId, boost::optional page, @@ -430,7 +420,7 @@ class PublicApi /// /// /// (optional, default to 0L) - pplx::task> getEventLog( + pplx::task> getEventLog( utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, @@ -450,7 +440,7 @@ class PublicApi /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) /// (optional, default to false) - pplx::task> getFeedPostsPublic( + pplx::task> getFeedPostsPublic( utility::string_t tenantId, boost::optional afterId, boost::optional limit, @@ -468,7 +458,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getFeedPostsStats( + pplx::task> getFeedPostsStats( utility::string_t tenantId, std::vector postIds, boost::optional sso @@ -481,7 +471,7 @@ class PublicApi /// /// /// - pplx::task> getGifLarge( + pplx::task> getGifLarge( utility::string_t tenantId, utility::string_t largeInternalURLSanitized ) const; @@ -530,7 +520,7 @@ class PublicApi /// /// /// (optional, default to 0L) - pplx::task> getGlobalEventLog( + pplx::task> getGlobalEventLog( utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, @@ -547,7 +537,7 @@ class PublicApi /// Page URL identifier (cleaned server-side). /// Cursor: pass nextAfterName from the previous response. (optional, default to utility::conversions::to_string_t("")) /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional, default to utility::conversions::to_string_t("")) - pplx::task> getOfflineUsers( + pplx::task> getOfflineUsers( utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, @@ -563,7 +553,7 @@ class PublicApi /// Page URL identifier (cleaned server-side). /// Cursor: pass nextAfterName from the previous response. (optional, default to utility::conversions::to_string_t("")) /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional, default to utility::conversions::to_string_t("")) - pplx::task> getOnlineUsers( + pplx::task> getOnlineUsers( utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, @@ -581,7 +571,7 @@ class PublicApi /// Optional case-insensitive title prefix filter. (optional, default to utility::conversions::to_string_t("")) /// Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional, default to new PagesSortBy()) /// If true, only return pages with at least one comment. (optional, default to false) - pplx::task> getPagesPublic( + pplx::task> getPagesPublic( utility::string_t tenantId, boost::optional cursor, boost::optional limit, @@ -599,7 +589,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to false) - pplx::task> getTranslations( + pplx::task> getTranslations( utility::string_t r_namespace, utility::string_t component, boost::optional locale, @@ -613,7 +603,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserNotificationCount( + pplx::task> getUserNotificationCount( utility::string_t tenantId, boost::optional sso ) const; @@ -635,7 +625,7 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserNotifications( + pplx::task> getUserNotifications( utility::string_t tenantId, boost::optional urlId, boost::optional pageSize, @@ -658,7 +648,7 @@ class PublicApi /// /// /// - pplx::task> getUserPresenceStatuses( + pplx::task> getUserPresenceStatuses( utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds @@ -672,7 +662,7 @@ class PublicApi /// /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> getUserReactsPublic( + pplx::task> getUserReactsPublic( utility::string_t tenantId, boost::optional> postIds, boost::optional sso @@ -685,7 +675,7 @@ class PublicApi /// /// /// Comma-delimited userIds. - pplx::task> getUsersInfo( + pplx::task> getUsersInfo( utility::string_t tenantId, utility::string_t ids ) const; @@ -697,7 +687,7 @@ class PublicApi /// /// /// - pplx::task> getV1PageLikes( + pplx::task> getV1PageLikes( utility::string_t tenantId, utility::string_t urlId ) const; @@ -710,7 +700,7 @@ class PublicApi /// /// /// - pplx::task> getV2PageReactUsers( + pplx::task> getV2PageReactUsers( utility::string_t tenantId, utility::string_t urlId, utility::string_t id @@ -723,7 +713,7 @@ class PublicApi /// /// /// - pplx::task> getV2PageReacts( + pplx::task> getV2PageReacts( utility::string_t tenantId, utility::string_t urlId ) const; @@ -737,7 +727,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> lockComment( + pplx::task> lockComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -761,7 +751,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> pinComment( + pplx::task> pinComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -779,7 +769,7 @@ class PublicApi /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> reactFeedPostPublic( + pplx::task> reactFeedPostPublic( utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams, @@ -795,7 +785,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> resetUserNotificationCount( + pplx::task> resetUserNotificationCount( utility::string_t tenantId, boost::optional sso ) const; @@ -812,7 +802,7 @@ class PublicApi /// (optional, default to false) /// (optional, default to false) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> resetUserNotifications( + pplx::task> resetUserNotifications( utility::string_t tenantId, boost::optional afterId, boost::optional afterCreatedAt, @@ -833,7 +823,7 @@ class PublicApi /// (optional, default to std::vector<std::shared_ptr<utility::string_t>>()) /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> searchUsers( + pplx::task> searchUsers( utility::string_t tenantId, utility::string_t urlId, boost::optional usernameStartsWith, @@ -853,7 +843,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> setCommentText( + pplx::task> setCommentText( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -871,7 +861,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unBlockCommentPublic( + pplx::task> unBlockCommentPublic( utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, @@ -887,7 +877,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unLockComment( + pplx::task> unLockComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -903,7 +893,7 @@ class PublicApi /// /// /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> unPinComment( + pplx::task> unPinComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, @@ -920,7 +910,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> updateFeedPostPublic( + pplx::task> updateFeedPostPublic( utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams, @@ -1010,7 +1000,7 @@ class PublicApi /// /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) - pplx::task> voteComment( + pplx::task> voteComment( utility::string_t tenantId, utility::string_t commentId, utility::string_t urlId, diff --git a/client/include/FastCommentsClient/model/AddHashTagResponse.h b/client/include/FastCommentsClient/model/AddHashTagResponse.h deleted file mode 100644 index 3930c2a..0000000 --- a/client/include/FastCommentsClient/model/AddHashTagResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * AddHashTagResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/TenantHashTag.h" -#include "FastCommentsClient/model/CreateHashTagResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantHashTag; -class CustomConfigParameters; - - -class AddHashTagResponse - : public ModelBase -{ -public: - AddHashTagResponse(); - virtual ~AddHashTagResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// AddHashTagResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getHashTag() const; - bool hashTagIsSet() const; - void unsetHashTag(); - void setHashTag(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_HashTag; - bool m_HashTagIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/AddHashTagsBulkResponse.h b/client/include/FastCommentsClient/model/AddHashTagsBulkResponse.h deleted file mode 100644 index 8545bbf..0000000 --- a/client/include/FastCommentsClient/model/AddHashTagsBulkResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * AddHashTagsBulkResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagsBulkResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagsBulkResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/BulkCreateHashTagsResponse.h" -#include "FastCommentsClient/model/BulkCreateHashTagsResponse_results_inner.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class BulkCreateHashTagsResponse_results_inner; -class CustomConfigParameters; - - -class AddHashTagsBulkResponse - : public ModelBase -{ -public: - AddHashTagsBulkResponse(); - virtual ~AddHashTagsBulkResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// AddHashTagsBulkResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getResults() const; - bool resultsIsSet() const; - void unsetResults(); - void setResults(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Results; - bool m_ResultsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AddHashTagsBulkResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse_1.h b/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse_1.h deleted file mode 100644 index 48d3ddd..0000000 --- a/client/include/FastCommentsClient/model/AggregateQuestionResultsResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * AggregateQuestionResultsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResultsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResultsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/QuestionResultAggregationOverall.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/AggregateQuestionResultsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionResultAggregationOverall; -class CustomConfigParameters; - - -class AggregateQuestionResultsResponse_1 - : public ModelBase -{ -public: - AggregateQuestionResultsResponse_1(); - virtual ~AggregateQuestionResultsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// AggregateQuestionResultsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getData() const; - bool dataIsSet() const; - void unsetData(); - void setData(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Data; - bool m_DataIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_AggregateQuestionResultsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/BlockFromCommentPublicResponse.h b/client/include/FastCommentsClient/model/BlockFromCommentPublicResponse.h deleted file mode 100644 index 148159d..0000000 --- a/client/include/FastCommentsClient/model/BlockFromCommentPublicResponse.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * BlockFromCommentPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/BlockSuccess.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class BlockFromCommentPublicResponse - : public ModelBase -{ -public: - BlockFromCommentPublicResponse(); - virtual ~BlockFromCommentPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// BlockFromCommentPublicResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getCommentStatuses() const; - bool commentStatusesIsSet() const; - void unsetCommentStatuses(); - void setCommentStatuses(std::map value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map m_CommentStatuses; - bool m_CommentStatusesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BlockFromCommentPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/BlockUserFromCommentResponse.h b/client/include/FastCommentsClient/model/BlockUserFromCommentResponse.h deleted file mode 100644 index 4b6ff6f..0000000 --- a/client/include/FastCommentsClient/model/BlockUserFromCommentResponse.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * BlockUserFromCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BlockUserFromCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_BlockUserFromCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/BlockSuccess.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class BlockUserFromCommentResponse - : public ModelBase -{ -public: - BlockUserFromCommentResponse(); - virtual ~BlockUserFromCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// BlockUserFromCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getCommentStatuses() const; - bool commentStatusesIsSet() const; - void unsetCommentStatuses(); - void setCommentStatuses(std::map value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map m_CommentStatuses; - bool m_CommentStatusesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BlockUserFromCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h b/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h deleted file mode 100644 index 51560f4..0000000 --- a/client/include/FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h +++ /dev/null @@ -1,151 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * BulkAggregateQuestionResultsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/QuestionResultAggregationOverall.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/BulkAggregateQuestionResultsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionResultAggregationOverall; -class CustomConfigParameters; - - -class BulkAggregateQuestionResultsResponse_1 - : public ModelBase -{ -public: - BulkAggregateQuestionResultsResponse_1(); - virtual ~BulkAggregateQuestionResultsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// BulkAggregateQuestionResultsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map> getData() const; - bool dataIsSet() const; - void unsetData(); - void setData(const std::map>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map> m_Data; - bool m_DataIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_BulkAggregateQuestionResultsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/ChangeTicketStateResponse_1.h b/client/include/FastCommentsClient/model/ChangeTicketStateResponse_1.h deleted file mode 100644 index 9b3e8f1..0000000 --- a/client/include/FastCommentsClient/model/ChangeTicketStateResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * ChangeTicketStateResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITicket.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/ChangeTicketStateResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITicket; -class CustomConfigParameters; - - -class ChangeTicketStateResponse_1 - : public ModelBase -{ -public: - ChangeTicketStateResponse_1(); - virtual ~ChangeTicketStateResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// ChangeTicketStateResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTicket() const; - bool ticketIsSet() const; - void unsetTicket(); - void setTicket(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Ticket; - bool m_TicketIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ChangeTicketStateResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CheckedCommentsForBlockedResponse.h b/client/include/FastCommentsClient/model/CheckedCommentsForBlockedResponse.h deleted file mode 100644 index bff34f8..0000000 --- a/client/include/FastCommentsClient/model/CheckedCommentsForBlockedResponse.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CheckedCommentsForBlockedResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CheckedCommentsForBlockedResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CheckedCommentsForBlockedResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/CheckBlockedCommentsResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class CheckedCommentsForBlockedResponse - : public ModelBase -{ -public: - CheckedCommentsForBlockedResponse(); - virtual ~CheckedCommentsForBlockedResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CheckedCommentsForBlockedResponse members - - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getCommentStatuses() const; - bool commentStatusesIsSet() const; - void unsetCommentStatuses(); - void setCommentStatuses(std::map value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::map m_CommentStatuses; - bool m_CommentStatusesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CheckedCommentsForBlockedResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h b/client/include/FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h deleted file mode 100644 index c66e7a9..0000000 --- a/client/include/FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CombineCommentsWithQuestionResultsResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CombineCommentsWithQuestionResultsResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CombineCommentsWithQuestionResultsResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CombineQuestionResultsWithCommentsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/FindCommentsByRangeResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FindCommentsByRangeResponse; -class CustomConfigParameters; - - -class CombineCommentsWithQuestionResultsResponse - : public ModelBase -{ -public: - CombineCommentsWithQuestionResultsResponse(); - virtual ~CombineCommentsWithQuestionResultsResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CombineCommentsWithQuestionResultsResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getData() const; - bool dataIsSet() const; - void unsetData(); - void setData(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Data; - bool m_DataIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CombineCommentsWithQuestionResultsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateCommentPublicResponse.h b/client/include/FastCommentsClient/model/CreateCommentPublicResponse.h deleted file mode 100644 index 55ffbae..0000000 --- a/client/include/FastCommentsClient/model/CreateCommentPublicResponse.h +++ /dev/null @@ -1,177 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateCommentPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserSessionInfo.h" -#include "FastCommentsClient/model/PublicComment.h" -#include "FastCommentsClient/model/SaveCommentsResponseWithPresence.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/Object.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PublicComment; -class UserSessionInfo; -class CustomConfigParameters; - - -class CreateCommentPublicResponse - : public ModelBase -{ -public: - CreateCommentPublicResponse(); - virtual ~CreateCommentPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateCommentPublicResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const std::shared_ptr& value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map> getModuleData() const; - bool moduleDataIsSet() const; - void unsetModuleData(); - void setModuleData(const std::map>& value); - - utility::string_t getUserIdWS() const; - bool userIdWSIsSet() const; - void unsetUserIdWS(); - void setUserIdWS(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Comment; - bool m_CommentIsSet; - - boost::optional> m_User; - - std::map> m_ModuleData; - bool m_ModuleDataIsSet; - - utility::string_t m_UserIdWS; - bool m_UserIdWSIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateCommentPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateEmailTemplateResponse_1.h b/client/include/FastCommentsClient/model/CreateEmailTemplateResponse_1.h deleted file mode 100644 index c4b8e2e..0000000 --- a/client/include/FastCommentsClient/model/CreateEmailTemplateResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateEmailTemplateResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CreateEmailTemplateResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/CustomEmailTemplate.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomEmailTemplate; -class CustomConfigParameters; - - -class CreateEmailTemplateResponse_1 - : public ModelBase -{ -public: - CreateEmailTemplateResponse_1(); - virtual ~CreateEmailTemplateResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateEmailTemplateResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getEmailTemplate() const; - bool emailTemplateIsSet() const; - void unsetEmailTemplate(); - void setEmailTemplate(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_EmailTemplate; - bool m_EmailTemplateIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateEmailTemplateResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateFeedPostPublicResponse.h b/client/include/FastCommentsClient/model/CreateFeedPostPublicResponse.h deleted file mode 100644 index d023836..0000000 --- a/client/include/FastCommentsClient/model/CreateFeedPostPublicResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateFeedPostPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CreateFeedPostResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPost.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPost; -class CustomConfigParameters; - - -class CreateFeedPostPublicResponse - : public ModelBase -{ -public: - CreateFeedPostPublicResponse(); - virtual ~CreateFeedPostPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateFeedPostPublicResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getFeedPost() const; - bool feedPostIsSet() const; - void unsetFeedPost(); - void setFeedPost(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_FeedPost; - bool m_FeedPostIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateFeedPostResponse_1.h b/client/include/FastCommentsClient/model/CreateFeedPostResponse_1.h deleted file mode 100644 index 7fafe35..0000000 --- a/client/include/FastCommentsClient/model/CreateFeedPostResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateFeedPostResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CreateFeedPostsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPost.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPost; -class CustomConfigParameters; - - -class CreateFeedPostResponse_1 - : public ModelBase -{ -public: - CreateFeedPostResponse_1(); - virtual ~CreateFeedPostResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateFeedPostResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getFeedPost() const; - bool feedPostIsSet() const; - void unsetFeedPost(); - void setFeedPost(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_FeedPost; - bool m_FeedPostIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateFeedPostResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateModeratorResponse_1.h b/client/include/FastCommentsClient/model/CreateModeratorResponse_1.h deleted file mode 100644 index 5a7ef30..0000000 --- a/client/include/FastCommentsClient/model/CreateModeratorResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateModeratorResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/Moderator.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/CreateModeratorResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class Moderator; -class CustomConfigParameters; - - -class CreateModeratorResponse_1 - : public ModelBase -{ -public: - CreateModeratorResponse_1(); - virtual ~CreateModeratorResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateModeratorResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getModerator() const; - bool moderatorIsSet() const; - void unsetModerator(); - void setModerator(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Moderator; - bool m_ModeratorIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateModeratorResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateQuestionConfigResponse_1.h b/client/include/FastCommentsClient/model/CreateQuestionConfigResponse_1.h deleted file mode 100644 index 3a4ff87..0000000 --- a/client/include/FastCommentsClient/model/CreateQuestionConfigResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateQuestionConfigResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CreateQuestionConfigResponse.h" -#include "FastCommentsClient/model/QuestionConfig.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionConfig; -class CustomConfigParameters; - - -class CreateQuestionConfigResponse_1 - : public ModelBase -{ -public: - CreateQuestionConfigResponse_1(); - virtual ~CreateQuestionConfigResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateQuestionConfigResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getQuestionConfig() const; - bool questionConfigIsSet() const; - void unsetQuestionConfig(); - void setQuestionConfig(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_QuestionConfig; - bool m_QuestionConfigIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionConfigResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateQuestionResultResponse_1.h b/client/include/FastCommentsClient/model/CreateQuestionResultResponse_1.h deleted file mode 100644 index 2e74048..0000000 --- a/client/include/FastCommentsClient/model/CreateQuestionResultResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateQuestionResultResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/CreateQuestionResultResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/QuestionResult.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionResult; -class CustomConfigParameters; - - -class CreateQuestionResultResponse_1 - : public ModelBase -{ -public: - CreateQuestionResultResponse_1(); - virtual ~CreateQuestionResultResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateQuestionResultResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getQuestionResult() const; - bool questionResultIsSet() const; - void unsetQuestionResult(); - void setQuestionResult(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_QuestionResult; - bool m_QuestionResultIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateQuestionResultResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTenantPackageResponse_1.h b/client/include/FastCommentsClient/model/CreateTenantPackageResponse_1.h deleted file mode 100644 index 2126551..0000000 --- a/client/include/FastCommentsClient/model/CreateTenantPackageResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateTenantPackageResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/TenantPackage.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/CreateTenantPackageResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantPackage; -class CustomConfigParameters; - - -class CreateTenantPackageResponse_1 - : public ModelBase -{ -public: - CreateTenantPackageResponse_1(); - virtual ~CreateTenantPackageResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateTenantPackageResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenantPackage() const; - bool tenantPackageIsSet() const; - void unsetTenantPackage(); - void setTenantPackage(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_TenantPackage; - bool m_TenantPackageIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantPackageResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTenantResponse_1.h b/client/include/FastCommentsClient/model/CreateTenantResponse_1.h deleted file mode 100644 index dcb1de1..0000000 --- a/client/include/FastCommentsClient/model/CreateTenantResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateTenantResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITenant.h" -#include "FastCommentsClient/model/CreateTenantResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITenant; -class CustomConfigParameters; - - -class CreateTenantResponse_1 - : public ModelBase -{ -public: - CreateTenantResponse_1(); - virtual ~CreateTenantResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateTenantResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenant() const; - bool tenantIsSet() const; - void unsetTenant(); - void setTenant(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Tenant; - bool m_TenantIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTenantUserResponse_1.h b/client/include/FastCommentsClient/model/CreateTenantUserResponse_1.h deleted file mode 100644 index 3cde809..0000000 --- a/client/include/FastCommentsClient/model/CreateTenantUserResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateTenantUserResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/User.h" -#include -#include "FastCommentsClient/model/CreateTenantUserResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class User; -class CustomConfigParameters; - - -class CreateTenantUserResponse_1 - : public ModelBase -{ -public: - CreateTenantUserResponse_1(); - virtual ~CreateTenantUserResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateTenantUserResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenantUser() const; - bool tenantUserIsSet() const; - void unsetTenantUser(); - void setTenantUser(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_TenantUser; - bool m_TenantUserIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTenantUserResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateTicketResponse_1.h b/client/include/FastCommentsClient/model/CreateTicketResponse_1.h deleted file mode 100644 index a059c87..0000000 --- a/client/include/FastCommentsClient/model/CreateTicketResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateTicketResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITicket.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/CreateTicketResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITicket; -class CustomConfigParameters; - - -class CreateTicketResponse_1 - : public ModelBase -{ -public: - CreateTicketResponse_1(); - virtual ~CreateTicketResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateTicketResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTicket() const; - bool ticketIsSet() const; - void unsetTicket(); - void setTicket(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Ticket; - bool m_TicketIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateTicketResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateUserBadgeResponse.h b/client/include/FastCommentsClient/model/CreateUserBadgeResponse.h deleted file mode 100644 index 9fabc67..0000000 --- a/client/include/FastCommentsClient/model/CreateUserBadgeResponse.h +++ /dev/null @@ -1,156 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateUserBadgeResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadgeResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadgeResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserBadge.h" -#include "FastCommentsClient/model/APICreateUserBadgeResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadge; -class CustomConfigParameters; - - -class CreateUserBadgeResponse - : public ModelBase -{ -public: - CreateUserBadgeResponse(); - virtual ~CreateUserBadgeResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateUserBadgeResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getUserBadge() const; - bool userBadgeIsSet() const; - void unsetUserBadge(); - void setUserBadge(const std::shared_ptr& value); - - std::vector getNotes() const; - bool notesIsSet() const; - void unsetNotes(); - void setNotes(const std::vector& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_UserBadge; - bool m_UserBadgeIsSet; - - std::vector m_Notes; - bool m_NotesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateUserBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateV1PageReactResponse.h b/client/include/FastCommentsClient/model/CreateV1PageReactResponse.h deleted file mode 100644 index 0bf1e9c..0000000 --- a/client/include/FastCommentsClient/model/CreateV1PageReactResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateV1PageReactResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV1PageReactResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV1PageReactResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/CreateV1PageReact.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class CreateV1PageReactResponse - : public ModelBase -{ -public: - CreateV1PageReactResponse(); - virtual ~CreateV1PageReactResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateV1PageReactResponse members - - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - utility::string_t m_Code; - bool m_CodeIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV1PageReactResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateV2PageReactResponse.h b/client/include/FastCommentsClient/model/CreateV2PageReactResponse.h deleted file mode 100644 index 6216012..0000000 --- a/client/include/FastCommentsClient/model/CreateV2PageReactResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateV2PageReactResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV2PageReactResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV2PageReactResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/CreateV1PageReact.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class CreateV2PageReactResponse - : public ModelBase -{ -public: - CreateV2PageReactResponse(); - virtual ~CreateV2PageReactResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateV2PageReactResponse members - - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - utility::string_t m_Code; - bool m_CodeIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateV2PageReactResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/CreateVoteResponse.h b/client/include/FastCommentsClient/model/CreateVoteResponse.h deleted file mode 100644 index 580a603..0000000 --- a/client/include/FastCommentsClient/model/CreateVoteResponse.h +++ /dev/null @@ -1,171 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * CreateVoteResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_CreateVoteResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_CreateVoteResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/VoteResponseUser.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/VoteResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class VoteResponseUser; -class CustomConfigParameters; - - -class CreateVoteResponse - : public ModelBase -{ -public: - CreateVoteResponse(); - virtual ~CreateVoteResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// CreateVoteResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getVoteId() const; - bool voteIdIsSet() const; - void unsetVoteId(); - void setVoteId(const utility::string_t& value); - - bool isIsVerified() const; - bool isVerifiedIsSet() const; - void unsetIsVerified(); - void setIsVerified(bool value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - utility::string_t getEditKey() const; - bool editKeyIsSet() const; - void unsetEditKey(); - void setEditKey(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_VoteId; - bool m_VoteIdIsSet; - - bool m_IsVerified; - bool m_IsVerifiedIsSet; - - std::shared_ptr m_User; - bool m_UserIsSet; - - utility::string_t m_EditKey; - bool m_EditKeyIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_CreateVoteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteCommentPublicResponse.h b/client/include/FastCommentsClient/model/DeleteCommentPublicResponse.h deleted file mode 100644 index 826d3a3..0000000 --- a/client/include/FastCommentsClient/model/DeleteCommentPublicResponse.h +++ /dev/null @@ -1,155 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteCommentPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/DeletedCommentResultComment.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/PublicAPIDeleteCommentResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class DeletedCommentResultComment; -class CustomConfigParameters; - - -class DeleteCommentPublicResponse - : public ModelBase -{ -public: - DeleteCommentPublicResponse(); - virtual ~DeleteCommentPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteCommentPublicResponse members - - - std::shared_ptr getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const std::shared_ptr& value); - - bool isHardRemoved() const; - bool hardRemovedIsSet() const; - void unsetHardRemoved(); - void setHardRemoved(bool value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Comment; - bool m_CommentIsSet; - - bool m_HardRemoved; - bool m_HardRemovedIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteCommentResponse.h b/client/include/FastCommentsClient/model/DeleteCommentResponse.h deleted file mode 100644 index f660bb1..0000000 --- a/client/include/FastCommentsClient/model/DeleteCommentResponse.h +++ /dev/null @@ -1,146 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/DeleteCommentAction.h" -#include "FastCommentsClient/model/DeleteCommentResult.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteCommentResponse - : public ModelBase -{ -public: - DeleteCommentResponse(); - virtual ~DeleteCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteCommentResponse members - - - std::shared_ptr getAction() const; - bool actionIsSet() const; - void unsetAction(); - void setAction(const std::shared_ptr& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Action; - bool m_ActionIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteCommentVoteResponse.h b/client/include/FastCommentsClient/model/DeleteCommentVoteResponse.h deleted file mode 100644 index a66cc67..0000000 --- a/client/include/FastCommentsClient/model/DeleteCommentVoteResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteCommentVoteResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentVoteResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentVoteResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/VoteDeleteResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteCommentVoteResponse - : public ModelBase -{ -public: - DeleteCommentVoteResponse(); - virtual ~DeleteCommentVoteResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteCommentVoteResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - bool isWasPendingVote() const; - bool wasPendingVoteIsSet() const; - void unsetWasPendingVote(); - void setWasPendingVote(bool value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - bool m_WasPendingVote; - bool m_WasPendingVoteIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteCommentVoteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h b/client/include/FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h deleted file mode 100644 index 073e069..0000000 --- a/client/include/FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteEmailTemplateRenderErrorResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateRenderErrorResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateRenderErrorResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteEmailTemplateRenderErrorResponse - : public ModelBase -{ -public: - DeleteEmailTemplateRenderErrorResponse(); - virtual ~DeleteEmailTemplateRenderErrorResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteEmailTemplateRenderErrorResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateRenderErrorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteEmailTemplateResponse.h b/client/include/FastCommentsClient/model/DeleteEmailTemplateResponse.h deleted file mode 100644 index 6e1ddce..0000000 --- a/client/include/FastCommentsClient/model/DeleteEmailTemplateResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteEmailTemplateResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteEmailTemplateResponse - : public ModelBase -{ -public: - DeleteEmailTemplateResponse(); - virtual ~DeleteEmailTemplateResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteEmailTemplateResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteEmailTemplateResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h index 028175d..f22f15a 100644 --- a/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h +++ b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse.h @@ -23,10 +23,6 @@ #include "FastCommentsClient/ModelBase.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h" #include "FastCommentsClient/model/APIStatus.h" namespace org { @@ -34,7 +30,6 @@ namespace openapitools { namespace client { namespace model { -class CustomConfigParameters; class DeleteFeedPostPublicResponse @@ -65,67 +60,11 @@ class DeleteFeedPostPublicResponse void unsetStatus(); void setStatus(const std::shared_ptr& value); - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - protected: std::shared_ptr m_Status; bool m_StatusIsSet; - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - }; diff --git a/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h b/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h deleted file mode 100644 index d5174ea..0000000 --- a/client/include/FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h +++ /dev/null @@ -1,76 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteFeedPostPublicResponse_anyOf.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublicResponse_anyOf_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublicResponse_anyOf_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - - - -class DeleteFeedPostPublicResponse_anyOf - : public ModelBase -{ -public: - DeleteFeedPostPublicResponse_anyOf(); - virtual ~DeleteFeedPostPublicResponse_anyOf(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteFeedPostPublicResponse_anyOf members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteFeedPostPublicResponse_anyOf_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteHashTagResponse.h b/client/include/FastCommentsClient/model/DeleteHashTagResponse.h deleted file mode 100644 index 091810a..0000000 --- a/client/include/FastCommentsClient/model/DeleteHashTagResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteHashTagResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteHashTagResponse - : public ModelBase -{ -public: - DeleteHashTagResponse(); - virtual ~DeleteHashTagResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteHashTagResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteHashTagResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteModerationVoteResponse.h b/client/include/FastCommentsClient/model/DeleteModerationVoteResponse.h deleted file mode 100644 index 947a473..0000000 --- a/client/include/FastCommentsClient/model/DeleteModerationVoteResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteModerationVoteResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModerationVoteResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModerationVoteResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/VoteDeleteResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteModerationVoteResponse - : public ModelBase -{ -public: - DeleteModerationVoteResponse(); - virtual ~DeleteModerationVoteResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteModerationVoteResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - bool isWasPendingVote() const; - bool wasPendingVoteIsSet() const; - void unsetWasPendingVote(); - void setWasPendingVote(bool value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - bool m_WasPendingVote; - bool m_WasPendingVoteIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModerationVoteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteModeratorResponse.h b/client/include/FastCommentsClient/model/DeleteModeratorResponse.h deleted file mode 100644 index a261677..0000000 --- a/client/include/FastCommentsClient/model/DeleteModeratorResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteModeratorResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModeratorResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModeratorResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteModeratorResponse - : public ModelBase -{ -public: - DeleteModeratorResponse(); - virtual ~DeleteModeratorResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteModeratorResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteModeratorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteNotificationCountResponse.h b/client/include/FastCommentsClient/model/DeleteNotificationCountResponse.h deleted file mode 100644 index acbb6f2..0000000 --- a/client/include/FastCommentsClient/model/DeleteNotificationCountResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteNotificationCountResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteNotificationCountResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteNotificationCountResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteNotificationCountResponse - : public ModelBase -{ -public: - DeleteNotificationCountResponse(); - virtual ~DeleteNotificationCountResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteNotificationCountResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteNotificationCountResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeletePendingWebhookEventResponse.h b/client/include/FastCommentsClient/model/DeletePendingWebhookEventResponse.h deleted file mode 100644 index 4bcb168..0000000 --- a/client/include/FastCommentsClient/model/DeletePendingWebhookEventResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeletePendingWebhookEventResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeletePendingWebhookEventResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeletePendingWebhookEventResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeletePendingWebhookEventResponse - : public ModelBase -{ -public: - DeletePendingWebhookEventResponse(); - virtual ~DeletePendingWebhookEventResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeletePendingWebhookEventResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeletePendingWebhookEventResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteQuestionConfigResponse.h b/client/include/FastCommentsClient/model/DeleteQuestionConfigResponse.h deleted file mode 100644 index f62c580..0000000 --- a/client/include/FastCommentsClient/model/DeleteQuestionConfigResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteQuestionConfigResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionConfigResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionConfigResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteQuestionConfigResponse - : public ModelBase -{ -public: - DeleteQuestionConfigResponse(); - virtual ~DeleteQuestionConfigResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteQuestionConfigResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionConfigResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteQuestionResultResponse.h b/client/include/FastCommentsClient/model/DeleteQuestionResultResponse.h deleted file mode 100644 index 111b1c9..0000000 --- a/client/include/FastCommentsClient/model/DeleteQuestionResultResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteQuestionResultResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionResultResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionResultResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteQuestionResultResponse - : public ModelBase -{ -public: - DeleteQuestionResultResponse(); - virtual ~DeleteQuestionResultResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteQuestionResultResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteQuestionResultResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteTenantPackageResponse.h b/client/include/FastCommentsClient/model/DeleteTenantPackageResponse.h deleted file mode 100644 index ed32f40..0000000 --- a/client/include/FastCommentsClient/model/DeleteTenantPackageResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteTenantPackageResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantPackageResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantPackageResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteTenantPackageResponse - : public ModelBase -{ -public: - DeleteTenantPackageResponse(); - virtual ~DeleteTenantPackageResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteTenantPackageResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantPackageResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteTenantResponse.h b/client/include/FastCommentsClient/model/DeleteTenantResponse.h deleted file mode 100644 index 608d766..0000000 --- a/client/include/FastCommentsClient/model/DeleteTenantResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteTenantResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteTenantResponse - : public ModelBase -{ -public: - DeleteTenantResponse(); - virtual ~DeleteTenantResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteTenantResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteTenantUserResponse.h b/client/include/FastCommentsClient/model/DeleteTenantUserResponse.h deleted file mode 100644 index 28e7bc4..0000000 --- a/client/include/FastCommentsClient/model/DeleteTenantUserResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteTenantUserResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantUserResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantUserResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteTenantUserResponse - : public ModelBase -{ -public: - DeleteTenantUserResponse(); - virtual ~DeleteTenantUserResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteTenantUserResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteTenantUserResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteUserBadgeResponse.h b/client/include/FastCommentsClient/model/DeleteUserBadgeResponse.h deleted file mode 100644 index 13874d9..0000000 --- a/client/include/FastCommentsClient/model/DeleteUserBadgeResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteUserBadgeResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteUserBadgeResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteUserBadgeResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptySuccessResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteUserBadgeResponse - : public ModelBase -{ -public: - DeleteUserBadgeResponse(); - virtual ~DeleteUserBadgeResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteUserBadgeResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteUserBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteV1PageReactResponse.h b/client/include/FastCommentsClient/model/DeleteV1PageReactResponse.h deleted file mode 100644 index a95c441..0000000 --- a/client/include/FastCommentsClient/model/DeleteV1PageReactResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteV1PageReactResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV1PageReactResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV1PageReactResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/CreateV1PageReact.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteV1PageReactResponse - : public ModelBase -{ -public: - DeleteV1PageReactResponse(); - virtual ~DeleteV1PageReactResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteV1PageReactResponse members - - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - utility::string_t m_Code; - bool m_CodeIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV1PageReactResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteV2PageReactResponse.h b/client/include/FastCommentsClient/model/DeleteV2PageReactResponse.h deleted file mode 100644 index a30a1b4..0000000 --- a/client/include/FastCommentsClient/model/DeleteV2PageReactResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteV2PageReactResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV2PageReactResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV2PageReactResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/CreateV1PageReact.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteV2PageReactResponse - : public ModelBase -{ -public: - DeleteV2PageReactResponse(); - virtual ~DeleteV2PageReactResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteV2PageReactResponse members - - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - utility::string_t m_Code; - bool m_CodeIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteV2PageReactResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/DeleteVoteResponse.h b/client/include/FastCommentsClient/model/DeleteVoteResponse.h deleted file mode 100644 index 4c48b97..0000000 --- a/client/include/FastCommentsClient/model/DeleteVoteResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * DeleteVoteResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteVoteResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteVoteResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/VoteDeleteResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class DeleteVoteResponse - : public ModelBase -{ -public: - DeleteVoteResponse(); - virtual ~DeleteVoteResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// DeleteVoteResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - bool isWasPendingVote() const; - bool wasPendingVoteIsSet() const; - void unsetWasPendingVote(); - void setWasPendingVote(bool value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - bool m_WasPendingVote; - bool m_WasPendingVoteIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_DeleteVoteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/FlagCommentPublicResponse.h b/client/include/FastCommentsClient/model/FlagCommentPublicResponse.h deleted file mode 100644 index e9c5892..0000000 --- a/client/include/FastCommentsClient/model/FlagCommentPublicResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * FlagCommentPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class FlagCommentPublicResponse - : public ModelBase -{ -public: - FlagCommentPublicResponse(); - virtual ~FlagCommentPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// FlagCommentPublicResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/FlagCommentResponse_1.h b/client/include/FastCommentsClient/model/FlagCommentResponse_1.h deleted file mode 100644 index 3f15b68..0000000 --- a/client/include/FastCommentsClient/model/FlagCommentResponse_1.h +++ /dev/null @@ -1,153 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * FlagCommentResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/FlagCommentResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class FlagCommentResponse_1 - : public ModelBase -{ -public: - FlagCommentResponse_1(); - virtual ~FlagCommentResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// FlagCommentResponse_1 members - - - int32_t getStatusCode() const; - bool statusCodeIsSet() const; - void unsetStatusCode(); - void setStatusCode(int32_t value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - bool isWasUnapproved() const; - bool wasUnapprovedIsSet() const; - void unsetWasUnapproved(); - void setWasUnapproved(bool value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - int32_t m_StatusCode; - bool m_StatusCodeIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - bool m_WasUnapproved; - bool m_WasUnapprovedIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_FlagCommentResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetApiCommentsResponse.h b/client/include/FastCommentsClient/model/GetApiCommentsResponse.h deleted file mode 100644 index eea70c5..0000000 --- a/client/include/FastCommentsClient/model/GetApiCommentsResponse.h +++ /dev/null @@ -1,167 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetApiCommentsResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiCommentsResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiCommentsResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationAPIGetCommentsResponse.h" -#include "FastCommentsClient/model/ModerationAPIComment.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/ModerationFilter.h" -#include "FastCommentsClient/Object.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class ModerationAPIComment; -class ModerationFilter; -class CustomConfigParameters; - - -class GetApiCommentsResponse - : public ModelBase -{ -public: - GetApiCommentsResponse(); - virtual ~GetApiCommentsResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetApiCommentsResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTranslations() const; - bool translationsIsSet() const; - void unsetTranslations(); - void setTranslations(const std::shared_ptr& value); - - std::vector> getComments() const; - bool commentsIsSet() const; - void unsetComments(); - void setComments(const std::vector>& value); - - std::shared_ptr getModerationFilter() const; - bool moderationFilterIsSet() const; - void unsetModerationFilter(); - void setModerationFilter(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Translations; - bool m_TranslationsIsSet; - - std::vector> m_Comments; - bool m_CommentsIsSet; - - std::shared_ptr m_ModerationFilter; - bool m_ModerationFilterIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiCommentsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetApiExportStatusResponse.h b/client/include/FastCommentsClient/model/GetApiExportStatusResponse.h deleted file mode 100644 index 2d2a2b5..0000000 --- a/client/include/FastCommentsClient/model/GetApiExportStatusResponse.h +++ /dev/null @@ -1,161 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetApiExportStatusResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiExportStatusResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiExportStatusResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationExportStatusResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetApiExportStatusResponse - : public ModelBase -{ -public: - GetApiExportStatusResponse(); - virtual ~GetApiExportStatusResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetApiExportStatusResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getJobStatus() const; - bool jobStatusIsSet() const; - void unsetJobStatus(); - void setJobStatus(const utility::string_t& value); - - int32_t getRecordCount() const; - bool recordCountIsSet() const; - void unsetRecordCount(); - void setRecordCount(int32_t value); - - utility::string_t getDownloadUrl() const; - bool downloadUrlIsSet() const; - void unsetDownloadUrl(); - void setDownloadUrl(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_JobStatus; - bool m_JobStatusIsSet; - - int32_t m_RecordCount; - bool m_RecordCountIsSet; - - utility::string_t m_DownloadUrl; - bool m_DownloadUrlIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiExportStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetApiIdsResponse.h b/client/include/FastCommentsClient/model/GetApiIdsResponse.h deleted file mode 100644 index 94d668f..0000000 --- a/client/include/FastCommentsClient/model/GetApiIdsResponse.h +++ /dev/null @@ -1,154 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetApiIdsResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiIdsResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiIdsResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationAPIGetCommentIdsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetApiIdsResponse - : public ModelBase -{ -public: - GetApiIdsResponse(); - virtual ~GetApiIdsResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetApiIdsResponse members - - - std::vector getIds() const; - bool idsIsSet() const; - void unsetIds(); - void setIds(const std::vector& value); - - bool isHasMore() const; - bool hasMoreIsSet() const; - void unsetHasMore(); - void setHasMore(bool value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector m_Ids; - bool m_IdsIsSet; - - bool m_HasMore; - bool m_HasMoreIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetApiIdsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetAuditLogsResponse_1.h b/client/include/FastCommentsClient/model/GetAuditLogsResponse_1.h deleted file mode 100644 index 236c374..0000000 --- a/client/include/FastCommentsClient/model/GetAuditLogsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetAuditLogsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/APIAuditLog.h" -#include "FastCommentsClient/model/GetAuditLogsResponse.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APIAuditLog; -class CustomConfigParameters; - - -class GetAuditLogsResponse_1 - : public ModelBase -{ -public: - GetAuditLogsResponse_1(); - virtual ~GetAuditLogsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetAuditLogsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getAuditLogs() const; - bool auditLogsIsSet() const; - void unsetAuditLogs(); - void setAuditLogs(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_AuditLogs; - bool m_AuditLogsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetAuditLogsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetBanUsersFromCommentResponse.h b/client/include/FastCommentsClient/model/GetBanUsersFromCommentResponse.h deleted file mode 100644 index d1b1ced..0000000 --- a/client/include/FastCommentsClient/model/GetBanUsersFromCommentResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetBanUsersFromCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetBanUsersFromCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetBanUsersFromCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetBannedUsersFromCommentResponse.h" -#include "FastCommentsClient/model/APIBannedUserWithMultiMatchInfo.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APIBannedUserWithMultiMatchInfo; -class CustomConfigParameters; - - -class GetBanUsersFromCommentResponse - : public ModelBase -{ -public: - GetBanUsersFromCommentResponse(); - virtual ~GetBanUsersFromCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetBanUsersFromCommentResponse members - - - std::vector> getBannedUsers() const; - bool bannedUsersIsSet() const; - void unsetBannedUsers(); - void setBannedUsers(const std::vector>& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_BannedUsers; - bool m_BannedUsersIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetBanUsersFromCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse_1.h b/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse_1.h deleted file mode 100644 index a7d2286..0000000 --- a/client/include/FastCommentsClient/model/GetCachedNotificationCountResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCachedNotificationCountResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCountResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCountResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetCachedNotificationCountResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/UserNotificationCount.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserNotificationCount; -class CustomConfigParameters; - - -class GetCachedNotificationCountResponse_1 - : public ModelBase -{ -public: - GetCachedNotificationCountResponse_1(); - virtual ~GetCachedNotificationCountResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCachedNotificationCountResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getData() const; - bool dataIsSet() const; - void unsetData(); - void setData(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Data; - bool m_DataIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCachedNotificationCountResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentBanStatusResponse_1.h b/client/include/FastCommentsClient/model/GetCommentBanStatusResponse_1.h deleted file mode 100644 index c70e601..0000000 --- a/client/include/FastCommentsClient/model/GetCommentBanStatusResponse_1.h +++ /dev/null @@ -1,151 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentBanStatusResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetCommentBanStatusResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetCommentBanStatusResponse_1 - : public ModelBase -{ -public: - GetCommentBanStatusResponse_1(); - virtual ~GetCommentBanStatusResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentBanStatusResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getEmailDomain() const; - bool emailDomainIsSet() const; - void unsetEmailDomain(); - void setEmailDomain(const utility::string_t& value); - - bool isCanIPBan() const; - bool canIPBanIsSet() const; - void unsetCanIPBan(); - void setCanIPBan(bool value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - boost::optional m_EmailDomain; - - boost::optional m_CanIPBan; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentBanStatusResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentChildrenResponse.h b/client/include/FastCommentsClient/model/GetCommentChildrenResponse.h deleted file mode 100644 index 2dcdaf5..0000000 --- a/client/include/FastCommentsClient/model/GetCommentChildrenResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentChildrenResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentChildrenResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentChildrenResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationAPIComment.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/ModerationAPIChildCommentsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class ModerationAPIComment; -class CustomConfigParameters; - - -class GetCommentChildrenResponse - : public ModelBase -{ -public: - GetCommentChildrenResponse(); - virtual ~GetCommentChildrenResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentChildrenResponse members - - - std::vector> getComments() const; - bool commentsIsSet() const; - void unsetComments(); - void setComments(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Comments; - bool m_CommentsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentChildrenResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentResponse.h b/client/include/FastCommentsClient/model/GetCommentResponse.h deleted file mode 100644 index c6aaa8e..0000000 --- a/client/include/FastCommentsClient/model/GetCommentResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIComment.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/APIGetCommentResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APIComment; -class CustomConfigParameters; - - -class GetCommentResponse - : public ModelBase -{ -public: - GetCommentResponse(); - virtual ~GetCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Comment; - bool m_CommentIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentTextResponse_1.h b/client/include/FastCommentsClient/model/GetCommentTextResponse_1.h deleted file mode 100644 index db5e4e1..0000000 --- a/client/include/FastCommentsClient/model/GetCommentTextResponse_1.h +++ /dev/null @@ -1,153 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentTextResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentTextResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentTextResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/PublicAPIGetCommentTextResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetCommentTextResponse_1 - : public ModelBase -{ -public: - GetCommentTextResponse_1(); - virtual ~GetCommentTextResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentTextResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCommentText() const; - bool commentTextIsSet() const; - void unsetCommentText(); - void setCommentText(const utility::string_t& value); - - utility::string_t getSanitizedCommentText() const; - bool sanitizedCommentTextIsSet() const; - void unsetSanitizedCommentText(); - void setSanitizedCommentText(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_CommentText; - bool m_CommentTextIsSet; - - utility::string_t m_SanitizedCommentText; - bool m_SanitizedCommentTextIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentTextResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentVoteUserNamesResponse.h b/client/include/FastCommentsClient/model/GetCommentVoteUserNamesResponse.h deleted file mode 100644 index 34fa013..0000000 --- a/client/include/FastCommentsClient/model/GetCommentVoteUserNamesResponse.h +++ /dev/null @@ -1,154 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentVoteUserNamesResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNamesResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNamesResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetCommentVoteUserNamesSuccessResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetCommentVoteUserNamesResponse - : public ModelBase -{ -public: - GetCommentVoteUserNamesResponse(); - virtual ~GetCommentVoteUserNamesResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentVoteUserNamesResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector getVoteUserNames() const; - bool voteUserNamesIsSet() const; - void unsetVoteUserNames(); - void setVoteUserNames(const std::vector& value); - - bool isHasMore() const; - bool hasMoreIsSet() const; - void unsetHasMore(); - void setHasMore(bool value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector m_VoteUserNames; - bool m_VoteUserNamesIsSet; - - bool m_HasMore; - bool m_HasMoreIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentVoteUserNamesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentsForUserResponse_1.h b/client/include/FastCommentsClient/model/GetCommentsForUserResponse_1.h deleted file mode 100644 index eedc225..0000000 --- a/client/include/FastCommentsClient/model/GetCommentsForUserResponse_1.h +++ /dev/null @@ -1,146 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentsForUserResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetCommentsForUserResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetCommentsForUserResponse_1 - : public ModelBase -{ -public: - GetCommentsForUserResponse_1(); - virtual ~GetCommentsForUserResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentsForUserResponse_1 members - - - std::vector getModeratingTenantIds() const; - bool moderatingTenantIdsIsSet() const; - void unsetModeratingTenantIds(); - void setModeratingTenantIds(const std::vector& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector m_ModeratingTenantIds; - bool m_ModeratingTenantIdsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsForUserResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentsPublicResponse.h b/client/include/FastCommentsClient/model/GetCommentsPublicResponse.h deleted file mode 100644 index 0da8b2b..0000000 --- a/client/include/FastCommentsClient/model/GetCommentsPublicResponse.h +++ /dev/null @@ -1,329 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentsPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserSessionInfo.h" -#include "FastCommentsClient/model/PublicComment.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetCommentsResponseWithPresence_PublicComment_.h" -#include -#include "FastCommentsClient/Object.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PublicComment; -class UserSessionInfo; -class CustomConfigParameters; - - -class GetCommentsPublicResponse - : public ModelBase -{ -public: - GetCommentsPublicResponse(); - virtual ~GetCommentsPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentsPublicResponse members - - - int32_t getStatusCode() const; - bool statusCodeIsSet() const; - void unsetStatusCode(); - void setStatusCode(int32_t value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getTranslatedWarning() const; - bool translatedWarningIsSet() const; - void unsetTranslatedWarning(); - void setTranslatedWarning(const utility::string_t& value); - - std::vector> getComments() const; - bool commentsIsSet() const; - void unsetComments(); - void setComments(const std::vector>& value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - utility::string_t getUrlIdClean() const; - bool urlIdCleanIsSet() const; - void unsetUrlIdClean(); - void setUrlIdClean(const utility::string_t& value); - - int64_t getLastGenDate() const; - bool lastGenDateIsSet() const; - void unsetLastGenDate(); - void setLastGenDate(int64_t value); - - bool isIncludesPastPages() const; - bool includesPastPagesIsSet() const; - void unsetIncludesPastPages(); - void setIncludesPastPages(bool value); - - bool isIsDemo() const; - bool isDemoIsSet() const; - void unsetIsDemo(); - void setIsDemo(bool value); - - int32_t getCommentCount() const; - bool commentCountIsSet() const; - void unsetCommentCount(); - void setCommentCount(int32_t value); - - bool isIsSiteAdmin() const; - bool isSiteAdminIsSet() const; - void unsetIsSiteAdmin(); - void setIsSiteAdmin(bool value); - - bool isHasBillingIssue() const; - bool hasBillingIssueIsSet() const; - void unsetHasBillingIssue(); - void setHasBillingIssue(bool value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map> getModuleData() const; - bool moduleDataIsSet() const; - void unsetModuleData(); - void setModuleData(const std::map>& value); - - int32_t getPageNumber() const; - bool pageNumberIsSet() const; - void unsetPageNumber(); - void setPageNumber(int32_t value); - - bool isIsWhiteLabeled() const; - bool isWhiteLabeledIsSet() const; - void unsetIsWhiteLabeled(); - void setIsWhiteLabeled(bool value); - - bool isIsProd() const; - bool isProdIsSet() const; - void unsetIsProd(); - void setIsProd(bool value); - - bool isIsCrawler() const; - bool isCrawlerIsSet() const; - void unsetIsCrawler(); - void setIsCrawler(bool value); - - int32_t getNotificationCount() const; - bool notificationCountIsSet() const; - void unsetNotificationCount(); - void setNotificationCount(int32_t value); - - bool isHasMore() const; - bool hasMoreIsSet() const; - void unsetHasMore(); - void setHasMore(bool value); - - bool isIsClosed() const; - bool isClosedIsSet() const; - void unsetIsClosed(); - void setIsClosed(bool value); - - int32_t getPresencePollState() const; - bool presencePollStateIsSet() const; - void unsetPresencePollState(); - void setPresencePollState(int32_t value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - utility::string_t getUrlIdWS() const; - bool urlIdWSIsSet() const; - void unsetUrlIdWS(); - void setUrlIdWS(const utility::string_t& value); - - utility::string_t getUserIdWS() const; - bool userIdWSIsSet() const; - void unsetUserIdWS(); - void setUserIdWS(const utility::string_t& value); - - utility::string_t getTenantIdWS() const; - bool tenantIdWSIsSet() const; - void unsetTenantIdWS(); - void setTenantIdWS(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - -protected: - int32_t m_StatusCode; - bool m_StatusCodeIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_TranslatedWarning; - bool m_TranslatedWarningIsSet; - - std::vector> m_Comments; - bool m_CommentsIsSet; - - boost::optional> m_User; - - utility::string_t m_UrlIdClean; - bool m_UrlIdCleanIsSet; - - boost::optional m_LastGenDate; - - bool m_IncludesPastPages; - bool m_IncludesPastPagesIsSet; - - bool m_IsDemo; - bool m_IsDemoIsSet; - - int32_t m_CommentCount; - bool m_CommentCountIsSet; - - bool m_IsSiteAdmin; - bool m_IsSiteAdminIsSet; - - bool m_HasBillingIssue; - bool m_HasBillingIssueIsSet; - - std::map> m_ModuleData; - bool m_ModuleDataIsSet; - - int32_t m_PageNumber; - bool m_PageNumberIsSet; - - bool m_IsWhiteLabeled; - bool m_IsWhiteLabeledIsSet; - - bool m_IsProd; - bool m_IsProdIsSet; - - bool m_IsCrawler; - bool m_IsCrawlerIsSet; - - int32_t m_NotificationCount; - bool m_NotificationCountIsSet; - - bool m_HasMore; - bool m_HasMoreIsSet; - - bool m_IsClosed; - bool m_IsClosedIsSet; - - int32_t m_PresencePollState; - bool m_PresencePollStateIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - - utility::string_t m_UrlIdWS; - bool m_UrlIdWSIsSet; - - utility::string_t m_UserIdWS; - bool m_UserIdWSIsSet; - - utility::string_t m_TenantIdWS; - bool m_TenantIdWSIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCommentsResponse.h b/client/include/FastCommentsClient/model/GetCommentsResponse.h deleted file mode 100644 index cb5857f..0000000 --- a/client/include/FastCommentsClient/model/GetCommentsResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCommentsResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIComment.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIGetCommentsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APIComment; -class CustomConfigParameters; - - -class GetCommentsResponse - : public ModelBase -{ -public: - GetCommentsResponse(); - virtual ~GetCommentsResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCommentsResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getComments() const; - bool commentsIsSet() const; - void unsetComments(); - void setComments(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Comments; - bool m_CommentsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCommentsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCountResponse.h b/client/include/FastCommentsClient/model/GetCountResponse.h deleted file mode 100644 index b3d0658..0000000 --- a/client/include/FastCommentsClient/model/GetCountResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCountResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationAPICountCommentsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetCountResponse - : public ModelBase -{ -public: - GetCountResponse(); - virtual ~GetCountResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCountResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - double getCount() const; - bool countIsSet() const; - void unsetCount(); - void setCount(double value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - double m_Count; - bool m_CountIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetCountsResponse.h b/client/include/FastCommentsClient/model/GetCountsResponse.h deleted file mode 100644 index ec1be4b..0000000 --- a/client/include/FastCommentsClient/model/GetCountsResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetCountsResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountsResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountsResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetBannedUsersCountResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetCountsResponse - : public ModelBase -{ -public: - GetCountsResponse(); - virtual ~GetCountsResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetCountsResponse members - - - double getTotalCount() const; - bool totalCountIsSet() const; - void unsetTotalCount(); - void setTotalCount(double value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - double m_TotalCount; - bool m_TotalCountIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetCountsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h b/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h deleted file mode 100644 index bc4144e..0000000 --- a/client/include/FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetEmailTemplateDefinitionsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitionsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitionsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetEmailTemplateDefinitionsResponse.h" -#include "FastCommentsClient/model/EmailTemplateDefinition.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class EmailTemplateDefinition; -class CustomConfigParameters; - - -class GetEmailTemplateDefinitionsResponse_1 - : public ModelBase -{ -public: - GetEmailTemplateDefinitionsResponse_1(); - virtual ~GetEmailTemplateDefinitionsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetEmailTemplateDefinitionsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getDefinitions() const; - bool definitionsIsSet() const; - void unsetDefinitions(); - void setDefinitions(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Definitions; - bool m_DefinitionsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateDefinitionsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h b/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h deleted file mode 100644 index d2ddda3..0000000 --- a/client/include/FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetEmailTemplateRenderErrorsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrorsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrorsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/EmailTemplateRenderErrorResponse.h" -#include "FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class EmailTemplateRenderErrorResponse; -class CustomConfigParameters; - - -class GetEmailTemplateRenderErrorsResponse_1 - : public ModelBase -{ -public: - GetEmailTemplateRenderErrorsResponse_1(); - virtual ~GetEmailTemplateRenderErrorsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetEmailTemplateRenderErrorsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getRenderErrors() const; - bool renderErrorsIsSet() const; - void unsetRenderErrors(); - void setRenderErrors(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_RenderErrors; - bool m_RenderErrorsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateRenderErrorsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplateResponse_1.h b/client/include/FastCommentsClient/model/GetEmailTemplateResponse_1.h deleted file mode 100644 index 093bcd8..0000000 --- a/client/include/FastCommentsClient/model/GetEmailTemplateResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetEmailTemplateResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetEmailTemplateResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/CustomEmailTemplate.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomEmailTemplate; -class CustomConfigParameters; - - -class GetEmailTemplateResponse_1 - : public ModelBase -{ -public: - GetEmailTemplateResponse_1(); - virtual ~GetEmailTemplateResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetEmailTemplateResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getEmailTemplate() const; - bool emailTemplateIsSet() const; - void unsetEmailTemplate(); - void setEmailTemplate(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_EmailTemplate; - bool m_EmailTemplateIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplateResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEmailTemplatesResponse_1.h b/client/include/FastCommentsClient/model/GetEmailTemplatesResponse_1.h deleted file mode 100644 index 674c212..0000000 --- a/client/include/FastCommentsClient/model/GetEmailTemplatesResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetEmailTemplatesResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplatesResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplatesResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetEmailTemplatesResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/CustomEmailTemplate.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomEmailTemplate; -class CustomConfigParameters; - - -class GetEmailTemplatesResponse_1 - : public ModelBase -{ -public: - GetEmailTemplatesResponse_1(); - virtual ~GetEmailTemplatesResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetEmailTemplatesResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getEmailTemplates() const; - bool emailTemplatesIsSet() const; - void unsetEmailTemplates(); - void setEmailTemplates(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_EmailTemplates; - bool m_EmailTemplatesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEmailTemplatesResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetEventLogResponse_1.h b/client/include/FastCommentsClient/model/GetEventLogResponse_1.h deleted file mode 100644 index ba3ab5a..0000000 --- a/client/include/FastCommentsClient/model/GetEventLogResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetEventLogResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLogResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLogResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/EventLogEntry.h" -#include "FastCommentsClient/model/GetEventLogResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class EventLogEntry; -class CustomConfigParameters; - - -class GetEventLogResponse_1 - : public ModelBase -{ -public: - GetEventLogResponse_1(); - virtual ~GetEventLogResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetEventLogResponse_1 members - - - std::vector> getEvents() const; - bool eventsIsSet() const; - void unsetEvents(); - void setEvents(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Events; - bool m_EventsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetEventLogResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetFeedPostsPublicResponse.h b/client/include/FastCommentsClient/model/GetFeedPostsPublicResponse.h deleted file mode 100644 index 5f2a3c1..0000000 --- a/client/include/FastCommentsClient/model/GetFeedPostsPublicResponse.h +++ /dev/null @@ -1,190 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetFeedPostsPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserSessionInfo.h" -#include "FastCommentsClient/model/PublicFeedPostsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPost.h" -#include -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPost; -class UserSessionInfo; -class CustomConfigParameters; - - -class GetFeedPostsPublicResponse - : public ModelBase -{ -public: - GetFeedPostsPublicResponse(); - virtual ~GetFeedPostsPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetFeedPostsPublicResponse members - - - std::map> getMyReacts() const; - bool myReactsIsSet() const; - void unsetMyReacts(); - void setMyReacts(const std::map>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getFeedPosts() const; - bool feedPostsIsSet() const; - void unsetFeedPosts(); - void setFeedPosts(const std::vector>& value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - utility::string_t getUrlIdWS() const; - bool urlIdWSIsSet() const; - void unsetUrlIdWS(); - void setUrlIdWS(const utility::string_t& value); - - utility::string_t getUserIdWS() const; - bool userIdWSIsSet() const; - void unsetUserIdWS(); - void setUserIdWS(const utility::string_t& value); - - utility::string_t getTenantIdWS() const; - bool tenantIdWSIsSet() const; - void unsetTenantIdWS(); - void setTenantIdWS(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::map> m_MyReacts; - bool m_MyReactsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_FeedPosts; - bool m_FeedPostsIsSet; - - boost::optional> m_User; - - utility::string_t m_UrlIdWS; - bool m_UrlIdWSIsSet; - - utility::string_t m_UserIdWS; - bool m_UserIdWSIsSet; - - utility::string_t m_TenantIdWS; - bool m_TenantIdWSIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetFeedPostsResponse_1.h b/client/include/FastCommentsClient/model/GetFeedPostsResponse_1.h deleted file mode 100644 index 2faa350..0000000 --- a/client/include/FastCommentsClient/model/GetFeedPostsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetFeedPostsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPost.h" -#include -#include "FastCommentsClient/model/GetFeedPostsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPost; -class CustomConfigParameters; - - -class GetFeedPostsResponse_1 - : public ModelBase -{ -public: - GetFeedPostsResponse_1(); - virtual ~GetFeedPostsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetFeedPostsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getFeedPosts() const; - bool feedPostsIsSet() const; - void unsetFeedPosts(); - void setFeedPosts(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_FeedPosts; - bool m_FeedPostsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetFeedPostsStatsResponse.h b/client/include/FastCommentsClient/model/GetFeedPostsStatsResponse.h deleted file mode 100644 index 82372aa..0000000 --- a/client/include/FastCommentsClient/model/GetFeedPostsStatsResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetFeedPostsStatsResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsStatsResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsStatsResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPostsStatsResponse.h" -#include -#include "FastCommentsClient/model/FeedPostStats.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPostStats; -class CustomConfigParameters; - - -class GetFeedPostsStatsResponse - : public ModelBase -{ -public: - GetFeedPostsStatsResponse(); - virtual ~GetFeedPostsStatsResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetFeedPostsStatsResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::map> getStats() const; - bool statsIsSet() const; - void unsetStats(); - void setStats(const std::map>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map> m_Stats; - bool m_StatsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetFeedPostsStatsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetGifLargeResponse.h b/client/include/FastCommentsClient/model/GetGifLargeResponse.h deleted file mode 100644 index 273a9fa..0000000 --- a/client/include/FastCommentsClient/model/GetGifLargeResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetGifLargeResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifLargeResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifLargeResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GifGetLargeResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetGifLargeResponse - : public ModelBase -{ -public: - GetGifLargeResponse(); - virtual ~GetGifLargeResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetGifLargeResponse members - - - utility::string_t getSrc() const; - bool srcIsSet() const; - void unsetSrc(); - void setSrc(const utility::string_t& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - utility::string_t m_Src; - bool m_SrcIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetGifLargeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetGifsSearchResponse.h b/client/include/FastCommentsClient/model/GetGifsSearchResponse.h index d1934c5..8f2f253 100644 --- a/client/include/FastCommentsClient/model/GetGifsSearchResponse.h +++ b/client/include/FastCommentsClient/model/GetGifsSearchResponse.h @@ -25,11 +25,9 @@ #include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" #include "FastCommentsClient/model/GifSearchResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" #include "FastCommentsClient/model/GifSearchInternalError.h" #include #include -#include "FastCommentsClient/model/APIError.h" #include "FastCommentsClient/model/APIStatus.h" namespace org { @@ -37,7 +35,6 @@ namespace openapitools { namespace client { namespace model { -class CustomConfigParameters; class GetGifsSearchResponse @@ -78,36 +75,6 @@ class GetGifsSearchResponse void unsetCode(); void setCode(const utility::string_t& value); - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - protected: std::vector>> m_Images; @@ -119,24 +86,6 @@ class GetGifsSearchResponse utility::string_t m_Code; bool m_CodeIsSet; - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - }; diff --git a/client/include/FastCommentsClient/model/GetGlobalEventLogResponse.h b/client/include/FastCommentsClient/model/GetGlobalEventLogResponse.h deleted file mode 100644 index d1d12e2..0000000 --- a/client/include/FastCommentsClient/model/GetGlobalEventLogResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetGlobalEventLogResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetGlobalEventLogResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetGlobalEventLogResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/EventLogEntry.h" -#include "FastCommentsClient/model/GetEventLogResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class EventLogEntry; -class CustomConfigParameters; - - -class GetGlobalEventLogResponse - : public ModelBase -{ -public: - GetGlobalEventLogResponse(); - virtual ~GetGlobalEventLogResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetGlobalEventLogResponse members - - - std::vector> getEvents() const; - bool eventsIsSet() const; - void unsetEvents(); - void setEvents(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Events; - bool m_EventsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetGlobalEventLogResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetHashTagsResponse_1.h b/client/include/FastCommentsClient/model/GetHashTagsResponse_1.h deleted file mode 100644 index 3d7fc9e..0000000 --- a/client/include/FastCommentsClient/model/GetHashTagsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetHashTagsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTagsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTagsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/TenantHashTag.h" -#include "FastCommentsClient/model/GetHashTagsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantHashTag; -class CustomConfigParameters; - - -class GetHashTagsResponse_1 - : public ModelBase -{ -public: - GetHashTagsResponse_1(); - virtual ~GetHashTagsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetHashTagsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getHashTags() const; - bool hashTagsIsSet() const; - void unsetHashTags(); - void setHashTags(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_HashTags; - bool m_HashTagsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetHashTagsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetLogsResponse.h b/client/include/FastCommentsClient/model/GetLogsResponse.h deleted file mode 100644 index 4a3649d..0000000 --- a/client/include/FastCommentsClient/model/GetLogsResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetLogsResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetLogsResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetLogsResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/ModerationAPICommentLog.h" -#include -#include "FastCommentsClient/model/ModerationAPIGetLogsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class ModerationAPICommentLog; -class CustomConfigParameters; - - -class GetLogsResponse - : public ModelBase -{ -public: - GetLogsResponse(); - virtual ~GetLogsResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetLogsResponse members - - - std::vector> getLogs() const; - bool logsIsSet() const; - void unsetLogs(); - void setLogs(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Logs; - bool m_LogsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetLogsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetManualBadgesForUserResponse.h b/client/include/FastCommentsClient/model/GetManualBadgesForUserResponse.h deleted file mode 100644 index 9196f40..0000000 --- a/client/include/FastCommentsClient/model/GetManualBadgesForUserResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetManualBadgesForUserResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesForUserResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesForUserResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserBadge.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetUserManualBadgesResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadge; -class CustomConfigParameters; - - -class GetManualBadgesForUserResponse - : public ModelBase -{ -public: - GetManualBadgesForUserResponse(); - virtual ~GetManualBadgesForUserResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetManualBadgesForUserResponse members - - - std::vector> getBadges() const; - bool badgesIsSet() const; - void unsetBadges(); - void setBadges(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Badges; - bool m_BadgesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesForUserResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetManualBadgesResponse.h b/client/include/FastCommentsClient/model/GetManualBadgesResponse.h deleted file mode 100644 index a072e72..0000000 --- a/client/include/FastCommentsClient/model/GetManualBadgesResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetManualBadgesResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/GetTenantManualBadgesResponse.h" -#include "FastCommentsClient/model/TenantBadge.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantBadge; -class CustomConfigParameters; - - -class GetManualBadgesResponse - : public ModelBase -{ -public: - GetManualBadgesResponse(); - virtual ~GetManualBadgesResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetManualBadgesResponse members - - - std::vector> getBadges() const; - bool badgesIsSet() const; - void unsetBadges(); - void setBadges(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Badges; - bool m_BadgesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetManualBadgesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetModerationCommentResponse.h b/client/include/FastCommentsClient/model/GetModerationCommentResponse.h deleted file mode 100644 index 83117b3..0000000 --- a/client/include/FastCommentsClient/model/GetModerationCommentResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetModerationCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationAPIComment.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/ModerationAPICommentResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class ModerationAPIComment; -class CustomConfigParameters; - - -class GetModerationCommentResponse - : public ModelBase -{ -public: - GetModerationCommentResponse(); - virtual ~GetModerationCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetModerationCommentResponse members - - - std::shared_ptr getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const std::shared_ptr& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Comment; - bool m_CommentIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetModerationCommentTextResponse.h b/client/include/FastCommentsClient/model/GetModerationCommentTextResponse.h deleted file mode 100644 index c66a30b..0000000 --- a/client/include/FastCommentsClient/model/GetModerationCommentTextResponse.h +++ /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 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetModerationCommentTextResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentTextResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentTextResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetCommentTextResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetModerationCommentTextResponse - : public ModelBase -{ -public: - GetModerationCommentTextResponse(); - virtual ~GetModerationCommentTextResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetModerationCommentTextResponse members - - - utility::string_t getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const utility::string_t& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - boost::optional m_Comment; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetModerationCommentTextResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetModeratorResponse_1.h b/client/include/FastCommentsClient/model/GetModeratorResponse_1.h deleted file mode 100644 index 66a2fdd..0000000 --- a/client/include/FastCommentsClient/model/GetModeratorResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetModeratorResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetModeratorResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/Moderator.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class Moderator; -class CustomConfigParameters; - - -class GetModeratorResponse_1 - : public ModelBase -{ -public: - GetModeratorResponse_1(); - virtual ~GetModeratorResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetModeratorResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getModerator() const; - bool moderatorIsSet() const; - void unsetModerator(); - void setModerator(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Moderator; - bool m_ModeratorIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetModeratorsResponse_1.h b/client/include/FastCommentsClient/model/GetModeratorsResponse_1.h deleted file mode 100644 index db595d3..0000000 --- a/client/include/FastCommentsClient/model/GetModeratorsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetModeratorsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetModeratorsResponse.h" -#include -#include "FastCommentsClient/model/Moderator.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class Moderator; -class CustomConfigParameters; - - -class GetModeratorsResponse_1 - : public ModelBase -{ -public: - GetModeratorsResponse_1(); - virtual ~GetModeratorsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetModeratorsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getModerators() const; - bool moderatorsIsSet() const; - void unsetModerators(); - void setModerators(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Moderators; - bool m_ModeratorsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetModeratorsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetNotificationCountResponse_1.h b/client/include/FastCommentsClient/model/GetNotificationCountResponse_1.h deleted file mode 100644 index 278332f..0000000 --- a/client/include/FastCommentsClient/model/GetNotificationCountResponse_1.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetNotificationCountResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCountResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCountResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetNotificationCountResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetNotificationCountResponse_1 - : public ModelBase -{ -public: - GetNotificationCountResponse_1(); - virtual ~GetNotificationCountResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetNotificationCountResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - double getCount() const; - bool countIsSet() const; - void unsetCount(); - void setCount(double value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - double m_Count; - bool m_CountIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationCountResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetNotificationsResponse_1.h b/client/include/FastCommentsClient/model/GetNotificationsResponse_1.h deleted file mode 100644 index 0295e68..0000000 --- a/client/include/FastCommentsClient/model/GetNotificationsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetNotificationsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetNotificationsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/UserNotification.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserNotification; -class CustomConfigParameters; - - -class GetNotificationsResponse_1 - : public ModelBase -{ -public: - GetNotificationsResponse_1(); - virtual ~GetNotificationsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetNotificationsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getNotifications() const; - bool notificationsIsSet() const; - void unsetNotifications(); - void setNotifications(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Notifications; - bool m_NotificationsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetNotificationsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetOfflineUsersResponse.h b/client/include/FastCommentsClient/model/GetOfflineUsersResponse.h deleted file mode 100644 index 6b80ef4..0000000 --- a/client/include/FastCommentsClient/model/GetOfflineUsersResponse.h +++ /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 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetOfflineUsersResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetOfflineUsersResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetOfflineUsersResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/PageUsersOfflineResponse.h" -#include "FastCommentsClient/model/PageUserEntry.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PageUserEntry; -class CustomConfigParameters; - - -class GetOfflineUsersResponse - : public ModelBase -{ -public: - GetOfflineUsersResponse(); - virtual ~GetOfflineUsersResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetOfflineUsersResponse members - - - utility::string_t getNextAfterUserId() const; - bool nextAfterUserIdIsSet() const; - void unsetNextAfterUserId(); - void setNextAfterUserId(const utility::string_t& value); - - utility::string_t getNextAfterName() const; - bool nextAfterNameIsSet() const; - void unsetNextAfterName(); - void setNextAfterName(const utility::string_t& value); - - std::vector> getUsers() const; - bool usersIsSet() const; - void unsetUsers(); - void setUsers(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - boost::optional m_NextAfterUserId; - - boost::optional m_NextAfterName; - - std::vector> m_Users; - bool m_UsersIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetOfflineUsersResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetOnlineUsersResponse.h b/client/include/FastCommentsClient/model/GetOnlineUsersResponse.h deleted file mode 100644 index b2a8da4..0000000 --- a/client/include/FastCommentsClient/model/GetOnlineUsersResponse.h +++ /dev/null @@ -1,178 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetOnlineUsersResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetOnlineUsersResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetOnlineUsersResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/PageUsersOnlineResponse.h" -#include "FastCommentsClient/model/PageUserEntry.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PageUserEntry; -class CustomConfigParameters; - - -class GetOnlineUsersResponse - : public ModelBase -{ -public: - GetOnlineUsersResponse(); - virtual ~GetOnlineUsersResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetOnlineUsersResponse members - - - utility::string_t getNextAfterUserId() const; - bool nextAfterUserIdIsSet() const; - void unsetNextAfterUserId(); - void setNextAfterUserId(const utility::string_t& value); - - utility::string_t getNextAfterName() const; - bool nextAfterNameIsSet() const; - void unsetNextAfterName(); - void setNextAfterName(const utility::string_t& value); - - double getTotalCount() const; - bool totalCountIsSet() const; - void unsetTotalCount(); - void setTotalCount(double value); - - double getAnonCount() const; - bool anonCountIsSet() const; - void unsetAnonCount(); - void setAnonCount(double value); - - std::vector> getUsers() const; - bool usersIsSet() const; - void unsetUsers(); - void setUsers(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - boost::optional m_NextAfterUserId; - - boost::optional m_NextAfterName; - - double m_TotalCount; - bool m_TotalCountIsSet; - - double m_AnonCount; - bool m_AnonCountIsSet; - - std::vector> m_Users; - bool m_UsersIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetOnlineUsersResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPagesPublicResponse.h b/client/include/FastCommentsClient/model/GetPagesPublicResponse.h deleted file mode 100644 index 7ca19d0..0000000 --- a/client/include/FastCommentsClient/model/GetPagesPublicResponse.h +++ /dev/null @@ -1,155 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetPagesPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/PublicPage.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetPublicPagesResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PublicPage; -class CustomConfigParameters; - - -class GetPagesPublicResponse - : public ModelBase -{ -public: - GetPagesPublicResponse(); - virtual ~GetPagesPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetPagesPublicResponse members - - - utility::string_t getNextCursor() const; - bool nextCursorIsSet() const; - void unsetNextCursor(); - void setNextCursor(const utility::string_t& value); - - std::vector> getPages() const; - bool pagesIsSet() const; - void unsetPages(); - void setPages(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - boost::optional m_NextCursor; - - std::vector> m_Pages; - bool m_PagesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h deleted file mode 100644 index 2c937a6..0000000 --- a/client/include/FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetPendingWebhookEventCountResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCountResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCountResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetPendingWebhookEventCountResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetPendingWebhookEventCountResponse_1 - : public ModelBase -{ -public: - GetPendingWebhookEventCountResponse_1(); - virtual ~GetPendingWebhookEventCountResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetPendingWebhookEventCountResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - double getCount() const; - bool countIsSet() const; - void unsetCount(); - void setCount(double value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - double m_Count; - bool m_CountIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventCountResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h b/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h deleted file mode 100644 index 4431d1a..0000000 --- a/client/include/FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetPendingWebhookEventsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/PendingCommentToSyncOutbound.h" -#include "FastCommentsClient/model/GetPendingWebhookEventsResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PendingCommentToSyncOutbound; -class CustomConfigParameters; - - -class GetPendingWebhookEventsResponse_1 - : public ModelBase -{ -public: - GetPendingWebhookEventsResponse_1(); - virtual ~GetPendingWebhookEventsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetPendingWebhookEventsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getPendingWebhookEvents() const; - bool pendingWebhookEventsIsSet() const; - void unsetPendingWebhookEvents(); - void setPendingWebhookEvents(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_PendingWebhookEvents; - bool m_PendingWebhookEventsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPendingWebhookEventsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPreBanSummaryResponse.h b/client/include/FastCommentsClient/model/GetPreBanSummaryResponse.h deleted file mode 100644 index 5507cb2..0000000 --- a/client/include/FastCommentsClient/model/GetPreBanSummaryResponse.h +++ /dev/null @@ -1,154 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetPreBanSummaryResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPreBanSummaryResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPreBanSummaryResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/PreBanSummary.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetPreBanSummaryResponse - : public ModelBase -{ -public: - GetPreBanSummaryResponse(); - virtual ~GetPreBanSummaryResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetPreBanSummaryResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector getUsernames() const; - bool usernamesIsSet() const; - void unsetUsernames(); - void setUsernames(const std::vector& value); - - double getCount() const; - bool countIsSet() const; - void unsetCount(); - void setCount(double value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector m_Usernames; - bool m_UsernamesIsSet; - - double m_Count; - bool m_CountIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetPreBanSummaryResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigResponse_1.h b/client/include/FastCommentsClient/model/GetQuestionConfigResponse_1.h deleted file mode 100644 index c963dfd..0000000 --- a/client/include/FastCommentsClient/model/GetQuestionConfigResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetQuestionConfigResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/QuestionConfig.h" -#include "FastCommentsClient/model/GetQuestionConfigResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionConfig; -class CustomConfigParameters; - - -class GetQuestionConfigResponse_1 - : public ModelBase -{ -public: - GetQuestionConfigResponse_1(); - virtual ~GetQuestionConfigResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetQuestionConfigResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getQuestionConfig() const; - bool questionConfigIsSet() const; - void unsetQuestionConfig(); - void setQuestionConfig(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_QuestionConfig; - bool m_QuestionConfigIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionConfigsResponse_1.h b/client/include/FastCommentsClient/model/GetQuestionConfigsResponse_1.h deleted file mode 100644 index e747a54..0000000 --- a/client/include/FastCommentsClient/model/GetQuestionConfigsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetQuestionConfigsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/QuestionConfig.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/GetQuestionConfigsResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionConfig; -class CustomConfigParameters; - - -class GetQuestionConfigsResponse_1 - : public ModelBase -{ -public: - GetQuestionConfigsResponse_1(); - virtual ~GetQuestionConfigsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetQuestionConfigsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getQuestionConfigs() const; - bool questionConfigsIsSet() const; - void unsetQuestionConfigs(); - void setQuestionConfigs(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_QuestionConfigs; - bool m_QuestionConfigsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionConfigsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionResultResponse_1.h b/client/include/FastCommentsClient/model/GetQuestionResultResponse_1.h deleted file mode 100644 index a250059..0000000 --- a/client/include/FastCommentsClient/model/GetQuestionResultResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetQuestionResultResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetQuestionResultResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/QuestionResult.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionResult; -class CustomConfigParameters; - - -class GetQuestionResultResponse_1 - : public ModelBase -{ -public: - GetQuestionResultResponse_1(); - virtual ~GetQuestionResultResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetQuestionResultResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getQuestionResult() const; - bool questionResultIsSet() const; - void unsetQuestionResult(); - void setQuestionResult(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_QuestionResult; - bool m_QuestionResultIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetQuestionResultsResponse_1.h b/client/include/FastCommentsClient/model/GetQuestionResultsResponse_1.h deleted file mode 100644 index c733336..0000000 --- a/client/include/FastCommentsClient/model/GetQuestionResultsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetQuestionResultsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetQuestionResultsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/QuestionResult.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class QuestionResult; -class CustomConfigParameters; - - -class GetQuestionResultsResponse_1 - : public ModelBase -{ -public: - GetQuestionResultsResponse_1(); - virtual ~GetQuestionResultsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetQuestionResultsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getQuestionResults() const; - bool questionResultsIsSet() const; - void unsetQuestionResults(); - void setQuestionResults(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_QuestionResults; - bool m_QuestionResultsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetQuestionResultsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSearchCommentsSummaryResponse.h b/client/include/FastCommentsClient/model/GetSearchCommentsSummaryResponse.h deleted file mode 100644 index 3bac150..0000000 --- a/client/include/FastCommentsClient/model/GetSearchCommentsSummaryResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetSearchCommentsSummaryResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchCommentsSummaryResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchCommentsSummaryResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationCommentSearchResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetSearchCommentsSummaryResponse - : public ModelBase -{ -public: - GetSearchCommentsSummaryResponse(); - virtual ~GetSearchCommentsSummaryResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetSearchCommentsSummaryResponse members - - - int32_t getCommentCount() const; - bool commentCountIsSet() const; - void unsetCommentCount(); - void setCommentCount(int32_t value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - int32_t m_CommentCount; - bool m_CommentCountIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchCommentsSummaryResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSearchPagesResponse.h b/client/include/FastCommentsClient/model/GetSearchPagesResponse.h deleted file mode 100644 index 3c20941..0000000 --- a/client/include/FastCommentsClient/model/GetSearchPagesResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetSearchPagesResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchPagesResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchPagesResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationPageSearchResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/ModerationPageSearchProjected.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class ModerationPageSearchProjected; -class CustomConfigParameters; - - -class GetSearchPagesResponse - : public ModelBase -{ -public: - GetSearchPagesResponse(); - virtual ~GetSearchPagesResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetSearchPagesResponse members - - - std::vector> getPages() const; - bool pagesIsSet() const; - void unsetPages(); - void setPages(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Pages; - bool m_PagesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchPagesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSearchSitesResponse.h b/client/include/FastCommentsClient/model/GetSearchSitesResponse.h deleted file mode 100644 index f47d439..0000000 --- a/client/include/FastCommentsClient/model/GetSearchSitesResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetSearchSitesResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSitesResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSitesResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationSiteSearchProjected.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/ModerationSiteSearchResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class ModerationSiteSearchProjected; -class CustomConfigParameters; - - -class GetSearchSitesResponse - : public ModelBase -{ -public: - GetSearchSitesResponse(); - virtual ~GetSearchSitesResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetSearchSitesResponse members - - - std::vector> getSites() const; - bool sitesIsSet() const; - void unsetSites(); - void setSites(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Sites; - bool m_SitesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSitesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSearchSuggestResponse.h b/client/include/FastCommentsClient/model/GetSearchSuggestResponse.h deleted file mode 100644 index c05c765..0000000 --- a/client/include/FastCommentsClient/model/GetSearchSuggestResponse.h +++ /dev/null @@ -1,158 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetSearchSuggestResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSuggestResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSuggestResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationUserSearchProjected.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/ModerationSuggestResponse.h" -#include "FastCommentsClient/model/ModerationPageSearchProjected.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class ModerationPageSearchProjected; -class ModerationUserSearchProjected; -class CustomConfigParameters; - - -class GetSearchSuggestResponse - : public ModelBase -{ -public: - GetSearchSuggestResponse(); - virtual ~GetSearchSuggestResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetSearchSuggestResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getPages() const; - bool pagesIsSet() const; - void unsetPages(); - void setPages(const std::vector>& value); - - std::vector> getUsers() const; - bool usersIsSet() const; - void unsetUsers(); - void setUsers(const std::vector>& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Pages; - bool m_PagesIsSet; - - std::vector> m_Users; - bool m_UsersIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchSuggestResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetSearchUsersResponse.h b/client/include/FastCommentsClient/model/GetSearchUsersResponse.h deleted file mode 100644 index f9ba3d7..0000000 --- a/client/include/FastCommentsClient/model/GetSearchUsersResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetSearchUsersResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchUsersResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchUsersResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationUserSearchProjected.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/ModerationUserSearchResponse.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class ModerationUserSearchProjected; -class CustomConfigParameters; - - -class GetSearchUsersResponse - : public ModelBase -{ -public: - GetSearchUsersResponse(); - virtual ~GetSearchUsersResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetSearchUsersResponse members - - - std::vector> getUsers() const; - bool usersIsSet() const; - void unsetUsers(); - void setUsers(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Users; - bool m_UsersIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetSearchUsersResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h b/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h deleted file mode 100644 index ce44327..0000000 --- a/client/include/FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantDailyUsagesResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsagesResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsagesResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetTenantDailyUsagesResponse.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APITenantDailyUsage.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITenantDailyUsage; -class CustomConfigParameters; - - -class GetTenantDailyUsagesResponse_1 - : public ModelBase -{ -public: - GetTenantDailyUsagesResponse_1(); - virtual ~GetTenantDailyUsagesResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantDailyUsagesResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getTenantDailyUsages() const; - bool tenantDailyUsagesIsSet() const; - void unsetTenantDailyUsages(); - void setTenantDailyUsages(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_TenantDailyUsages; - bool m_TenantDailyUsagesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantDailyUsagesResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantPackageResponse_1.h b/client/include/FastCommentsClient/model/GetTenantPackageResponse_1.h deleted file mode 100644 index 5a69aec..0000000 --- a/client/include/FastCommentsClient/model/GetTenantPackageResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantPackageResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackageResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackageResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetTenantPackageResponse.h" -#include "FastCommentsClient/model/TenantPackage.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantPackage; -class CustomConfigParameters; - - -class GetTenantPackageResponse_1 - : public ModelBase -{ -public: - GetTenantPackageResponse_1(); - virtual ~GetTenantPackageResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantPackageResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenantPackage() const; - bool tenantPackageIsSet() const; - void unsetTenantPackage(); - void setTenantPackage(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_TenantPackage; - bool m_TenantPackageIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackageResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantPackagesResponse_1.h b/client/include/FastCommentsClient/model/GetTenantPackagesResponse_1.h deleted file mode 100644 index 7395609..0000000 --- a/client/include/FastCommentsClient/model/GetTenantPackagesResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantPackagesResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackagesResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackagesResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/TenantPackage.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/GetTenantPackagesResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantPackage; -class CustomConfigParameters; - - -class GetTenantPackagesResponse_1 - : public ModelBase -{ -public: - GetTenantPackagesResponse_1(); - virtual ~GetTenantPackagesResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantPackagesResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getTenantPackages() const; - bool tenantPackagesIsSet() const; - void unsetTenantPackages(); - void setTenantPackages(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_TenantPackages; - bool m_TenantPackagesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantPackagesResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantResponse_1.h b/client/include/FastCommentsClient/model/GetTenantResponse_1.h deleted file mode 100644 index 0b37c19..0000000 --- a/client/include/FastCommentsClient/model/GetTenantResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITenant.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetTenantResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITenant; -class CustomConfigParameters; - - -class GetTenantResponse_1 - : public ModelBase -{ -public: - GetTenantResponse_1(); - virtual ~GetTenantResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenant() const; - bool tenantIsSet() const; - void unsetTenant(); - void setTenant(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Tenant; - bool m_TenantIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantUserResponse_1.h b/client/include/FastCommentsClient/model/GetTenantUserResponse_1.h deleted file mode 100644 index 72b7300..0000000 --- a/client/include/FastCommentsClient/model/GetTenantUserResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantUserResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUserResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUserResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/User.h" -#include -#include "FastCommentsClient/model/GetTenantUserResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class User; -class CustomConfigParameters; - - -class GetTenantUserResponse_1 - : public ModelBase -{ -public: - GetTenantUserResponse_1(); - virtual ~GetTenantUserResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantUserResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTenantUser() const; - bool tenantUserIsSet() const; - void unsetTenantUser(); - void setTenantUser(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_TenantUser; - bool m_TenantUserIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUserResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantUsersResponse_1.h b/client/include/FastCommentsClient/model/GetTenantUsersResponse_1.h deleted file mode 100644 index eaf0d96..0000000 --- a/client/include/FastCommentsClient/model/GetTenantUsersResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantUsersResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsersResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsersResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/User.h" -#include -#include "FastCommentsClient/model/GetTenantUsersResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class User; -class CustomConfigParameters; - - -class GetTenantUsersResponse_1 - : public ModelBase -{ -public: - GetTenantUsersResponse_1(); - virtual ~GetTenantUsersResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantUsersResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getTenantUsers() const; - bool tenantUsersIsSet() const; - void unsetTenantUsers(); - void setTenantUsers(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_TenantUsers; - bool m_TenantUsersIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantUsersResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTenantsResponse_1.h b/client/include/FastCommentsClient/model/GetTenantsResponse_1.h deleted file mode 100644 index 420f0f3..0000000 --- a/client/include/FastCommentsClient/model/GetTenantsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTenantsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITenant.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetTenantsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITenant; -class CustomConfigParameters; - - -class GetTenantsResponse_1 - : public ModelBase -{ -public: - GetTenantsResponse_1(); - virtual ~GetTenantsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTenantsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getTenants() const; - bool tenantsIsSet() const; - void unsetTenants(); - void setTenants(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Tenants; - bool m_TenantsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTenantsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTicketResponse_1.h b/client/include/FastCommentsClient/model/GetTicketResponse_1.h deleted file mode 100644 index c4a9661..0000000 --- a/client/include/FastCommentsClient/model/GetTicketResponse_1.h +++ /dev/null @@ -1,156 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTicketResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITicketDetail.h" -#include "FastCommentsClient/model/GetTicketResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITicketDetail; -class CustomConfigParameters; - - -class GetTicketResponse_1 - : public ModelBase -{ -public: - GetTicketResponse_1(); - virtual ~GetTicketResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTicketResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getTicket() const; - bool ticketIsSet() const; - void unsetTicket(); - void setTicket(const std::shared_ptr& value); - - std::vector getAvailableStates() const; - bool availableStatesIsSet() const; - void unsetAvailableStates(); - void setAvailableStates(std::vector value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Ticket; - bool m_TicketIsSet; - - std::vector m_AvailableStates; - bool m_AvailableStatesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTicketsResponse_1.h b/client/include/FastCommentsClient/model/GetTicketsResponse_1.h deleted file mode 100644 index 8367b53..0000000 --- a/client/include/FastCommentsClient/model/GetTicketsResponse_1.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTicketsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APITicket.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetTicketsResponse.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APITicket; -class CustomConfigParameters; - - -class GetTicketsResponse_1 - : public ModelBase -{ -public: - GetTicketsResponse_1(); - virtual ~GetTicketsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTicketsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getTickets() const; - bool ticketsIsSet() const; - void unsetTickets(); - void setTickets(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Tickets; - bool m_TicketsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTicketsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTranslationsResponse_1.h b/client/include/FastCommentsClient/model/GetTranslationsResponse_1.h deleted file mode 100644 index 288357b..0000000 --- a/client/include/FastCommentsClient/model/GetTranslationsResponse_1.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTranslationsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslationsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslationsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetTranslationsResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetTranslationsResponse_1 - : public ModelBase -{ -public: - GetTranslationsResponse_1(); - virtual ~GetTranslationsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTranslationsResponse_1 members - - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getTranslations() const; - bool translationsIsSet() const; - void unsetTranslations(); - void setTranslations(const std::map& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::map m_Translations; - bool m_TranslationsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslationsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTrustFactorResponse.h b/client/include/FastCommentsClient/model/GetTrustFactorResponse.h deleted file mode 100644 index 15ad825..0000000 --- a/client/include/FastCommentsClient/model/GetTrustFactorResponse.h +++ /dev/null @@ -1,153 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTrustFactorResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrustFactorResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrustFactorResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetUserTrustFactorResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetTrustFactorResponse - : public ModelBase -{ -public: - GetTrustFactorResponse(); - virtual ~GetTrustFactorResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTrustFactorResponse members - - - double getManualTrustFactor() const; - bool manualTrustFactorIsSet() const; - void unsetManualTrustFactor(); - void setManualTrustFactor(double value); - - double getAutoTrustFactor() const; - bool autoTrustFactorIsSet() const; - void unsetAutoTrustFactor(); - void setAutoTrustFactor(double value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - double m_ManualTrustFactor; - bool m_ManualTrustFactorIsSet; - - double m_AutoTrustFactor; - bool m_AutoTrustFactorIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrustFactorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h b/client/include/FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h deleted file mode 100644 index 913a903..0000000 --- a/client/include/FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserBadgeProgressByIdResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByIdResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByIdResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/UserBadgeProgress.h" -#include "FastCommentsClient/model/APIGetUserBadgeProgressResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadgeProgress; -class CustomConfigParameters; - - -class GetUserBadgeProgressByIdResponse - : public ModelBase -{ -public: - GetUserBadgeProgressByIdResponse(); - virtual ~GetUserBadgeProgressByIdResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserBadgeProgressByIdResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getUserBadgeProgress() const; - bool userBadgeProgressIsSet() const; - void unsetUserBadgeProgress(); - void setUserBadgeProgress(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_UserBadgeProgress; - bool m_UserBadgeProgressIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByIdResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h b/client/include/FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h deleted file mode 100644 index 104aa21..0000000 --- a/client/include/FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserBadgeProgressByUserIdResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByUserIdResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByUserIdResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/UserBadgeProgress.h" -#include "FastCommentsClient/model/APIGetUserBadgeProgressResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadgeProgress; -class CustomConfigParameters; - - -class GetUserBadgeProgressByUserIdResponse - : public ModelBase -{ -public: - GetUserBadgeProgressByUserIdResponse(); - virtual ~GetUserBadgeProgressByUserIdResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserBadgeProgressByUserIdResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getUserBadgeProgress() const; - bool userBadgeProgressIsSet() const; - void unsetUserBadgeProgress(); - void setUserBadgeProgress(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_UserBadgeProgress; - bool m_UserBadgeProgressIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressByUserIdResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgeProgressListResponse.h b/client/include/FastCommentsClient/model/GetUserBadgeProgressListResponse.h deleted file mode 100644 index 8f76075..0000000 --- a/client/include/FastCommentsClient/model/GetUserBadgeProgressListResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserBadgeProgressListResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressListResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressListResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/UserBadgeProgress.h" -#include -#include "FastCommentsClient/model/APIGetUserBadgeProgressListResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadgeProgress; -class CustomConfigParameters; - - -class GetUserBadgeProgressListResponse - : public ModelBase -{ -public: - GetUserBadgeProgressListResponse(); - virtual ~GetUserBadgeProgressListResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserBadgeProgressListResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getUserBadgeProgresses() const; - bool userBadgeProgressesIsSet() const; - void unsetUserBadgeProgresses(); - void setUserBadgeProgresses(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_UserBadgeProgresses; - bool m_UserBadgeProgressesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeProgressListResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgeResponse.h b/client/include/FastCommentsClient/model/GetUserBadgeResponse.h deleted file mode 100644 index e924ae9..0000000 --- a/client/include/FastCommentsClient/model/GetUserBadgeResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserBadgeResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserBadge.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIGetUserBadgeResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadge; -class CustomConfigParameters; - - -class GetUserBadgeResponse - : public ModelBase -{ -public: - GetUserBadgeResponse(); - virtual ~GetUserBadgeResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserBadgeResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getUserBadge() const; - bool userBadgeIsSet() const; - void unsetUserBadge(); - void setUserBadge(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_UserBadge; - bool m_UserBadgeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBadgesResponse.h b/client/include/FastCommentsClient/model/GetUserBadgesResponse.h deleted file mode 100644 index cb6372e..0000000 --- a/client/include/FastCommentsClient/model/GetUserBadgesResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserBadgesResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgesResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgesResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UserBadge.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/APIGetUserBadgesResponse.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserBadge; -class CustomConfigParameters; - - -class GetUserBadgesResponse - : public ModelBase -{ -public: - GetUserBadgesResponse(); - virtual ~GetUserBadgesResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserBadgesResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getUserBadges() const; - bool userBadgesIsSet() const; - void unsetUserBadges(); - void setUserBadges(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_UserBadges; - bool m_UserBadgesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBadgesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserBanPreferenceResponse.h b/client/include/FastCommentsClient/model/GetUserBanPreferenceResponse.h deleted file mode 100644 index d8de0f3..0000000 --- a/client/include/FastCommentsClient/model/GetUserBanPreferenceResponse.h +++ /dev/null @@ -1,146 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserBanPreferenceResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBanPreferenceResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBanPreferenceResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIModerateUserBanPreferences.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIModerateGetUserBanPreferencesResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APIModerateUserBanPreferences; -class CustomConfigParameters; - - -class GetUserBanPreferenceResponse - : public ModelBase -{ -public: - GetUserBanPreferenceResponse(); - virtual ~GetUserBanPreferenceResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserBanPreferenceResponse members - - - std::shared_ptr getPreferences() const; - bool preferencesIsSet() const; - void unsetPreferences(); - void setPreferences(const std::shared_ptr& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - boost::optional> m_Preferences; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserBanPreferenceResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_1.h b/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_1.h deleted file mode 100644 index 41c47e0..0000000 --- a/client/include/FastCommentsClient/model/GetUserInternalProfileResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserInternalProfileResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetUserInternalProfileResponse.h" -#include "FastCommentsClient/model/GetUserInternalProfileResponse_profile.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class GetUserInternalProfileResponse_profile; -class CustomConfigParameters; - - -class GetUserInternalProfileResponse_1 - : public ModelBase -{ -public: - GetUserInternalProfileResponse_1(); - virtual ~GetUserInternalProfileResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserInternalProfileResponse_1 members - - - std::shared_ptr getProfile() const; - bool profileIsSet() const; - void unsetProfile(); - void setProfile(const std::shared_ptr& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Profile; - bool m_ProfileIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserInternalProfileResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserNotificationCountResponse_1.h b/client/include/FastCommentsClient/model/GetUserNotificationCountResponse_1.h deleted file mode 100644 index 5af8504..0000000 --- a/client/include/FastCommentsClient/model/GetUserNotificationCountResponse_1.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserNotificationCountResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCountResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCountResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/GetUserNotificationCountResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetUserNotificationCountResponse_1 - : public ModelBase -{ -public: - GetUserNotificationCountResponse_1(); - virtual ~GetUserNotificationCountResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserNotificationCountResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - int64_t getCount() const; - bool countIsSet() const; - void unsetCount(); - void setCount(int64_t value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - int64_t m_Count; - bool m_CountIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationCountResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserNotificationsResponse.h b/client/include/FastCommentsClient/model/GetUserNotificationsResponse.h deleted file mode 100644 index 1b16112..0000000 --- a/client/include/FastCommentsClient/model/GetUserNotificationsResponse.h +++ /dev/null @@ -1,176 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserNotificationsResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationsResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationsResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/GetMyNotificationsResponse.h" -#include -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/RenderableUserNotification.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class RenderableUserNotification; -class CustomConfigParameters; - - -class GetUserNotificationsResponse - : public ModelBase -{ -public: - GetUserNotificationsResponse(); - virtual ~GetUserNotificationsResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserNotificationsResponse members - - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getTranslations() const; - bool translationsIsSet() const; - void unsetTranslations(); - void setTranslations(const std::map& value); - - bool isIsSubscribed() const; - bool isSubscribedIsSet() const; - void unsetIsSubscribed(); - void setIsSubscribed(bool value); - - bool isHasMore() const; - bool hasMoreIsSet() const; - void unsetHasMore(); - void setHasMore(bool value); - - std::vector> getNotifications() const; - bool notificationsIsSet() const; - void unsetNotifications(); - void setNotifications(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::map m_Translations; - bool m_TranslationsIsSet; - - bool m_IsSubscribed; - bool m_IsSubscribedIsSet; - - bool m_HasMore; - bool m_HasMoreIsSet; - - std::vector> m_Notifications; - bool m_NotificationsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserNotificationsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h b/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h deleted file mode 100644 index b90cf1f..0000000 --- a/client/include/FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserPresenceStatusesResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatusesResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatusesResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/GetUserPresenceStatusesResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetUserPresenceStatusesResponse_1 - : public ModelBase -{ -public: - GetUserPresenceStatusesResponse_1(); - virtual ~GetUserPresenceStatusesResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserPresenceStatusesResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getUserIdsOnline() const; - bool userIdsOnlineIsSet() const; - void unsetUserIdsOnline(); - void setUserIdsOnline(std::map value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map m_UserIdsOnline; - bool m_UserIdsOnlineIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserPresenceStatusesResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserReactsPublicResponse.h b/client/include/FastCommentsClient/model/GetUserReactsPublicResponse.h deleted file mode 100644 index 74b843c..0000000 --- a/client/include/FastCommentsClient/model/GetUserReactsPublicResponse.h +++ /dev/null @@ -1,146 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserReactsPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserReactsPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserReactsPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/UserReactsResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetUserReactsPublicResponse - : public ModelBase -{ -public: - GetUserReactsPublicResponse(); - virtual ~GetUserReactsPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserReactsPublicResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::map> getReacts() const; - bool reactsIsSet() const; - void unsetReacts(); - void setReacts(const std::map>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map> m_Reacts; - bool m_ReactsIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserReactsPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUserResponse_1.h b/client/include/FastCommentsClient/model/GetUserResponse_1.h deleted file mode 100644 index e4e2a58..0000000 --- a/client/include/FastCommentsClient/model/GetUserResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUserResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/User.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/GetUserResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class User; -class CustomConfigParameters; - - -class GetUserResponse_1 - : public ModelBase -{ -public: - GetUserResponse_1(); - virtual ~GetUserResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUserResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_User; - bool m_UserIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUserResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetUsersInfoResponse.h b/client/include/FastCommentsClient/model/GetUsersInfoResponse.h deleted file mode 100644 index e61ba9b..0000000 --- a/client/include/FastCommentsClient/model/GetUsersInfoResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetUsersInfoResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetUsersInfoResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetUsersInfoResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/PageUserEntry.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/PageUsersInfoResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PageUserEntry; -class CustomConfigParameters; - - -class GetUsersInfoResponse - : public ModelBase -{ -public: - GetUsersInfoResponse(); - virtual ~GetUsersInfoResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetUsersInfoResponse members - - - std::vector> getUsers() const; - bool usersIsSet() const; - void unsetUsers(); - void setUsers(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Users; - bool m_UsersIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetUsersInfoResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetV1PageLikesResponse.h b/client/include/FastCommentsClient/model/GetV1PageLikesResponse.h deleted file mode 100644 index d554551..0000000 --- a/client/include/FastCommentsClient/model/GetV1PageLikesResponse.h +++ /dev/null @@ -1,169 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetV1PageLikesResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetV1PageLikesResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV1PageLikesResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/GetV1PageLikes.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetV1PageLikesResponse - : public ModelBase -{ -public: - GetV1PageLikesResponse(); - virtual ~GetV1PageLikesResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetV1PageLikesResponse members - - - utility::string_t getUrlIdWS() const; - bool urlIdWSIsSet() const; - void unsetUrlIdWS(); - void setUrlIdWS(const utility::string_t& value); - - bool isDidLike() const; - bool didLikeIsSet() const; - void unsetDidLike(); - void setDidLike(bool value); - - int32_t getCommentCount() const; - bool commentCountIsSet() const; - void unsetCommentCount(); - void setCommentCount(int32_t value); - - int32_t getLikeCount() const; - bool likeCountIsSet() const; - void unsetLikeCount(); - void setLikeCount(int32_t value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - utility::string_t m_UrlIdWS; - bool m_UrlIdWSIsSet; - - bool m_DidLike; - bool m_DidLikeIsSet; - - int32_t m_CommentCount; - bool m_CommentCountIsSet; - - int32_t m_LikeCount; - bool m_LikeCountIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetV1PageLikesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse_1.h b/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse_1.h deleted file mode 100644 index 7edb7ae..0000000 --- a/client/include/FastCommentsClient/model/GetV2PageReactUsersResponse_1.h +++ /dev/null @@ -1,146 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetV2PageReactUsersResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactUsersResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactUsersResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetV2PageReactUsersResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetV2PageReactUsersResponse_1 - : public ModelBase -{ -public: - GetV2PageReactUsersResponse_1(); - virtual ~GetV2PageReactUsersResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetV2PageReactUsersResponse_1 members - - - std::vector getUserNames() const; - bool userNamesIsSet() const; - void unsetUserNames(); - void setUserNames(const std::vector& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector m_UserNames; - bool m_UserNamesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactUsersResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetV2PageReactsResponse.h b/client/include/FastCommentsClient/model/GetV2PageReactsResponse.h deleted file mode 100644 index f5f43d5..0000000 --- a/client/include/FastCommentsClient/model/GetV2PageReactsResponse.h +++ /dev/null @@ -1,158 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetV2PageReactsResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactsResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactsResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetV2PageReacts.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class GetV2PageReactsResponse - : public ModelBase -{ -public: - GetV2PageReactsResponse(); - virtual ~GetV2PageReactsResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetV2PageReactsResponse members - - - std::vector getReactedIds() const; - bool reactedIdsIsSet() const; - void unsetReactedIds(); - void setReactedIds(const std::vector& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getCounts() const; - bool countsIsSet() const; - void unsetCounts(); - void setCounts(std::map value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector m_ReactedIds; - bool m_ReactedIdsIsSet; - - std::map m_Counts; - bool m_CountsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetV2PageReactsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/GetVotesForUserResponse_1.h b/client/include/FastCommentsClient/model/GetVotesForUserResponse_1.h deleted file mode 100644 index 1bf4e79..0000000 --- a/client/include/FastCommentsClient/model/GetVotesForUserResponse_1.h +++ /dev/null @@ -1,164 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetVotesForUserResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUserResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUserResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GetVotesForUserResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/PublicVote.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PublicVote; -class CustomConfigParameters; - - -class GetVotesForUserResponse_1 - : public ModelBase -{ -public: - GetVotesForUserResponse_1(); - virtual ~GetVotesForUserResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetVotesForUserResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getAppliedAuthorizedVotes() const; - bool appliedAuthorizedVotesIsSet() const; - void unsetAppliedAuthorizedVotes(); - void setAppliedAuthorizedVotes(const std::vector>& value); - - std::vector> getAppliedAnonymousVotes() const; - bool appliedAnonymousVotesIsSet() const; - void unsetAppliedAnonymousVotes(); - void setAppliedAnonymousVotes(const std::vector>& value); - - std::vector> getPendingVotes() const; - bool pendingVotesIsSet() const; - void unsetPendingVotes(); - void setPendingVotes(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_AppliedAuthorizedVotes; - bool m_AppliedAuthorizedVotesIsSet; - - std::vector> m_AppliedAnonymousVotes; - bool m_AppliedAnonymousVotesIsSet; - - std::vector> m_PendingVotes; - bool m_PendingVotesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesForUserResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/GetVotesResponse_1.h b/client/include/FastCommentsClient/model/GetVotesResponse_1.h deleted file mode 100644 index ecee534..0000000 --- a/client/include/FastCommentsClient/model/GetVotesResponse_1.h +++ /dev/null @@ -1,164 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetVotesResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/PublicVote.h" -#include -#include "FastCommentsClient/model/GetVotesResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class PublicVote; -class CustomConfigParameters; - - -class GetVotesResponse_1 - : public ModelBase -{ -public: - GetVotesResponse_1(); - virtual ~GetVotesResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetVotesResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getAppliedAuthorizedVotes() const; - bool appliedAuthorizedVotesIsSet() const; - void unsetAppliedAuthorizedVotes(); - void setAppliedAuthorizedVotes(const std::vector>& value); - - std::vector> getAppliedAnonymousVotes() const; - bool appliedAnonymousVotesIsSet() const; - void unsetAppliedAnonymousVotes(); - void setAppliedAnonymousVotes(const std::vector>& value); - - std::vector> getPendingVotes() const; - bool pendingVotesIsSet() const; - void unsetPendingVotes(); - void setPendingVotes(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_AppliedAuthorizedVotes; - bool m_AppliedAuthorizedVotesIsSet; - - std::vector> m_AppliedAnonymousVotes; - bool m_AppliedAnonymousVotesIsSet; - - std::vector> m_PendingVotes; - bool m_PendingVotesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetVotesResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/LockCommentResponse.h b/client/include/FastCommentsClient/model/LockCommentResponse.h deleted file mode 100644 index be59d96..0000000 --- a/client/include/FastCommentsClient/model/LockCommentResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * LockCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_LockCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_LockCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class LockCommentResponse - : public ModelBase -{ -public: - LockCommentResponse(); - virtual ~LockCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// LockCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_LockCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PatchHashTagResponse.h b/client/include/FastCommentsClient/model/PatchHashTagResponse.h deleted file mode 100644 index f7831c8..0000000 --- a/client/include/FastCommentsClient/model/PatchHashTagResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PatchHashTagResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PatchHashTagResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PatchHashTagResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/TenantHashTag.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/UpdateHashTagResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class TenantHashTag; -class CustomConfigParameters; - - -class PatchHashTagResponse - : public ModelBase -{ -public: - PatchHashTagResponse(); - virtual ~PatchHashTagResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PatchHashTagResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getHashTag() const; - bool hashTagIsSet() const; - void unsetHashTag(); - void setHashTag(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_HashTag; - bool m_HashTagIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PatchHashTagResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PinCommentResponse.h b/client/include/FastCommentsClient/model/PinCommentResponse.h deleted file mode 100644 index 238f999..0000000 --- a/client/include/FastCommentsClient/model/PinCommentResponse.h +++ /dev/null @@ -1,151 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PinCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PinCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PinCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/ChangeCommentPinStatusResponse.h" -#include "FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class Record_string__before_string_or_null__after_string_or_null___value; -class CustomConfigParameters; - - -class PinCommentResponse - : public ModelBase -{ -public: - PinCommentResponse(); - virtual ~PinCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PinCommentResponse members - - - /// - /// Construct a type with a set of properties K of type T - /// - std::map> getCommentPositions() const; - bool commentPositionsIsSet() const; - void unsetCommentPositions(); - void setCommentPositions(const std::map>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::map> m_CommentPositions; - bool m_CommentPositionsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PinCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostAdjustCommentVotesResponse.h b/client/include/FastCommentsClient/model/PostAdjustCommentVotesResponse.h deleted file mode 100644 index 177a9b4..0000000 --- a/client/include/FastCommentsClient/model/PostAdjustCommentVotesResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostAdjustCommentVotesResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostAdjustCommentVotesResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostAdjustCommentVotesResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/AdjustVotesResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostAdjustCommentVotesResponse - : public ModelBase -{ -public: - PostAdjustCommentVotesResponse(); - virtual ~PostAdjustCommentVotesResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostAdjustCommentVotesResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - int32_t getNewCommentVotes() const; - bool newCommentVotesIsSet() const; - void unsetNewCommentVotes(); - void setNewCommentVotes(int32_t value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - int32_t m_NewCommentVotes; - bool m_NewCommentVotesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostAdjustCommentVotesResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostApiExportResponse.h b/client/include/FastCommentsClient/model/PostApiExportResponse.h deleted file mode 100644 index 711dfe2..0000000 --- a/client/include/FastCommentsClient/model/PostApiExportResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostApiExportResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostApiExportResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostApiExportResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/ModerationExportResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostApiExportResponse - : public ModelBase -{ -public: - PostApiExportResponse(); - virtual ~PostApiExportResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostApiExportResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getBatchJobId() const; - bool batchJobIdIsSet() const; - void unsetBatchJobId(); - void setBatchJobId(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_BatchJobId; - bool m_BatchJobIdIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostApiExportResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostBanUserFromCommentResponse.h b/client/include/FastCommentsClient/model/PostBanUserFromCommentResponse.h deleted file mode 100644 index 7da292d..0000000 --- a/client/include/FastCommentsClient/model/PostBanUserFromCommentResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostBanUserFromCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserFromCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserFromCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/BanUserFromCommentResult.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIBanUserChangeLog.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APIBanUserChangeLog; -class CustomConfigParameters; - - -class PostBanUserFromCommentResponse - : public ModelBase -{ -public: - PostBanUserFromCommentResponse(); - virtual ~PostBanUserFromCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostBanUserFromCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getChangelog() const; - bool changelogIsSet() const; - void unsetChangelog(); - void setChangelog(const std::shared_ptr& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Changelog; - bool m_ChangelogIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserFromCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostBanUserUndoResponse.h b/client/include/FastCommentsClient/model/PostBanUserUndoResponse.h deleted file mode 100644 index 1e90e6c..0000000 --- a/client/include/FastCommentsClient/model/PostBanUserUndoResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostBanUserUndoResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserUndoResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserUndoResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostBanUserUndoResponse - : public ModelBase -{ -public: - PostBanUserUndoResponse(); - virtual ~PostBanUserUndoResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostBanUserUndoResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostBanUserUndoResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostBulkPreBanSummaryResponse.h b/client/include/FastCommentsClient/model/PostBulkPreBanSummaryResponse.h deleted file mode 100644 index 3e326b4..0000000 --- a/client/include/FastCommentsClient/model/PostBulkPreBanSummaryResponse.h +++ /dev/null @@ -1,178 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostBulkPreBanSummaryResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostBulkPreBanSummaryResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostBulkPreBanSummaryResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/BulkPreBanSummary.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostBulkPreBanSummaryResponse - : public ModelBase -{ -public: - PostBulkPreBanSummaryResponse(); - virtual ~PostBulkPreBanSummaryResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostBulkPreBanSummaryResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - int32_t getTotalRelatedCommentCount() const; - bool totalRelatedCommentCountIsSet() const; - void unsetTotalRelatedCommentCount(); - void setTotalRelatedCommentCount(int32_t value); - - std::vector getEmailDomains() const; - bool emailDomainsIsSet() const; - void unsetEmailDomains(); - void setEmailDomains(const std::vector& value); - - std::vector getEmails() const; - bool emailsIsSet() const; - void unsetEmails(); - void setEmails(const std::vector& value); - - std::vector getUserIds() const; - bool userIdsIsSet() const; - void unsetUserIds(); - void setUserIds(const std::vector& value); - - std::vector getIpHashes() const; - bool ipHashesIsSet() const; - void unsetIpHashes(); - void setIpHashes(const std::vector& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - int32_t m_TotalRelatedCommentCount; - bool m_TotalRelatedCommentCountIsSet; - - std::vector m_EmailDomains; - bool m_EmailDomainsIsSet; - - std::vector m_Emails; - bool m_EmailsIsSet; - - std::vector m_UserIds; - bool m_UserIdsIsSet; - - std::vector m_IpHashes; - bool m_IpHashesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostBulkPreBanSummaryResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostCommentsByIdsResponse.h b/client/include/FastCommentsClient/model/PostCommentsByIdsResponse.h deleted file mode 100644 index c297f51..0000000 --- a/client/include/FastCommentsClient/model/PostCommentsByIdsResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostCommentsByIdsResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostCommentsByIdsResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostCommentsByIdsResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ModerationAPIComment.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" -#include "FastCommentsClient/model/ModerationAPIChildCommentsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class ModerationAPIComment; -class CustomConfigParameters; - - -class PostCommentsByIdsResponse - : public ModelBase -{ -public: - PostCommentsByIdsResponse(); - virtual ~PostCommentsByIdsResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostCommentsByIdsResponse members - - - std::vector> getComments() const; - bool commentsIsSet() const; - void unsetComments(); - void setComments(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Comments; - bool m_CommentsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostCommentsByIdsResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostFlagCommentResponse.h b/client/include/FastCommentsClient/model/PostFlagCommentResponse.h deleted file mode 100644 index 89bf4da..0000000 --- a/client/include/FastCommentsClient/model/PostFlagCommentResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostFlagCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostFlagCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostFlagCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostFlagCommentResponse - : public ModelBase -{ -public: - PostFlagCommentResponse(); - virtual ~PostFlagCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostFlagCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostFlagCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h index 5779b46..6f2d51c 100644 --- a/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h +++ b/client/include/FastCommentsClient/model/PostRemoveCommentResponse.h @@ -18,24 +18,19 @@ #ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ #define ORG_OPENAPITOOLS_CLIENT_MODEL_PostRemoveCommentResponse_H_ -#include #include #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/DeleteCommentResult.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" #include "FastCommentsClient/model/RemoveCommentActionResponse.h" #include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" namespace org { namespace openapitools { namespace client { namespace model { -class CustomConfigParameters; class PostRemoveCommentResponse @@ -66,75 +61,19 @@ class PostRemoveCommentResponse void unsetAction(); void setAction(const utility::string_t& value); - std::shared_ptr getStatus() const; + utility::string_t getStatus() const; bool statusIsSet() const; void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); + void setStatus(const utility::string_t& value); protected: utility::string_t m_Action; bool m_ActionIsSet; - std::shared_ptr m_Status; + utility::string_t m_Status; bool m_StatusIsSet; - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - }; diff --git a/client/include/FastCommentsClient/model/PostRestoreDeletedCommentResponse.h b/client/include/FastCommentsClient/model/PostRestoreDeletedCommentResponse.h deleted file mode 100644 index 7f45c4e..0000000 --- a/client/include/FastCommentsClient/model/PostRestoreDeletedCommentResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostRestoreDeletedCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostRestoreDeletedCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostRestoreDeletedCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostRestoreDeletedCommentResponse - : public ModelBase -{ -public: - PostRestoreDeletedCommentResponse(); - virtual ~PostRestoreDeletedCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostRestoreDeletedCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostRestoreDeletedCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h b/client/include/FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h deleted file mode 100644 index 8b19e75..0000000 --- a/client/include/FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostSetCommentApprovalStatusResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentApprovalStatusResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentApprovalStatusResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/SetCommentApprovedResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostSetCommentApprovalStatusResponse - : public ModelBase -{ -public: - PostSetCommentApprovalStatusResponse(); - virtual ~PostSetCommentApprovalStatusResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostSetCommentApprovalStatusResponse members - - - bool isDidResetFlaggedCount() const; - bool didResetFlaggedCountIsSet() const; - void unsetDidResetFlaggedCount(); - void setDidResetFlaggedCount(bool value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - bool m_DidResetFlaggedCount; - bool m_DidResetFlaggedCountIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentApprovalStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostSetCommentReviewStatusResponse.h b/client/include/FastCommentsClient/model/PostSetCommentReviewStatusResponse.h deleted file mode 100644 index f15e32b..0000000 --- a/client/include/FastCommentsClient/model/PostSetCommentReviewStatusResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostSetCommentReviewStatusResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentReviewStatusResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentReviewStatusResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostSetCommentReviewStatusResponse - : public ModelBase -{ -public: - PostSetCommentReviewStatusResponse(); - virtual ~PostSetCommentReviewStatusResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostSetCommentReviewStatusResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentReviewStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostSetCommentSpamStatusResponse.h b/client/include/FastCommentsClient/model/PostSetCommentSpamStatusResponse.h deleted file mode 100644 index 426aea0..0000000 --- a/client/include/FastCommentsClient/model/PostSetCommentSpamStatusResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostSetCommentSpamStatusResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentSpamStatusResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentSpamStatusResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostSetCommentSpamStatusResponse - : public ModelBase -{ -public: - PostSetCommentSpamStatusResponse(); - virtual ~PostSetCommentSpamStatusResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostSetCommentSpamStatusResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentSpamStatusResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostSetCommentTextResponse.h b/client/include/FastCommentsClient/model/PostSetCommentTextResponse.h deleted file mode 100644 index bd89ada..0000000 --- a/client/include/FastCommentsClient/model/PostSetCommentTextResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostSetCommentTextResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentTextResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentTextResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/SetCommentTextResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostSetCommentTextResponse - : public ModelBase -{ -public: - PostSetCommentTextResponse(); - virtual ~PostSetCommentTextResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostSetCommentTextResponse members - - - utility::string_t getNewCommentTextHTML() const; - bool newCommentTextHTMLIsSet() const; - void unsetNewCommentTextHTML(); - void setNewCommentTextHTML(const utility::string_t& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - utility::string_t m_NewCommentTextHTML; - bool m_NewCommentTextHTMLIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostSetCommentTextResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostUnFlagCommentResponse.h b/client/include/FastCommentsClient/model/PostUnFlagCommentResponse.h deleted file mode 100644 index a07a7f1..0000000 --- a/client/include/FastCommentsClient/model/PostUnFlagCommentResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostUnFlagCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostUnFlagCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostUnFlagCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PostUnFlagCommentResponse - : public ModelBase -{ -public: - PostUnFlagCommentResponse(); - virtual ~PostUnFlagCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostUnFlagCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostUnFlagCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PostVoteResponse.h b/client/include/FastCommentsClient/model/PostVoteResponse.h deleted file mode 100644 index d1ff6f4..0000000 --- a/client/include/FastCommentsClient/model/PostVoteResponse.h +++ /dev/null @@ -1,171 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PostVoteResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PostVoteResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PostVoteResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/VoteResponseUser.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/VoteResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class VoteResponseUser; -class CustomConfigParameters; - - -class PostVoteResponse - : public ModelBase -{ -public: - PostVoteResponse(); - virtual ~PostVoteResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PostVoteResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getVoteId() const; - bool voteIdIsSet() const; - void unsetVoteId(); - void setVoteId(const utility::string_t& value); - - bool isIsVerified() const; - bool isVerifiedIsSet() const; - void unsetIsVerified(); - void setIsVerified(bool value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - utility::string_t getEditKey() const; - bool editKeyIsSet() const; - void unsetEditKey(); - void setEditKey(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_VoteId; - bool m_VoteIdIsSet; - - bool m_IsVerified; - bool m_IsVerifiedIsSet; - - std::shared_ptr m_User; - bool m_UserIsSet; - - utility::string_t m_EditKey; - bool m_EditKeyIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PostVoteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PutAwardBadgeResponse.h b/client/include/FastCommentsClient/model/PutAwardBadgeResponse.h deleted file mode 100644 index 2bff695..0000000 --- a/client/include/FastCommentsClient/model/PutAwardBadgeResponse.h +++ /dev/null @@ -1,156 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PutAwardBadgeResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutAwardBadgeResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PutAwardBadgeResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CommentUserBadgeInfo.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/AwardUserBadgeResponse.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CommentUserBadgeInfo; -class CustomConfigParameters; - - -class PutAwardBadgeResponse - : public ModelBase -{ -public: - PutAwardBadgeResponse(); - virtual ~PutAwardBadgeResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PutAwardBadgeResponse members - - - std::vector getNotes() const; - bool notesIsSet() const; - void unsetNotes(); - void setNotes(const std::vector& value); - - std::vector> getBadges() const; - bool badgesIsSet() const; - void unsetBadges(); - void setBadges(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector m_Notes; - bool m_NotesIsSet; - - std::vector> m_Badges; - bool m_BadgesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PutAwardBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PutCloseThreadResponse.h b/client/include/FastCommentsClient/model/PutCloseThreadResponse.h deleted file mode 100644 index a9105dd..0000000 --- a/client/include/FastCommentsClient/model/PutCloseThreadResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PutCloseThreadResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutCloseThreadResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PutCloseThreadResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PutCloseThreadResponse - : public ModelBase -{ -public: - PutCloseThreadResponse(); - virtual ~PutCloseThreadResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PutCloseThreadResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PutCloseThreadResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PutRemoveBadgeResponse.h b/client/include/FastCommentsClient/model/PutRemoveBadgeResponse.h deleted file mode 100644 index 0a9d759..0000000 --- a/client/include/FastCommentsClient/model/PutRemoveBadgeResponse.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PutRemoveBadgeResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutRemoveBadgeResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PutRemoveBadgeResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CommentUserBadgeInfo.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/RemoveUserBadgeResponse.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CommentUserBadgeInfo; -class CustomConfigParameters; - - -class PutRemoveBadgeResponse - : public ModelBase -{ -public: - PutRemoveBadgeResponse(); - virtual ~PutRemoveBadgeResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PutRemoveBadgeResponse members - - - std::vector> getBadges() const; - bool badgesIsSet() const; - void unsetBadges(); - void setBadges(const std::vector>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::vector> m_Badges; - bool m_BadgesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PutRemoveBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/PutReopenThreadResponse.h b/client/include/FastCommentsClient/model/PutReopenThreadResponse.h deleted file mode 100644 index 8a49506..0000000 --- a/client/include/FastCommentsClient/model/PutReopenThreadResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * PutReopenThreadResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_PutReopenThreadResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_PutReopenThreadResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class PutReopenThreadResponse - : public ModelBase -{ -public: - PutReopenThreadResponse(); - virtual ~PutReopenThreadResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// PutReopenThreadResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_PutReopenThreadResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ReactFeedPostPublicResponse.h b/client/include/FastCommentsClient/model/ReactFeedPostPublicResponse.h deleted file mode 100644 index 1e26125..0000000 --- a/client/include/FastCommentsClient/model/ReactFeedPostPublicResponse.h +++ /dev/null @@ -1,153 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * ReactFeedPostPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/ReactFeedPostResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class ReactFeedPostPublicResponse - : public ModelBase -{ -public: - ReactFeedPostPublicResponse(); - virtual ~ReactFeedPostPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// ReactFeedPostPublicResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReactType() const; - bool reactTypeIsSet() const; - void unsetReactType(); - void setReactType(const utility::string_t& value); - - bool isIsUndo() const; - bool isUndoIsSet() const; - void unsetIsUndo(); - void setIsUndo(bool value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_ReactType; - bool m_ReactTypeIsSet; - - bool m_IsUndo; - bool m_IsUndoIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ReactFeedPostPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/RenderEmailTemplateResponse_1.h b/client/include/FastCommentsClient/model/RenderEmailTemplateResponse_1.h deleted file mode 100644 index 7c2defb..0000000 --- a/client/include/FastCommentsClient/model/RenderEmailTemplateResponse_1.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * RenderEmailTemplateResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/RenderEmailTemplateResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class RenderEmailTemplateResponse_1 - : public ModelBase -{ -public: - RenderEmailTemplateResponse_1(); - virtual ~RenderEmailTemplateResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// RenderEmailTemplateResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getHtml() const; - bool htmlIsSet() const; - void unsetHtml(); - void setHtml(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Html; - bool m_HtmlIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_RenderEmailTemplateResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/ReplaceTenantPackageResponse.h b/client/include/FastCommentsClient/model/ReplaceTenantPackageResponse.h deleted file mode 100644 index 56a8cc0..0000000 --- a/client/include/FastCommentsClient/model/ReplaceTenantPackageResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * ReplaceTenantPackageResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantPackageResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantPackageResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class ReplaceTenantPackageResponse - : public ModelBase -{ -public: - ReplaceTenantPackageResponse(); - virtual ~ReplaceTenantPackageResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// ReplaceTenantPackageResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantPackageResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ReplaceTenantUserResponse.h b/client/include/FastCommentsClient/model/ReplaceTenantUserResponse.h deleted file mode 100644 index a2f288a..0000000 --- a/client/include/FastCommentsClient/model/ReplaceTenantUserResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * ReplaceTenantUserResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantUserResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantUserResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class ReplaceTenantUserResponse - : public ModelBase -{ -public: - ReplaceTenantUserResponse(); - virtual ~ReplaceTenantUserResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// ReplaceTenantUserResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ReplaceTenantUserResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ResetUserNotificationCountResponse.h b/client/include/FastCommentsClient/model/ResetUserNotificationCountResponse.h deleted file mode 100644 index dfe860d..0000000 --- a/client/include/FastCommentsClient/model/ResetUserNotificationCountResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * ResetUserNotificationCountResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationCountResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationCountResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/ResetUserNotificationsResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class ResetUserNotificationCountResponse - : public ModelBase -{ -public: - ResetUserNotificationCountResponse(); - virtual ~ResetUserNotificationCountResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// ResetUserNotificationCountResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationCountResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/ResetUserNotificationsResponse_1.h b/client/include/FastCommentsClient/model/ResetUserNotificationsResponse_1.h deleted file mode 100644 index bcf2eb1..0000000 --- a/client/include/FastCommentsClient/model/ResetUserNotificationsResponse_1.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * ResetUserNotificationsResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationsResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationsResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/ResetUserNotificationsResponse.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class ResetUserNotificationsResponse_1 - : public ModelBase -{ -public: - ResetUserNotificationsResponse_1(); - virtual ~ResetUserNotificationsResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// ResetUserNotificationsResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_ResetUserNotificationsResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/SaveCommentResponse.h b/client/include/FastCommentsClient/model/SaveCommentResponse.h deleted file mode 100644 index df20791..0000000 --- a/client/include/FastCommentsClient/model/SaveCommentResponse.h +++ /dev/null @@ -1,169 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * SaveCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIComment.h" -#include "FastCommentsClient/model/UserSessionInfo.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/APISaveCommentResponse.h" -#include -#include "FastCommentsClient/Object.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class APIComment; -class UserSessionInfo; -class CustomConfigParameters; - - -class SaveCommentResponse - : public ModelBase -{ -public: - SaveCommentResponse(); - virtual ~SaveCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// SaveCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const std::shared_ptr& value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map> getModuleData() const; - bool moduleDataIsSet() const; - void unsetModuleData(); - void setModuleData(const std::map>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_Comment; - bool m_CommentIsSet; - - boost::optional> m_User; - - std::map> m_ModuleData; - bool m_ModuleDataIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SaveCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/SearchUsersResponse_1.h b/client/include/FastCommentsClient/model/SearchUsersResponse_1.h deleted file mode 100644 index 2422071..0000000 --- a/client/include/FastCommentsClient/model/SearchUsersResponse_1.h +++ /dev/null @@ -1,158 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * SearchUsersResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/SearchUsersResult.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/UserSearchSectionResult.h" -#include -#include "FastCommentsClient/model/UserSearchResult.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class UserSearchSectionResult; -class UserSearchResult; -class CustomConfigParameters; - - -class SearchUsersResponse_1 - : public ModelBase -{ -public: - SearchUsersResponse_1(); - virtual ~SearchUsersResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// SearchUsersResponse_1 members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::vector> getSections() const; - bool sectionsIsSet() const; - void unsetSections(); - void setSections(const std::vector>& value); - - std::vector> getUsers() const; - bool usersIsSet() const; - void unsetUsers(); - void setUsers(const std::vector>& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::vector> m_Sections; - bool m_SectionsIsSet; - - std::vector> m_Users; - bool m_UsersIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SearchUsersResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/SendInviteResponse.h b/client/include/FastCommentsClient/model/SendInviteResponse.h deleted file mode 100644 index 96a5eb8..0000000 --- a/client/include/FastCommentsClient/model/SendInviteResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * SendInviteResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SendInviteResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_SendInviteResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class SendInviteResponse - : public ModelBase -{ -public: - SendInviteResponse(); - virtual ~SendInviteResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// SendInviteResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SendInviteResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/SendLoginLinkResponse.h b/client/include/FastCommentsClient/model/SendLoginLinkResponse.h deleted file mode 100644 index 88981a0..0000000 --- a/client/include/FastCommentsClient/model/SendLoginLinkResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * SendLoginLinkResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SendLoginLinkResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_SendLoginLinkResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class SendLoginLinkResponse - : public ModelBase -{ -public: - SendLoginLinkResponse(); - virtual ~SendLoginLinkResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// SendLoginLinkResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SendLoginLinkResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/SetCommentTextResponse_1.h b/client/include/FastCommentsClient/model/SetCommentTextResponse_1.h deleted file mode 100644 index 72d086c..0000000 --- a/client/include/FastCommentsClient/model/SetCommentTextResponse_1.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * SetCommentTextResponse_1.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResponse_1_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResponse_1_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/PublicAPISetCommentTextResponse.h" -#include "FastCommentsClient/model/SetCommentTextResult.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class SetCommentTextResult; -class CustomConfigParameters; - - -class SetCommentTextResponse_1 - : public ModelBase -{ -public: - SetCommentTextResponse_1(); - virtual ~SetCommentTextResponse_1(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// SetCommentTextResponse_1 members - - - std::shared_ptr getComment() const; - bool commentIsSet() const; - void unsetComment(); - void setComment(const std::shared_ptr& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Comment; - bool m_CommentIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SetCommentTextResponse_1_H_ */ diff --git a/client/include/FastCommentsClient/model/SetTrustFactorResponse.h b/client/include/FastCommentsClient/model/SetTrustFactorResponse.h deleted file mode 100644 index 46f354d..0000000 --- a/client/include/FastCommentsClient/model/SetTrustFactorResponse.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * SetTrustFactorResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_SetTrustFactorResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_SetTrustFactorResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/SetUserTrustFactorResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class SetTrustFactorResponse - : public ModelBase -{ -public: - SetTrustFactorResponse(); - virtual ~SetTrustFactorResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// SetTrustFactorResponse members - - - double getPreviousManualTrustFactor() const; - bool previousManualTrustFactorIsSet() const; - void unsetPreviousManualTrustFactor(); - void setPreviousManualTrustFactor(double value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - double m_PreviousManualTrustFactor; - bool m_PreviousManualTrustFactorIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_SetTrustFactorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UnBlockCommentPublicResponse.h b/client/include/FastCommentsClient/model/UnBlockCommentPublicResponse.h deleted file mode 100644 index 65312ea..0000000 --- a/client/include/FastCommentsClient/model/UnBlockCommentPublicResponse.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UnBlockCommentPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockCommentPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockCommentPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UnblockSuccess.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UnBlockCommentPublicResponse - : public ModelBase -{ -public: - UnBlockCommentPublicResponse(); - virtual ~UnBlockCommentPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UnBlockCommentPublicResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getCommentStatuses() const; - bool commentStatusesIsSet() const; - void unsetCommentStatuses(); - void setCommentStatuses(std::map value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map m_CommentStatuses; - bool m_CommentStatusesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockCommentPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UnBlockUserFromCommentResponse.h b/client/include/FastCommentsClient/model/UnBlockUserFromCommentResponse.h deleted file mode 100644 index 9630505..0000000 --- a/client/include/FastCommentsClient/model/UnBlockUserFromCommentResponse.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UnBlockUserFromCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockUserFromCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockUserFromCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/UnblockSuccess.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UnBlockUserFromCommentResponse - : public ModelBase -{ -public: - UnBlockUserFromCommentResponse(); - virtual ~UnBlockUserFromCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UnBlockUserFromCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getCommentStatuses() const; - bool commentStatusesIsSet() const; - void unsetCommentStatuses(); - void setCommentStatuses(std::map value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::map m_CommentStatuses; - bool m_CommentStatusesIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnBlockUserFromCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UnFlagCommentResponse.h b/client/include/FastCommentsClient/model/UnFlagCommentResponse.h deleted file mode 100644 index 151df4c..0000000 --- a/client/include/FastCommentsClient/model/UnFlagCommentResponse.h +++ /dev/null @@ -1,153 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UnFlagCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnFlagCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnFlagCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/FlagCommentResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UnFlagCommentResponse - : public ModelBase -{ -public: - UnFlagCommentResponse(); - virtual ~UnFlagCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UnFlagCommentResponse members - - - int32_t getStatusCode() const; - bool statusCodeIsSet() const; - void unsetStatusCode(); - void setStatusCode(int32_t value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - bool isWasUnapproved() const; - bool wasUnapprovedIsSet() const; - void unsetWasUnapproved(); - void setWasUnapproved(bool value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - int32_t m_StatusCode; - bool m_StatusCodeIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - bool m_WasUnapproved; - bool m_WasUnapprovedIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnFlagCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UnLockCommentResponse.h b/client/include/FastCommentsClient/model/UnLockCommentResponse.h deleted file mode 100644 index a5d5362..0000000 --- a/client/include/FastCommentsClient/model/UnLockCommentResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UnLockCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnLockCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnLockCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UnLockCommentResponse - : public ModelBase -{ -public: - UnLockCommentResponse(); - virtual ~UnLockCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UnLockCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnLockCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UnPinCommentResponse.h b/client/include/FastCommentsClient/model/UnPinCommentResponse.h deleted file mode 100644 index 58b3078..0000000 --- a/client/include/FastCommentsClient/model/UnPinCommentResponse.h +++ /dev/null @@ -1,151 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UnPinCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UnPinCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UnPinCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/ChangeCommentPinStatusResponse.h" -#include "FastCommentsClient/model/Record_string__before_string_or_null__after_string_or_null___value.h" -#include -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class Record_string__before_string_or_null__after_string_or_null___value; -class CustomConfigParameters; - - -class UnPinCommentResponse - : public ModelBase -{ -public: - UnPinCommentResponse(); - virtual ~UnPinCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UnPinCommentResponse members - - - /// - /// Construct a type with a set of properties K of type T - /// - std::map> getCommentPositions() const; - bool commentPositionsIsSet() const; - void unsetCommentPositions(); - void setCommentPositions(const std::map>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::map> m_CommentPositions; - bool m_CommentPositionsIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UnPinCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateCommentResponse.h b/client/include/FastCommentsClient/model/UpdateCommentResponse.h deleted file mode 100644 index 7522c23..0000000 --- a/client/include/FastCommentsClient/model/UpdateCommentResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateCommentResponse - : public ModelBase -{ -public: - UpdateCommentResponse(); - virtual ~UpdateCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateCommentResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateEmailTemplateResponse.h b/client/include/FastCommentsClient/model/UpdateEmailTemplateResponse.h deleted file mode 100644 index 6a85b6a..0000000 --- a/client/include/FastCommentsClient/model/UpdateEmailTemplateResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateEmailTemplateResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateEmailTemplateResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateEmailTemplateResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateEmailTemplateResponse - : public ModelBase -{ -public: - UpdateEmailTemplateResponse(); - virtual ~UpdateEmailTemplateResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateEmailTemplateResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateEmailTemplateResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateFeedPostPublicResponse.h b/client/include/FastCommentsClient/model/UpdateFeedPostPublicResponse.h deleted file mode 100644 index a7342b8..0000000 --- a/client/include/FastCommentsClient/model/UpdateFeedPostPublicResponse.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateFeedPostPublicResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostPublicResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostPublicResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/CreateFeedPostResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include "FastCommentsClient/model/FeedPost.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class FeedPost; -class CustomConfigParameters; - - -class UpdateFeedPostPublicResponse - : public ModelBase -{ -public: - UpdateFeedPostPublicResponse(); - virtual ~UpdateFeedPostPublicResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateFeedPostPublicResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - std::shared_ptr getFeedPost() const; - bool feedPostIsSet() const; - void unsetFeedPost(); - void setFeedPost(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - std::shared_ptr m_FeedPost; - bool m_FeedPostIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostPublicResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateFeedPostResponse.h b/client/include/FastCommentsClient/model/UpdateFeedPostResponse.h deleted file mode 100644 index d271678..0000000 --- a/client/include/FastCommentsClient/model/UpdateFeedPostResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateFeedPostResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateFeedPostResponse - : public ModelBase -{ -public: - UpdateFeedPostResponse(); - virtual ~UpdateFeedPostResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateFeedPostResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateFeedPostResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateModeratorResponse.h b/client/include/FastCommentsClient/model/UpdateModeratorResponse.h deleted file mode 100644 index 88375b3..0000000 --- a/client/include/FastCommentsClient/model/UpdateModeratorResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateModeratorResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateModeratorResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateModeratorResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateModeratorResponse - : public ModelBase -{ -public: - UpdateModeratorResponse(); - virtual ~UpdateModeratorResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateModeratorResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateModeratorResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateNotificationResponse.h b/client/include/FastCommentsClient/model/UpdateNotificationResponse.h deleted file mode 100644 index ed37c05..0000000 --- a/client/include/FastCommentsClient/model/UpdateNotificationResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateNotificationResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateNotificationResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateNotificationResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateNotificationResponse - : public ModelBase -{ -public: - UpdateNotificationResponse(); - virtual ~UpdateNotificationResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateNotificationResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateNotificationResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateQuestionConfigResponse.h b/client/include/FastCommentsClient/model/UpdateQuestionConfigResponse.h deleted file mode 100644 index 55e668f..0000000 --- a/client/include/FastCommentsClient/model/UpdateQuestionConfigResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateQuestionConfigResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionConfigResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionConfigResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateQuestionConfigResponse - : public ModelBase -{ -public: - UpdateQuestionConfigResponse(); - virtual ~UpdateQuestionConfigResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateQuestionConfigResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionConfigResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateQuestionResultResponse.h b/client/include/FastCommentsClient/model/UpdateQuestionResultResponse.h deleted file mode 100644 index aeea017..0000000 --- a/client/include/FastCommentsClient/model/UpdateQuestionResultResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateQuestionResultResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionResultResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionResultResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateQuestionResultResponse - : public ModelBase -{ -public: - UpdateQuestionResultResponse(); - virtual ~UpdateQuestionResultResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateQuestionResultResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateQuestionResultResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateTenantPackageResponse.h b/client/include/FastCommentsClient/model/UpdateTenantPackageResponse.h deleted file mode 100644 index f7dc71b..0000000 --- a/client/include/FastCommentsClient/model/UpdateTenantPackageResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateTenantPackageResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantPackageResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantPackageResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateTenantPackageResponse - : public ModelBase -{ -public: - UpdateTenantPackageResponse(); - virtual ~UpdateTenantPackageResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateTenantPackageResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantPackageResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateTenantResponse.h b/client/include/FastCommentsClient/model/UpdateTenantResponse.h deleted file mode 100644 index fe68e63..0000000 --- a/client/include/FastCommentsClient/model/UpdateTenantResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateTenantResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateTenantResponse - : public ModelBase -{ -public: - UpdateTenantResponse(); - virtual ~UpdateTenantResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateTenantResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateTenantUserResponse.h b/client/include/FastCommentsClient/model/UpdateTenantUserResponse.h deleted file mode 100644 index a619c8c..0000000 --- a/client/include/FastCommentsClient/model/UpdateTenantUserResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateTenantUserResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantUserResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantUserResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptyResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateTenantUserResponse - : public ModelBase -{ -public: - UpdateTenantUserResponse(); - virtual ~UpdateTenantUserResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateTenantUserResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateTenantUserResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateUserBadgeResponse.h b/client/include/FastCommentsClient/model/UpdateUserBadgeResponse.h deleted file mode 100644 index 2426918..0000000 --- a/client/include/FastCommentsClient/model/UpdateUserBadgeResponse.h +++ /dev/null @@ -1,137 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * UpdateUserBadgeResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadgeResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadgeResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/APIEmptySuccessResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class UpdateUserBadgeResponse - : public ModelBase -{ -public: - UpdateUserBadgeResponse(); - virtual ~UpdateUserBadgeResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// UpdateUserBadgeResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_UpdateUserBadgeResponse_H_ */ diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h index b779ca7..d3d8b8b 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationCommentSubscriptionStatusResponse.h @@ -24,9 +24,7 @@ #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/UserNotificationWriteResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" #include -#include "FastCommentsClient/model/APIError.h" #include "FastCommentsClient/model/APIStatus.h" #include "FastCommentsClient/model/IgnoredResponse.h" @@ -35,7 +33,6 @@ namespace openapitools { namespace client { namespace model { -class CustomConfigParameters; class UpdateUserNotificationCommentSubscriptionStatusResponse @@ -90,41 +87,6 @@ class UpdateUserNotificationCommentSubscriptionStatusResponse void unsetNote(); void setNote(const NoteEnum value); - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - protected: std::shared_ptr m_Status; @@ -139,27 +101,6 @@ class UpdateUserNotificationCommentSubscriptionStatusResponse NoteEnum m_Note; bool m_NoteIsSet; - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - }; diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h index 0b7e26d..322bc45 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationPageSubscriptionStatusResponse.h @@ -24,9 +24,7 @@ #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/UserNotificationWriteResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" #include -#include "FastCommentsClient/model/APIError.h" #include "FastCommentsClient/model/APIStatus.h" #include "FastCommentsClient/model/IgnoredResponse.h" @@ -35,7 +33,6 @@ namespace openapitools { namespace client { namespace model { -class CustomConfigParameters; class UpdateUserNotificationPageSubscriptionStatusResponse @@ -90,41 +87,6 @@ class UpdateUserNotificationPageSubscriptionStatusResponse void unsetNote(); void setNote(const NoteEnum value); - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - protected: std::shared_ptr m_Status; @@ -139,27 +101,6 @@ class UpdateUserNotificationPageSubscriptionStatusResponse NoteEnum m_Note; bool m_NoteIsSet; - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - }; diff --git a/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h index 3c2c808..32868fd 100644 --- a/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h +++ b/client/include/FastCommentsClient/model/UpdateUserNotificationStatusResponse.h @@ -24,9 +24,7 @@ #include "FastCommentsClient/ModelBase.h" #include "FastCommentsClient/model/UserNotificationWriteResponse.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" #include -#include "FastCommentsClient/model/APIError.h" #include "FastCommentsClient/model/APIStatus.h" #include "FastCommentsClient/model/IgnoredResponse.h" @@ -35,7 +33,6 @@ namespace openapitools { namespace client { namespace model { -class CustomConfigParameters; class UpdateUserNotificationStatusResponse @@ -90,41 +87,6 @@ class UpdateUserNotificationStatusResponse void unsetNote(); void setNote(const NoteEnum value); - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - protected: std::shared_ptr m_Status; @@ -139,27 +101,6 @@ class UpdateUserNotificationStatusResponse NoteEnum m_Note; bool m_NoteIsSet; - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - }; diff --git a/client/include/FastCommentsClient/model/VoteCommentResponse.h b/client/include/FastCommentsClient/model/VoteCommentResponse.h deleted file mode 100644 index ef44dde..0000000 --- a/client/include/FastCommentsClient/model/VoteCommentResponse.h +++ /dev/null @@ -1,171 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * VoteCommentResponse.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_VoteCommentResponse_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_VoteCommentResponse_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/VoteResponseUser.h" -#include "FastCommentsClient/model/CustomConfigParameters.h" -#include -#include "FastCommentsClient/model/VoteResponse.h" -#include "FastCommentsClient/model/APIError.h" -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -class VoteResponseUser; -class CustomConfigParameters; - - -class VoteCommentResponse - : public ModelBase -{ -public: - VoteCommentResponse(); - virtual ~VoteCommentResponse(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// VoteCommentResponse members - - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getVoteId() const; - bool voteIdIsSet() const; - void unsetVoteId(); - void setVoteId(const utility::string_t& value); - - bool isIsVerified() const; - bool isVerifiedIsSet() const; - void unsetIsVerified(); - void setIsVerified(bool value); - - std::shared_ptr getUser() const; - bool userIsSet() const; - void unsetUser(); - void setUser(const std::shared_ptr& value); - - utility::string_t getEditKey() const; - bool editKeyIsSet() const; - void unsetEditKey(); - void setEditKey(const utility::string_t& value); - - utility::string_t getReason() const; - bool reasonIsSet() const; - void unsetReason(); - void setReason(const utility::string_t& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - utility::string_t getSecondaryCode() const; - bool secondaryCodeIsSet() const; - void unsetSecondaryCode(); - void setSecondaryCode(const utility::string_t& value); - - int64_t getBannedUntil() const; - bool bannedUntilIsSet() const; - void unsetBannedUntil(); - void setBannedUntil(int64_t value); - - int32_t getMaxCharacterLength() const; - bool maxCharacterLengthIsSet() const; - void unsetMaxCharacterLength(); - void setMaxCharacterLength(int32_t value); - - utility::string_t getTranslatedError() const; - bool translatedErrorIsSet() const; - void unsetTranslatedError(); - void setTranslatedError(const utility::string_t& value); - - std::shared_ptr getCustomConfig() const; - bool customConfigIsSet() const; - void unsetCustomConfig(); - void setCustomConfig(const std::shared_ptr& value); - - -protected: - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_VoteId; - bool m_VoteIdIsSet; - - bool m_IsVerified; - bool m_IsVerifiedIsSet; - - std::shared_ptr m_User; - bool m_UserIsSet; - - utility::string_t m_EditKey; - bool m_EditKeyIsSet; - - utility::string_t m_Reason; - bool m_ReasonIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - - utility::string_t m_SecondaryCode; - bool m_SecondaryCodeIsSet; - - int64_t m_BannedUntil; - bool m_BannedUntilIsSet; - - int32_t m_MaxCharacterLength; - bool m_MaxCharacterLengthIsSet; - - utility::string_t m_TranslatedError; - bool m_TranslatedErrorIsSet; - - std::shared_ptr m_CustomConfig; - bool m_CustomConfigIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_VoteCommentResponse_H_ */ diff --git a/client/src/api/DefaultApi.cpp b/client/src/api/DefaultApi.cpp index 9e94bbb..561388f 100644 --- a/client/src/api/DefaultApi.cpp +++ b/client/src/api/DefaultApi.cpp @@ -191,7 +191,7 @@ pplx::task> DefaultApi::addDomainConfig return localVarResult; }); } -pplx::task> DefaultApi::addHashTag(boost::optional tenantId, boost::optional> createHashTagBody) const +pplx::task> DefaultApi::addHashTag(boost::optional tenantId, boost::optional> createHashTagBody) const { @@ -321,7 +321,7 @@ pplx::task> DefaultApi::addHashTag(boost::op }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AddHashTagResponse()); + std::shared_ptr localVarResult(new CreateHashTagResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -342,7 +342,7 @@ pplx::task> DefaultApi::addHashTag(boost::op return localVarResult; }); } -pplx::task> DefaultApi::addHashTagsBulk(boost::optional tenantId, boost::optional> bulkCreateHashTagsBody) const +pplx::task> DefaultApi::addHashTagsBulk(boost::optional tenantId, boost::optional> bulkCreateHashTagsBody) const { @@ -472,7 +472,7 @@ pplx::task> DefaultApi::addHashTagsBulk }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AddHashTagsBulkResponse()); + std::shared_ptr localVarResult(new BulkCreateHashTagsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -969,7 +969,7 @@ pplx::task> DefaultApi::aggregate(utility::st return localVarResult; }); } -pplx::task> DefaultApi::aggregateQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional> timeBucket, boost::optional startDate, boost::optional forceRecalculate) const +pplx::task> DefaultApi::aggregateQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional> timeBucket, boost::optional startDate, boost::optional forceRecalculate) const { @@ -1105,7 +1105,7 @@ pplx::task> DefaultApi::aggr }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new AggregateQuestionResultsResponse_1()); + std::shared_ptr localVarResult(new AggregateQuestionResultsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1126,7 +1126,7 @@ pplx::task> DefaultApi::aggr return localVarResult; }); } -pplx::task> DefaultApi::blockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::blockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr blockFromCommentParams, boost::optional userId, boost::optional anonUserId) const { // verify the required parameter 'blockFromCommentParams' is set @@ -1270,7 +1270,7 @@ pplx::task> DefaultApi::blockUserF }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BlockUserFromCommentResponse()); + std::shared_ptr localVarResult(new BlockSuccess()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1291,7 +1291,7 @@ pplx::task> DefaultApi::blockUserF return localVarResult; }); } -pplx::task> DefaultApi::bulkAggregateQuestionResults(utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest, boost::optional forceRecalculate) const +pplx::task> DefaultApi::bulkAggregateQuestionResults(utility::string_t tenantId, std::shared_ptr bulkAggregateQuestionResultsRequest, boost::optional forceRecalculate) const { // verify the required parameter 'bulkAggregateQuestionResultsRequest' is set @@ -1430,7 +1430,7 @@ pplx::task> DefaultApi:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BulkAggregateQuestionResultsResponse_1()); + std::shared_ptr localVarResult(new BulkAggregateQuestionResultsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1451,7 +1451,7 @@ pplx::task> DefaultApi:: return localVarResult; }); } -pplx::task> DefaultApi::changeTicketState(utility::string_t tenantId, utility::string_t userId, utility::string_t id, std::shared_ptr changeTicketStateBody) const +pplx::task> DefaultApi::changeTicketState(utility::string_t tenantId, utility::string_t userId, utility::string_t id, std::shared_ptr changeTicketStateBody) const { // verify the required parameter 'changeTicketStateBody' is set @@ -1590,7 +1590,7 @@ pplx::task> DefaultApi::changeTicke }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ChangeTicketStateResponse_1()); + std::shared_ptr localVarResult(new ChangeTicketStateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1611,7 +1611,7 @@ pplx::task> DefaultApi::changeTicke return localVarResult; }); } -pplx::task> DefaultApi::combineCommentsWithQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional startDate, boost::optional forceRecalculate, boost::optional minValue, boost::optional maxValue, boost::optional limit) const +pplx::task> DefaultApi::combineCommentsWithQuestionResults(utility::string_t tenantId, boost::optional questionId, boost::optional> questionIds, boost::optional urlId, boost::optional startDate, boost::optional forceRecalculate, boost::optional minValue, boost::optional maxValue, boost::optional limit) const { @@ -1755,7 +1755,7 @@ pplx::task> DefaultA }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CombineCommentsWithQuestionResultsResponse()); + std::shared_ptr localVarResult(new CombineQuestionResultsWithCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1776,7 +1776,7 @@ pplx::task> DefaultA return localVarResult; }); } -pplx::task> DefaultApi::createEmailTemplate(utility::string_t tenantId, std::shared_ptr createEmailTemplateBody) const +pplx::task> DefaultApi::createEmailTemplate(utility::string_t tenantId, std::shared_ptr createEmailTemplateBody) const { // verify the required parameter 'createEmailTemplateBody' is set @@ -1911,7 +1911,7 @@ pplx::task> DefaultApi::createEma }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateEmailTemplateResponse_1()); + std::shared_ptr localVarResult(new CreateEmailTemplateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1932,7 +1932,7 @@ pplx::task> DefaultApi::createEma return localVarResult; }); } -pplx::task> DefaultApi::createFeedPost(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional isLive, boost::optional doSpamCheck, boost::optional skipDupCheck) const +pplx::task> DefaultApi::createFeedPost(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional isLive, boost::optional doSpamCheck, boost::optional skipDupCheck) const { // verify the required parameter 'createFeedPostParams' is set @@ -2083,7 +2083,7 @@ pplx::task> DefaultApi::createFeedPost }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateFeedPostResponse_1()); + std::shared_ptr localVarResult(new CreateFeedPostsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2104,7 +2104,7 @@ pplx::task> DefaultApi::createFeedPost return localVarResult; }); } -pplx::task> DefaultApi::createModerator(utility::string_t tenantId, std::shared_ptr createModeratorBody) const +pplx::task> DefaultApi::createModerator(utility::string_t tenantId, std::shared_ptr createModeratorBody) const { // verify the required parameter 'createModeratorBody' is set @@ -2239,7 +2239,7 @@ pplx::task> DefaultApi::createModerat }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateModeratorResponse_1()); + std::shared_ptr localVarResult(new CreateModeratorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2260,7 +2260,7 @@ pplx::task> DefaultApi::createModerat return localVarResult; }); } -pplx::task> DefaultApi::createQuestionConfig(utility::string_t tenantId, std::shared_ptr createQuestionConfigBody) const +pplx::task> DefaultApi::createQuestionConfig(utility::string_t tenantId, std::shared_ptr createQuestionConfigBody) const { // verify the required parameter 'createQuestionConfigBody' is set @@ -2395,7 +2395,7 @@ pplx::task> DefaultApi::createQu }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateQuestionConfigResponse_1()); + std::shared_ptr localVarResult(new CreateQuestionConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2416,7 +2416,7 @@ pplx::task> DefaultApi::createQu return localVarResult; }); } -pplx::task> DefaultApi::createQuestionResult(utility::string_t tenantId, std::shared_ptr createQuestionResultBody) const +pplx::task> DefaultApi::createQuestionResult(utility::string_t tenantId, std::shared_ptr createQuestionResultBody) const { // verify the required parameter 'createQuestionResultBody' is set @@ -2551,7 +2551,7 @@ pplx::task> DefaultApi::createQu }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateQuestionResultResponse_1()); + std::shared_ptr localVarResult(new CreateQuestionResultResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2728,7 +2728,7 @@ pplx::task> DefaultApi::createSub return localVarResult; }); } -pplx::task> DefaultApi::createTenant(utility::string_t tenantId, std::shared_ptr createTenantBody) const +pplx::task> DefaultApi::createTenant(utility::string_t tenantId, std::shared_ptr createTenantBody) const { // verify the required parameter 'createTenantBody' is set @@ -2863,7 +2863,7 @@ pplx::task> DefaultApi::createTenant(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTenantResponse_1()); + std::shared_ptr localVarResult(new CreateTenantResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2884,7 +2884,7 @@ pplx::task> DefaultApi::createTenant(uti return localVarResult; }); } -pplx::task> DefaultApi::createTenantPackage(utility::string_t tenantId, std::shared_ptr createTenantPackageBody) const +pplx::task> DefaultApi::createTenantPackage(utility::string_t tenantId, std::shared_ptr createTenantPackageBody) const { // verify the required parameter 'createTenantPackageBody' is set @@ -3019,7 +3019,7 @@ pplx::task> DefaultApi::createTen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTenantPackageResponse_1()); + std::shared_ptr localVarResult(new CreateTenantPackageResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3040,7 +3040,7 @@ pplx::task> DefaultApi::createTen return localVarResult; }); } -pplx::task> DefaultApi::createTenantUser(utility::string_t tenantId, std::shared_ptr createTenantUserBody) const +pplx::task> DefaultApi::createTenantUser(utility::string_t tenantId, std::shared_ptr createTenantUserBody) const { // verify the required parameter 'createTenantUserBody' is set @@ -3175,7 +3175,7 @@ pplx::task> DefaultApi::createTenant }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTenantUserResponse_1()); + std::shared_ptr localVarResult(new CreateTenantUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3196,7 +3196,7 @@ pplx::task> DefaultApi::createTenant return localVarResult; }); } -pplx::task> DefaultApi::createTicket(utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody) const +pplx::task> DefaultApi::createTicket(utility::string_t tenantId, utility::string_t userId, std::shared_ptr createTicketBody) const { // verify the required parameter 'createTicketBody' is set @@ -3334,7 +3334,7 @@ pplx::task> DefaultApi::createTicket(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateTicketResponse_1()); + std::shared_ptr localVarResult(new CreateTicketResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3355,7 +3355,7 @@ pplx::task> DefaultApi::createTicket(uti return localVarResult; }); } -pplx::task> DefaultApi::createUserBadge(utility::string_t tenantId, std::shared_ptr createUserBadgeParams) const +pplx::task> DefaultApi::createUserBadge(utility::string_t tenantId, std::shared_ptr createUserBadgeParams) const { // verify the required parameter 'createUserBadgeParams' is set @@ -3490,7 +3490,7 @@ pplx::task> DefaultApi::createUserBadge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateUserBadgeResponse()); + std::shared_ptr localVarResult(new APICreateUserBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3511,7 +3511,7 @@ pplx::task> DefaultApi::createUserBadge return localVarResult; }); } -pplx::task> DefaultApi::createVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t direction, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::createVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t direction, boost::optional userId, boost::optional anonUserId) const { @@ -3637,7 +3637,7 @@ pplx::task> DefaultApi::createVote(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateVoteResponse()); + std::shared_ptr localVarResult(new VoteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3658,7 +3658,7 @@ pplx::task> DefaultApi::createVote(utility:: return localVarResult; }); } -pplx::task> DefaultApi::deleteComment(utility::string_t tenantId, utility::string_t id, boost::optional contextUserId, boost::optional isLive) const +pplx::task> DefaultApi::deleteComment(utility::string_t tenantId, utility::string_t id, boost::optional contextUserId, boost::optional isLive) const { @@ -3779,7 +3779,7 @@ pplx::task> DefaultApi::deleteComment(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteCommentResponse()); + std::shared_ptr localVarResult(new DeleteCommentResult()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3934,7 +3934,7 @@ pplx::task> DefaultApi::deleteDomain return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplate(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteEmailTemplate(utility::string_t tenantId, utility::string_t id) const { @@ -4047,7 +4047,7 @@ pplx::task> DefaultApi::deleteEmail }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteEmailTemplateResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4068,7 +4068,7 @@ pplx::task> DefaultApi::deleteEmail return localVarResult; }); } -pplx::task> DefaultApi::deleteEmailTemplateRenderError(utility::string_t tenantId, utility::string_t id, utility::string_t errorId) const +pplx::task> DefaultApi::deleteEmailTemplateRenderError(utility::string_t tenantId, utility::string_t id, utility::string_t errorId) const { @@ -4182,7 +4182,7 @@ pplx::task> DefaultApi:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteEmailTemplateRenderErrorResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4203,7 +4203,7 @@ pplx::task> DefaultApi:: return localVarResult; }); } -pplx::task> DefaultApi::deleteHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> deleteHashTagRequestBody) const +pplx::task> DefaultApi::deleteHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> deleteHashTagRequestBody) const { @@ -4334,7 +4334,7 @@ pplx::task> DefaultApi::deleteHashTag(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteHashTagResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4355,7 +4355,7 @@ pplx::task> DefaultApi::deleteHashTag(uti return localVarResult; }); } -pplx::task> DefaultApi::deleteModerator(utility::string_t tenantId, utility::string_t id, boost::optional sendEmail) const +pplx::task> DefaultApi::deleteModerator(utility::string_t tenantId, utility::string_t id, boost::optional sendEmail) const { @@ -4472,7 +4472,7 @@ pplx::task> DefaultApi::deleteModerator }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteModeratorResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4493,7 +4493,7 @@ pplx::task> DefaultApi::deleteModerator return localVarResult; }); } -pplx::task> DefaultApi::deleteNotificationCount(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteNotificationCount(utility::string_t tenantId, utility::string_t id) const { @@ -4606,7 +4606,7 @@ pplx::task> DefaultApi::deleteN }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteNotificationCountResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4761,7 +4761,7 @@ pplx::task> DefaultApi::deletePage(utilit return localVarResult; }); } -pplx::task> DefaultApi::deletePendingWebhookEvent(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deletePendingWebhookEvent(utility::string_t tenantId, utility::string_t id) const { @@ -4874,7 +4874,7 @@ pplx::task> DefaultApi::delet }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeletePendingWebhookEventResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4895,7 +4895,7 @@ pplx::task> DefaultApi::delet return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionConfig(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteQuestionConfig(utility::string_t tenantId, utility::string_t id) const { @@ -5008,7 +5008,7 @@ pplx::task> DefaultApi::deleteQues }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteQuestionConfigResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5029,7 +5029,7 @@ pplx::task> DefaultApi::deleteQues return localVarResult; }); } -pplx::task> DefaultApi::deleteQuestionResult(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteQuestionResult(utility::string_t tenantId, utility::string_t id) const { @@ -5142,7 +5142,7 @@ pplx::task> DefaultApi::deleteQues }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteQuestionResultResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5443,7 +5443,7 @@ pplx::task> DefaultApi::deleteSub return localVarResult; }); } -pplx::task> DefaultApi::deleteTenant(utility::string_t tenantId, utility::string_t id, boost::optional sure) const +pplx::task> DefaultApi::deleteTenant(utility::string_t tenantId, utility::string_t id, boost::optional sure) const { @@ -5560,7 +5560,7 @@ pplx::task> DefaultApi::deleteTenant(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteTenantResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5581,7 +5581,7 @@ pplx::task> DefaultApi::deleteTenant(utili return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantPackage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteTenantPackage(utility::string_t tenantId, utility::string_t id) const { @@ -5694,7 +5694,7 @@ pplx::task> DefaultApi::deleteTenan }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteTenantPackageResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5715,7 +5715,7 @@ pplx::task> DefaultApi::deleteTenan return localVarResult; }); } -pplx::task> DefaultApi::deleteTenantUser(utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, boost::optional commentDeleteMode) const +pplx::task> DefaultApi::deleteTenantUser(utility::string_t tenantId, utility::string_t id, boost::optional deleteComments, boost::optional commentDeleteMode) const { @@ -5836,7 +5836,7 @@ pplx::task> DefaultApi::deleteTenantUs }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteTenantUserResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5857,7 +5857,7 @@ pplx::task> DefaultApi::deleteTenantUs return localVarResult; }); } -pplx::task> DefaultApi::deleteUserBadge(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::deleteUserBadge(utility::string_t tenantId, utility::string_t id) const { @@ -5970,7 +5970,7 @@ pplx::task> DefaultApi::deleteUserBadge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteUserBadgeResponse()); + std::shared_ptr localVarResult(new APIEmptySuccessResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5991,7 +5991,7 @@ pplx::task> DefaultApi::deleteUserBadge return localVarResult; }); } -pplx::task> DefaultApi::deleteVote(utility::string_t tenantId, utility::string_t id, boost::optional editKey) const +pplx::task> DefaultApi::deleteVote(utility::string_t tenantId, utility::string_t id, boost::optional editKey) const { @@ -6108,7 +6108,7 @@ pplx::task> DefaultApi::deleteVote(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteVoteResponse()); + std::shared_ptr localVarResult(new VoteDeleteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6129,7 +6129,7 @@ pplx::task> DefaultApi::deleteVote(utility:: return localVarResult; }); } -pplx::task> DefaultApi::flagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::flagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const { @@ -6250,7 +6250,7 @@ pplx::task> DefaultApi::flagComment(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentResponse_1()); + std::shared_ptr localVarResult(new FlagCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6271,7 +6271,7 @@ pplx::task> DefaultApi::flagComment(utili return localVarResult; }); } -pplx::task> DefaultApi::getAuditLogs(utility::string_t tenantId, boost::optional limit, boost::optional skip, boost::optional> order, boost::optional after, boost::optional before) const +pplx::task> DefaultApi::getAuditLogs(utility::string_t tenantId, boost::optional limit, boost::optional skip, boost::optional> order, boost::optional after, boost::optional before) const { @@ -6403,7 +6403,7 @@ pplx::task> DefaultApi::getAuditLogs(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetAuditLogsResponse_1()); + std::shared_ptr localVarResult(new GetAuditLogsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6424,7 +6424,7 @@ pplx::task> DefaultApi::getAuditLogs(uti return localVarResult; }); } -pplx::task> DefaultApi::getCachedNotificationCount(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getCachedNotificationCount(utility::string_t tenantId, utility::string_t id) const { @@ -6537,7 +6537,7 @@ pplx::task> DefaultApi::ge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCachedNotificationCountResponse_1()); + std::shared_ptr localVarResult(new GetCachedNotificationCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6558,7 +6558,7 @@ pplx::task> DefaultApi::ge return localVarResult; }); } -pplx::task> DefaultApi::getComment(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getComment(utility::string_t tenantId, utility::string_t id) const { @@ -6671,7 +6671,7 @@ pplx::task> DefaultApi::getComment(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentResponse()); + std::shared_ptr localVarResult(new APIGetCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6692,7 +6692,7 @@ pplx::task> DefaultApi::getComment(utility:: return localVarResult; }); } -pplx::task> DefaultApi::getComments(utility::string_t tenantId, boost::optional page, boost::optional limit, boost::optional skip, boost::optional asTree, boost::optional skipChildren, boost::optional limitChildren, boost::optional maxTreeDepth, boost::optional urlId, boost::optional userId, boost::optional anonUserId, boost::optional contextUserId, boost::optional hashTag, boost::optional parentId, boost::optional> direction, boost::optional fromDate, boost::optional toDate) const +pplx::task> DefaultApi::getComments(utility::string_t tenantId, boost::optional page, boost::optional limit, boost::optional skip, boost::optional asTree, boost::optional skipChildren, boost::optional limitChildren, boost::optional maxTreeDepth, boost::optional urlId, boost::optional userId, boost::optional anonUserId, boost::optional contextUserId, boost::optional hashTag, boost::optional parentId, boost::optional> direction, boost::optional fromDate, boost::optional toDate) const { @@ -6868,7 +6868,7 @@ pplx::task> DefaultApi::getComments(utility }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentsResponse()); + std::shared_ptr localVarResult(new APIGetCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7156,7 +7156,7 @@ pplx::task> DefaultApi::getDomainConfi return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplate(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getEmailTemplate(utility::string_t tenantId, utility::string_t id) const { @@ -7269,7 +7269,7 @@ pplx::task> DefaultApi::getEmailTemp }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplateResponse_1()); + std::shared_ptr localVarResult(new GetEmailTemplateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7290,7 +7290,7 @@ pplx::task> DefaultApi::getEmailTemp return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateDefinitions(utility::string_t tenantId) const +pplx::task> DefaultApi::getEmailTemplateDefinitions(utility::string_t tenantId) const { @@ -7402,7 +7402,7 @@ pplx::task> DefaultApi::g }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplateDefinitionsResponse_1()); + std::shared_ptr localVarResult(new GetEmailTemplateDefinitionsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7423,7 +7423,7 @@ pplx::task> DefaultApi::g return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplateRenderErrors(utility::string_t tenantId, utility::string_t id, boost::optional skip) const +pplx::task> DefaultApi::getEmailTemplateRenderErrors(utility::string_t tenantId, utility::string_t id, boost::optional skip) const { @@ -7540,7 +7540,7 @@ pplx::task> DefaultApi:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplateRenderErrorsResponse_1()); + std::shared_ptr localVarResult(new GetEmailTemplateRenderErrorsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7561,7 +7561,7 @@ pplx::task> DefaultApi:: return localVarResult; }); } -pplx::task> DefaultApi::getEmailTemplates(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getEmailTemplates(utility::string_t tenantId, boost::optional skip) const { @@ -7677,7 +7677,7 @@ pplx::task> DefaultApi::getEmailTem }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEmailTemplatesResponse_1()); + std::shared_ptr localVarResult(new GetEmailTemplatesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7698,7 +7698,7 @@ pplx::task> DefaultApi::getEmailTem return localVarResult; }); } -pplx::task> DefaultApi::getFeedPosts(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags) const +pplx::task> DefaultApi::getFeedPosts(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags) const { @@ -7822,7 +7822,7 @@ pplx::task> DefaultApi::getFeedPosts(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetFeedPostsResponse_1()); + std::shared_ptr localVarResult(new GetFeedPostsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7843,7 +7843,7 @@ pplx::task> DefaultApi::getFeedPosts(uti return localVarResult; }); } -pplx::task> DefaultApi::getHashTags(utility::string_t tenantId, boost::optional page) const +pplx::task> DefaultApi::getHashTags(utility::string_t tenantId, boost::optional page) const { @@ -7959,7 +7959,7 @@ pplx::task> DefaultApi::getHashTags(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetHashTagsResponse_1()); + std::shared_ptr localVarResult(new GetHashTagsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7980,7 +7980,7 @@ pplx::task> DefaultApi::getHashTags(utili return localVarResult; }); } -pplx::task> DefaultApi::getModerator(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getModerator(utility::string_t tenantId, utility::string_t id) const { @@ -8093,7 +8093,7 @@ pplx::task> DefaultApi::getModerator(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetModeratorResponse_1()); + std::shared_ptr localVarResult(new GetModeratorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8114,7 +8114,7 @@ pplx::task> DefaultApi::getModerator(uti return localVarResult; }); } -pplx::task> DefaultApi::getModerators(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getModerators(utility::string_t tenantId, boost::optional skip) const { @@ -8230,7 +8230,7 @@ pplx::task> DefaultApi::getModerators(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetModeratorsResponse_1()); + std::shared_ptr localVarResult(new GetModeratorsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8251,7 +8251,7 @@ pplx::task> DefaultApi::getModerators(u return localVarResult; }); } -pplx::task> DefaultApi::getNotificationCount(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type) const +pplx::task> DefaultApi::getNotificationCount(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type) const { @@ -8383,7 +8383,7 @@ pplx::task> DefaultApi::getNotif }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetNotificationCountResponse_1()); + std::shared_ptr localVarResult(new GetNotificationCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8404,7 +8404,7 @@ pplx::task> DefaultApi::getNotif return localVarResult; }); } -pplx::task> DefaultApi::getNotifications(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type, boost::optional skip) const +pplx::task> DefaultApi::getNotifications(utility::string_t tenantId, boost::optional userId, boost::optional urlId, boost::optional fromCommentId, boost::optional viewed, boost::optional type, boost::optional skip) const { @@ -8540,7 +8540,7 @@ pplx::task> DefaultApi::getNotificat }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetNotificationsResponse_1()); + std::shared_ptr localVarResult(new GetNotificationsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8830,7 +8830,7 @@ pplx::task> DefaultApi::getPages(utility::s return localVarResult; }); } -pplx::task> DefaultApi::getPendingWebhookEventCount(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT) const +pplx::task> DefaultApi::getPendingWebhookEventCount(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT) const { @@ -8966,7 +8966,7 @@ pplx::task> DefaultApi::g }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetPendingWebhookEventCountResponse_1()); + std::shared_ptr localVarResult(new GetPendingWebhookEventCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -8987,7 +8987,7 @@ pplx::task> DefaultApi::g return localVarResult; }); } -pplx::task> DefaultApi::getPendingWebhookEvents(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT, boost::optional skip) const +pplx::task> DefaultApi::getPendingWebhookEvents(utility::string_t tenantId, boost::optional commentId, boost::optional externalId, boost::optional eventType, boost::optional type, boost::optional domain, boost::optional attemptCountGT, boost::optional skip) const { @@ -9127,7 +9127,7 @@ pplx::task> DefaultApi::getPe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetPendingWebhookEventsResponse_1()); + std::shared_ptr localVarResult(new GetPendingWebhookEventsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9148,7 +9148,7 @@ pplx::task> DefaultApi::getPe return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfig(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getQuestionConfig(utility::string_t tenantId, utility::string_t id) const { @@ -9261,7 +9261,7 @@ pplx::task> DefaultApi::getQuestion }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionConfigResponse_1()); + std::shared_ptr localVarResult(new GetQuestionConfigResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9282,7 +9282,7 @@ pplx::task> DefaultApi::getQuestion return localVarResult; }); } -pplx::task> DefaultApi::getQuestionConfigs(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getQuestionConfigs(utility::string_t tenantId, boost::optional skip) const { @@ -9398,7 +9398,7 @@ pplx::task> DefaultApi::getQuestio }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionConfigsResponse_1()); + std::shared_ptr localVarResult(new GetQuestionConfigsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9419,7 +9419,7 @@ pplx::task> DefaultApi::getQuestio return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResult(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getQuestionResult(utility::string_t tenantId, utility::string_t id) const { @@ -9532,7 +9532,7 @@ pplx::task> DefaultApi::getQuestion }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionResultResponse_1()); + std::shared_ptr localVarResult(new GetQuestionResultResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -9553,7 +9553,7 @@ pplx::task> DefaultApi::getQuestion return localVarResult; }); } -pplx::task> DefaultApi::getQuestionResults(utility::string_t tenantId, boost::optional urlId, boost::optional userId, boost::optional startDate, boost::optional questionId, boost::optional questionIds, boost::optional skip) const +pplx::task> DefaultApi::getQuestionResults(utility::string_t tenantId, boost::optional urlId, boost::optional userId, boost::optional startDate, boost::optional questionId, boost::optional questionIds, boost::optional skip) const { @@ -9689,7 +9689,7 @@ pplx::task> DefaultApi::getQuestio }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetQuestionResultsResponse_1()); + std::shared_ptr localVarResult(new GetQuestionResultsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10252,7 +10252,7 @@ pplx::task> DefaultApi::getSubscrip return localVarResult; }); } -pplx::task> DefaultApi::getTenant(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenant(utility::string_t tenantId, utility::string_t id) const { @@ -10365,7 +10365,7 @@ pplx::task> DefaultApi::getTenant(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantResponse_1()); + std::shared_ptr localVarResult(new GetTenantResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10386,7 +10386,7 @@ pplx::task> DefaultApi::getTenant(utility:: return localVarResult; }); } -pplx::task> DefaultApi::getTenantDailyUsages(utility::string_t tenantId, boost::optional yearNumber, boost::optional monthNumber, boost::optional dayNumber, boost::optional skip) const +pplx::task> DefaultApi::getTenantDailyUsages(utility::string_t tenantId, boost::optional yearNumber, boost::optional monthNumber, boost::optional dayNumber, boost::optional skip) const { @@ -10514,7 +10514,7 @@ pplx::task> DefaultApi::getTenan }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantDailyUsagesResponse_1()); + std::shared_ptr localVarResult(new GetTenantDailyUsagesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10535,7 +10535,7 @@ pplx::task> DefaultApi::getTenan return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackage(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenantPackage(utility::string_t tenantId, utility::string_t id) const { @@ -10648,7 +10648,7 @@ pplx::task> DefaultApi::getTenantPac }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantPackageResponse_1()); + std::shared_ptr localVarResult(new GetTenantPackageResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10669,7 +10669,7 @@ pplx::task> DefaultApi::getTenantPac return localVarResult; }); } -pplx::task> DefaultApi::getTenantPackages(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getTenantPackages(utility::string_t tenantId, boost::optional skip) const { @@ -10785,7 +10785,7 @@ pplx::task> DefaultApi::getTenantPa }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantPackagesResponse_1()); + std::shared_ptr localVarResult(new GetTenantPackagesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10806,7 +10806,7 @@ pplx::task> DefaultApi::getTenantPa return localVarResult; }); } -pplx::task> DefaultApi::getTenantUser(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getTenantUser(utility::string_t tenantId, utility::string_t id) const { @@ -10919,7 +10919,7 @@ pplx::task> DefaultApi::getTenantUser(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantUserResponse_1()); + std::shared_ptr localVarResult(new GetTenantUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -10940,7 +10940,7 @@ pplx::task> DefaultApi::getTenantUser(u return localVarResult; }); } -pplx::task> DefaultApi::getTenantUsers(utility::string_t tenantId, boost::optional skip) const +pplx::task> DefaultApi::getTenantUsers(utility::string_t tenantId, boost::optional skip) const { @@ -11056,7 +11056,7 @@ pplx::task> DefaultApi::getTenantUsers }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantUsersResponse_1()); + std::shared_ptr localVarResult(new GetTenantUsersResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11077,7 +11077,7 @@ pplx::task> DefaultApi::getTenantUsers return localVarResult; }); } -pplx::task> DefaultApi::getTenants(utility::string_t tenantId, boost::optional meta, boost::optional skip) const +pplx::task> DefaultApi::getTenants(utility::string_t tenantId, boost::optional meta, boost::optional skip) const { @@ -11197,7 +11197,7 @@ pplx::task> DefaultApi::getTenants(utility }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTenantsResponse_1()); + std::shared_ptr localVarResult(new GetTenantsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11218,7 +11218,7 @@ pplx::task> DefaultApi::getTenants(utility return localVarResult; }); } -pplx::task> DefaultApi::getTicket(utility::string_t tenantId, utility::string_t id, boost::optional userId) const +pplx::task> DefaultApi::getTicket(utility::string_t tenantId, utility::string_t id, boost::optional userId) const { @@ -11335,7 +11335,7 @@ pplx::task> DefaultApi::getTicket(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTicketResponse_1()); + std::shared_ptr localVarResult(new GetTicketResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11356,7 +11356,7 @@ pplx::task> DefaultApi::getTicket(utility:: return localVarResult; }); } -pplx::task> DefaultApi::getTickets(utility::string_t tenantId, boost::optional userId, boost::optional state, boost::optional skip, boost::optional limit) const +pplx::task> DefaultApi::getTickets(utility::string_t tenantId, boost::optional userId, boost::optional state, boost::optional skip, boost::optional limit) const { @@ -11484,7 +11484,7 @@ pplx::task> DefaultApi::getTickets(utility }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTicketsResponse_1()); + std::shared_ptr localVarResult(new GetTicketsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11505,7 +11505,7 @@ pplx::task> DefaultApi::getTickets(utility return localVarResult; }); } -pplx::task> DefaultApi::getUser(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUser(utility::string_t tenantId, utility::string_t id) const { @@ -11618,7 +11618,7 @@ pplx::task> DefaultApi::getUser(utility::stri }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserResponse_1()); + std::shared_ptr localVarResult(new GetUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11639,7 +11639,7 @@ pplx::task> DefaultApi::getUser(utility::stri return localVarResult; }); } -pplx::task> DefaultApi::getUserBadge(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUserBadge(utility::string_t tenantId, utility::string_t id) const { @@ -11752,7 +11752,7 @@ pplx::task> DefaultApi::getUserBadge(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBadgeResponse()); + std::shared_ptr localVarResult(new APIGetUserBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11773,7 +11773,7 @@ pplx::task> DefaultApi::getUserBadge(utili return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressById(utility::string_t tenantId, utility::string_t id) const +pplx::task> DefaultApi::getUserBadgeProgressById(utility::string_t tenantId, utility::string_t id) const { @@ -11886,7 +11886,7 @@ pplx::task> DefaultApi::getUse }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBadgeProgressByIdResponse()); + std::shared_ptr localVarResult(new APIGetUserBadgeProgressResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -11907,7 +11907,7 @@ pplx::task> DefaultApi::getUse return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressByUserId(utility::string_t tenantId, utility::string_t userId) const +pplx::task> DefaultApi::getUserBadgeProgressByUserId(utility::string_t tenantId, utility::string_t userId) const { @@ -12020,7 +12020,7 @@ pplx::task> DefaultApi::ge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBadgeProgressByUserIdResponse()); + std::shared_ptr localVarResult(new APIGetUserBadgeProgressResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12041,7 +12041,7 @@ pplx::task> DefaultApi::ge return localVarResult; }); } -pplx::task> DefaultApi::getUserBadgeProgressList(utility::string_t tenantId, boost::optional userId, boost::optional limit, boost::optional skip) const +pplx::task> DefaultApi::getUserBadgeProgressList(utility::string_t tenantId, boost::optional userId, boost::optional limit, boost::optional skip) const { @@ -12165,7 +12165,7 @@ pplx::task> DefaultApi::getUse }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBadgeProgressListResponse()); + std::shared_ptr localVarResult(new APIGetUserBadgeProgressListResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12186,7 +12186,7 @@ pplx::task> DefaultApi::getUse return localVarResult; }); } -pplx::task> DefaultApi::getUserBadges(utility::string_t tenantId, boost::optional userId, boost::optional badgeId, boost::optional type, boost::optional displayedOnComments, boost::optional limit, boost::optional skip) const +pplx::task> DefaultApi::getUserBadges(utility::string_t tenantId, boost::optional userId, boost::optional badgeId, boost::optional type, boost::optional displayedOnComments, boost::optional limit, boost::optional skip) const { @@ -12322,7 +12322,7 @@ pplx::task> DefaultApi::getUserBadges(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBadgesResponse()); + std::shared_ptr localVarResult(new APIGetUserBadgesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12343,7 +12343,7 @@ pplx::task> DefaultApi::getUserBadges(uti return localVarResult; }); } -pplx::task> DefaultApi::getVotes(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> DefaultApi::getVotes(utility::string_t tenantId, utility::string_t urlId) const { @@ -12458,7 +12458,7 @@ pplx::task> DefaultApi::getVotes(utility::st }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetVotesResponse_1()); + std::shared_ptr localVarResult(new GetVotesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12479,7 +12479,7 @@ pplx::task> DefaultApi::getVotes(utility::st return localVarResult; }); } -pplx::task> DefaultApi::getVotesForUser(utility::string_t tenantId, utility::string_t urlId, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::getVotesForUser(utility::string_t tenantId, utility::string_t urlId, boost::optional userId, boost::optional anonUserId) const { @@ -12602,7 +12602,7 @@ pplx::task> DefaultApi::getVotesForUs }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetVotesForUserResponse_1()); + std::shared_ptr localVarResult(new GetVotesForUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -12780,7 +12780,7 @@ pplx::task> DefaultApi::patchDomainCo return localVarResult; }); } -pplx::task> DefaultApi::patchHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> updateHashTagBody) const +pplx::task> DefaultApi::patchHashTag(utility::string_t tag, boost::optional tenantId, boost::optional> updateHashTagBody) const { @@ -12911,7 +12911,7 @@ pplx::task> DefaultApi::patchHashTag(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PatchHashTagResponse()); + std::shared_ptr localVarResult(new UpdateHashTagResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -13568,7 +13568,7 @@ pplx::task> DefaultApi::putSSOUser(utilit return localVarResult; }); } -pplx::task> DefaultApi::renderEmailTemplate(utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody, boost::optional locale) const +pplx::task> DefaultApi::renderEmailTemplate(utility::string_t tenantId, std::shared_ptr renderEmailTemplateBody, boost::optional locale) const { // verify the required parameter 'renderEmailTemplateBody' is set @@ -13707,7 +13707,7 @@ pplx::task> DefaultApi::renderEma }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new RenderEmailTemplateResponse_1()); + std::shared_ptr localVarResult(new RenderEmailTemplateResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -13728,7 +13728,7 @@ pplx::task> DefaultApi::renderEma return localVarResult; }); } -pplx::task> DefaultApi::replaceTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody) const +pplx::task> DefaultApi::replaceTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantPackageBody) const { // verify the required parameter 'replaceTenantPackageBody' is set @@ -13864,7 +13864,7 @@ pplx::task> DefaultApi::replaceTen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ReplaceTenantPackageResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -13885,7 +13885,7 @@ pplx::task> DefaultApi::replaceTen return localVarResult; }); } -pplx::task> DefaultApi::replaceTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody, boost::optional updateComments) const +pplx::task> DefaultApi::replaceTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr replaceTenantUserBody, boost::optional updateComments) const { // verify the required parameter 'replaceTenantUserBody' is set @@ -14025,7 +14025,7 @@ pplx::task> DefaultApi::replaceTenant }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ReplaceTenantUserResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14046,7 +14046,7 @@ pplx::task> DefaultApi::replaceTenant return localVarResult; }); } -pplx::task> DefaultApi::saveComment(utility::string_t tenantId, std::shared_ptr createCommentParams, boost::optional isLive, boost::optional doSpamCheck, boost::optional sendEmails, boost::optional populateNotifications) const +pplx::task> DefaultApi::saveComment(utility::string_t tenantId, std::shared_ptr createCommentParams, boost::optional isLive, boost::optional doSpamCheck, boost::optional sendEmails, boost::optional populateNotifications) const { // verify the required parameter 'createCommentParams' is set @@ -14197,7 +14197,7 @@ pplx::task> DefaultApi::saveComment(utility }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SaveCommentResponse()); + std::shared_ptr localVarResult(new APISaveCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14399,7 +14399,7 @@ pplx::task>> DefaultApi::s return localVarResult; }); } -pplx::task> DefaultApi::sendInvite(utility::string_t tenantId, utility::string_t id, utility::string_t fromName) const +pplx::task> DefaultApi::sendInvite(utility::string_t tenantId, utility::string_t id, utility::string_t fromName) const { @@ -14515,7 +14515,7 @@ pplx::task> DefaultApi::sendInvite(utility:: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SendInviteResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14536,7 +14536,7 @@ pplx::task> DefaultApi::sendInvite(utility:: return localVarResult; }); } -pplx::task> DefaultApi::sendLoginLink(utility::string_t tenantId, utility::string_t id, boost::optional redirectURL) const +pplx::task> DefaultApi::sendLoginLink(utility::string_t tenantId, utility::string_t id, boost::optional redirectURL) const { @@ -14653,7 +14653,7 @@ pplx::task> DefaultApi::sendLoginLink(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SendLoginLinkResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14674,7 +14674,7 @@ pplx::task> DefaultApi::sendLoginLink(uti return localVarResult; }); } -pplx::task> DefaultApi::unBlockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::unBlockUserFromComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr unBlockFromCommentParams, boost::optional userId, boost::optional anonUserId) const { // verify the required parameter 'unBlockFromCommentParams' is set @@ -14818,7 +14818,7 @@ pplx::task> DefaultApi::unBlockU }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UnBlockUserFromCommentResponse()); + std::shared_ptr localVarResult(new UnblockSuccess()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14839,7 +14839,7 @@ pplx::task> DefaultApi::unBlockU return localVarResult; }); } -pplx::task> DefaultApi::unFlagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const +pplx::task> DefaultApi::unFlagComment(utility::string_t tenantId, utility::string_t id, boost::optional userId, boost::optional anonUserId) const { @@ -14960,7 +14960,7 @@ pplx::task> DefaultApi::unFlagComment(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UnFlagCommentResponse()); + std::shared_ptr localVarResult(new FlagCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -14981,7 +14981,7 @@ pplx::task> DefaultApi::unFlagComment(uti return localVarResult; }); } -pplx::task> DefaultApi::updateComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams, boost::optional contextUserId, boost::optional doSpamCheck, boost::optional isLive) const +pplx::task> DefaultApi::updateComment(utility::string_t tenantId, utility::string_t id, std::shared_ptr updatableCommentParams, boost::optional contextUserId, boost::optional doSpamCheck, boost::optional isLive) const { // verify the required parameter 'updatableCommentParams' is set @@ -15129,7 +15129,7 @@ pplx::task> DefaultApi::updateComment(uti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateCommentResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15150,7 +15150,7 @@ pplx::task> DefaultApi::updateComment(uti return localVarResult; }); } -pplx::task> DefaultApi::updateEmailTemplate(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody) const +pplx::task> DefaultApi::updateEmailTemplate(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateEmailTemplateBody) const { // verify the required parameter 'updateEmailTemplateBody' is set @@ -15286,7 +15286,7 @@ pplx::task> DefaultApi::updateEmail }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateEmailTemplateResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15307,7 +15307,7 @@ pplx::task> DefaultApi::updateEmail return localVarResult; }); } -pplx::task> DefaultApi::updateFeedPost(utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost) const +pplx::task> DefaultApi::updateFeedPost(utility::string_t tenantId, utility::string_t id, std::shared_ptr feedPost) const { // verify the required parameter 'feedPost' is set @@ -15443,7 +15443,7 @@ pplx::task> DefaultApi::updateFeedPost(u }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateFeedPostResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15464,7 +15464,7 @@ pplx::task> DefaultApi::updateFeedPost(u return localVarResult; }); } -pplx::task> DefaultApi::updateModerator(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody) const +pplx::task> DefaultApi::updateModerator(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateModeratorBody) const { // verify the required parameter 'updateModeratorBody' is set @@ -15600,7 +15600,7 @@ pplx::task> DefaultApi::updateModerator }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateModeratorResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15621,7 +15621,7 @@ pplx::task> DefaultApi::updateModerator return localVarResult; }); } -pplx::task> DefaultApi::updateNotification(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody, boost::optional userId) const +pplx::task> DefaultApi::updateNotification(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateNotificationBody, boost::optional userId) const { // verify the required parameter 'updateNotificationBody' is set @@ -15761,7 +15761,7 @@ pplx::task> DefaultApi::updateNotifi }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateNotificationResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15782,7 +15782,7 @@ pplx::task> DefaultApi::updateNotifi return localVarResult; }); } -pplx::task> DefaultApi::updateQuestionConfig(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody) const +pplx::task> DefaultApi::updateQuestionConfig(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionConfigBody) const { // verify the required parameter 'updateQuestionConfigBody' is set @@ -15918,7 +15918,7 @@ pplx::task> DefaultApi::updateQues }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateQuestionConfigResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -15939,7 +15939,7 @@ pplx::task> DefaultApi::updateQues return localVarResult; }); } -pplx::task> DefaultApi::updateQuestionResult(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody) const +pplx::task> DefaultApi::updateQuestionResult(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateQuestionResultBody) const { // verify the required parameter 'updateQuestionResultBody' is set @@ -16075,7 +16075,7 @@ pplx::task> DefaultApi::updateQues }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateQuestionResultResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16257,7 +16257,7 @@ pplx::task> DefaultApi::updateSub return localVarResult; }); } -pplx::task> DefaultApi::updateTenant(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody) const +pplx::task> DefaultApi::updateTenant(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantBody) const { // verify the required parameter 'updateTenantBody' is set @@ -16393,7 +16393,7 @@ pplx::task> DefaultApi::updateTenant(utili }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateTenantResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16414,7 +16414,7 @@ pplx::task> DefaultApi::updateTenant(utili return localVarResult; }); } -pplx::task> DefaultApi::updateTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody) const +pplx::task> DefaultApi::updateTenantPackage(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantPackageBody) const { // verify the required parameter 'updateTenantPackageBody' is set @@ -16550,7 +16550,7 @@ pplx::task> DefaultApi::updateTenan }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateTenantPackageResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16571,7 +16571,7 @@ pplx::task> DefaultApi::updateTenan return localVarResult; }); } -pplx::task> DefaultApi::updateTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody, boost::optional updateComments) const +pplx::task> DefaultApi::updateTenantUser(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateTenantUserBody, boost::optional updateComments) const { // verify the required parameter 'updateTenantUserBody' is set @@ -16711,7 +16711,7 @@ pplx::task> DefaultApi::updateTenantUs }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateTenantUserResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -16732,7 +16732,7 @@ pplx::task> DefaultApi::updateTenantUs return localVarResult; }); } -pplx::task> DefaultApi::updateUserBadge(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams) const +pplx::task> DefaultApi::updateUserBadge(utility::string_t tenantId, utility::string_t id, std::shared_ptr updateUserBadgeParams) const { // verify the required parameter 'updateUserBadgeParams' is set @@ -16868,7 +16868,7 @@ pplx::task> DefaultApi::updateUserBadge }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateUserBadgeResponse()); + std::shared_ptr localVarResult(new APIEmptySuccessResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { diff --git a/client/src/api/ModerationApi.cpp b/client/src/api/ModerationApi.cpp index 0de32fc..cb1c47a 100644 --- a/client/src/api/ModerationApi.cpp +++ b/client/src/api/ModerationApi.cpp @@ -35,7 +35,7 @@ ModerationApi::~ModerationApi() { } -pplx::task> ModerationApi::deleteModerationVote(utility::string_t commentId, utility::string_t voteId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::deleteModerationVote(utility::string_t commentId, utility::string_t voteId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -150,7 +150,7 @@ pplx::task> ModerationApi::deleteM }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteModerationVoteResponse()); + std::shared_ptr localVarResult(new VoteDeleteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -171,7 +171,7 @@ pplx::task> ModerationApi::deleteM return localVarResult; }); } -pplx::task> ModerationApi::getApiComments(boost::optional page, boost::optional count, boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional demo, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getApiComments(boost::optional page, boost::optional count, boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional demo, boost::optional tenantId, boost::optional sso) const { @@ -312,7 +312,7 @@ pplx::task> ModerationApi::getApiComment }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetApiCommentsResponse()); + std::shared_ptr localVarResult(new ModerationAPIGetCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -333,7 +333,7 @@ pplx::task> ModerationApi::getApiComment return localVarResult; }); } -pplx::task> ModerationApi::getApiExportStatus(boost::optional batchJobId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getApiExportStatus(boost::optional batchJobId, boost::optional tenantId, boost::optional sso) const { @@ -446,7 +446,7 @@ pplx::task> ModerationApi::getApiExp }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetApiExportStatusResponse()); + std::shared_ptr localVarResult(new ModerationExportStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -467,7 +467,7 @@ pplx::task> ModerationApi::getApiExp return localVarResult; }); } -pplx::task> ModerationApi::getApiIds(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional afterId, boost::optional demo, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getApiIds(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional afterId, boost::optional demo, boost::optional tenantId, boost::optional sso) const { @@ -600,7 +600,7 @@ pplx::task> ModerationApi::getApiIds(boost::o }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetApiIdsResponse()); + std::shared_ptr localVarResult(new ModerationAPIGetCommentIdsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -621,7 +621,7 @@ pplx::task> ModerationApi::getApiIds(boost::o return localVarResult; }); } -pplx::task> ModerationApi::getBanUsersFromComment(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getBanUsersFromComment(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const { @@ -731,7 +731,7 @@ pplx::task> ModerationApi::getBa }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetBanUsersFromCommentResponse()); + std::shared_ptr localVarResult(new GetBannedUsersFromCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -752,7 +752,7 @@ pplx::task> ModerationApi::getBa return localVarResult; }); } -pplx::task> ModerationApi::getCommentBanStatus(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getCommentBanStatus(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const { @@ -862,7 +862,7 @@ pplx::task> ModerationApi::getCom }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentBanStatusResponse_1()); + std::shared_ptr localVarResult(new GetCommentBanStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -883,7 +883,7 @@ pplx::task> ModerationApi::getCom return localVarResult; }); } -pplx::task> ModerationApi::getCommentChildren(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getCommentChildren(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const { @@ -993,7 +993,7 @@ pplx::task> ModerationApi::getCommen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentChildrenResponse()); + std::shared_ptr localVarResult(new ModerationAPIChildCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1014,7 +1014,7 @@ pplx::task> ModerationApi::getCommen return localVarResult; }); } -pplx::task> ModerationApi::getCount(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filter, boost::optional searchFilters, boost::optional demo, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getCount(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filter, boost::optional searchFilters, boost::optional demo, boost::optional tenantId, boost::optional sso) const { @@ -1143,7 +1143,7 @@ pplx::task> ModerationApi::getCount(boost::opt }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCountResponse()); + std::shared_ptr localVarResult(new ModerationAPICountCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1164,7 +1164,7 @@ pplx::task> ModerationApi::getCount(boost::opt return localVarResult; }); } -pplx::task> ModerationApi::getCounts(boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getCounts(boost::optional tenantId, boost::optional sso) const { @@ -1273,7 +1273,7 @@ pplx::task> ModerationApi::getCounts(boost::o }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCountsResponse()); + std::shared_ptr localVarResult(new GetBannedUsersCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1294,7 +1294,7 @@ pplx::task> ModerationApi::getCounts(boost::o return localVarResult; }); } -pplx::task> ModerationApi::getLogs(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getLogs(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const { @@ -1404,7 +1404,7 @@ pplx::task> ModerationApi::getLogs(utility::str }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetLogsResponse()); + std::shared_ptr localVarResult(new ModerationAPIGetLogsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1425,7 +1425,7 @@ pplx::task> ModerationApi::getLogs(utility::str return localVarResult; }); } -pplx::task> ModerationApi::getManualBadges(boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getManualBadges(boost::optional tenantId, boost::optional sso) const { @@ -1534,7 +1534,7 @@ pplx::task> ModerationApi::getManualBad }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetManualBadgesResponse()); + std::shared_ptr localVarResult(new GetTenantManualBadgesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1555,7 +1555,7 @@ pplx::task> ModerationApi::getManualBad return localVarResult; }); } -pplx::task> ModerationApi::getManualBadgesForUser(boost::optional badgesUserId, boost::optional commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getManualBadgesForUser(boost::optional badgesUserId, boost::optional commentId, boost::optional tenantId, boost::optional sso) const { @@ -1672,7 +1672,7 @@ pplx::task> ModerationApi::getMa }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetManualBadgesForUserResponse()); + std::shared_ptr localVarResult(new GetUserManualBadgesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1693,7 +1693,7 @@ pplx::task> ModerationApi::getMa return localVarResult; }); } -pplx::task> ModerationApi::getModerationComment(utility::string_t commentId, boost::optional includeEmail, boost::optional includeIP, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getModerationComment(utility::string_t commentId, boost::optional includeEmail, boost::optional includeIP, boost::optional tenantId, boost::optional sso) const { @@ -1811,7 +1811,7 @@ pplx::task> ModerationApi::getMode }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetModerationCommentResponse()); + std::shared_ptr localVarResult(new ModerationAPICommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1832,7 +1832,7 @@ pplx::task> ModerationApi::getMode return localVarResult; }); } -pplx::task> ModerationApi::getModerationCommentText(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getModerationCommentText(utility::string_t commentId, boost::optional tenantId, boost::optional sso) const { @@ -1942,7 +1942,7 @@ pplx::task> ModerationApi::get }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetModerationCommentTextResponse()); + std::shared_ptr localVarResult(new GetCommentTextResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1963,7 +1963,7 @@ pplx::task> ModerationApi::get return localVarResult; }); } -pplx::task> ModerationApi::getPreBanSummary(utility::string_t commentId, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getPreBanSummary(utility::string_t commentId, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional tenantId, boost::optional sso) const { @@ -2085,7 +2085,7 @@ pplx::task> ModerationApi::getPreBanSu }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetPreBanSummaryResponse()); + std::shared_ptr localVarResult(new PreBanSummary()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2106,7 +2106,7 @@ pplx::task> ModerationApi::getPreBanSu return localVarResult; }); } -pplx::task> ModerationApi::getSearchCommentsSummary(boost::optional value, boost::optional filters, boost::optional searchFilters, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchCommentsSummary(boost::optional value, boost::optional filters, boost::optional searchFilters, boost::optional tenantId, boost::optional sso) const { @@ -2227,7 +2227,7 @@ pplx::task> ModerationApi::get }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetSearchCommentsSummaryResponse()); + std::shared_ptr localVarResult(new ModerationCommentSearchResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2248,7 +2248,7 @@ pplx::task> ModerationApi::get return localVarResult; }); } -pplx::task> ModerationApi::getSearchPages(boost::optional value, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchPages(boost::optional value, boost::optional tenantId, boost::optional sso) const { @@ -2361,7 +2361,7 @@ pplx::task> ModerationApi::getSearchPage }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetSearchPagesResponse()); + std::shared_ptr localVarResult(new ModerationPageSearchResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2382,7 +2382,7 @@ pplx::task> ModerationApi::getSearchPage return localVarResult; }); } -pplx::task> ModerationApi::getSearchSites(boost::optional value, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchSites(boost::optional value, boost::optional tenantId, boost::optional sso) const { @@ -2495,7 +2495,7 @@ pplx::task> ModerationApi::getSearchSite }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetSearchSitesResponse()); + std::shared_ptr localVarResult(new ModerationSiteSearchResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2516,7 +2516,7 @@ pplx::task> ModerationApi::getSearchSite return localVarResult; }); } -pplx::task> ModerationApi::getSearchSuggest(boost::optional textSearch, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchSuggest(boost::optional textSearch, boost::optional tenantId, boost::optional sso) const { @@ -2629,7 +2629,7 @@ pplx::task> ModerationApi::getSearchSu }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetSearchSuggestResponse()); + std::shared_ptr localVarResult(new ModerationSuggestResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2650,7 +2650,7 @@ pplx::task> ModerationApi::getSearchSu return localVarResult; }); } -pplx::task> ModerationApi::getSearchUsers(boost::optional value, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getSearchUsers(boost::optional value, boost::optional tenantId, boost::optional sso) const { @@ -2763,7 +2763,7 @@ pplx::task> ModerationApi::getSearchUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetSearchUsersResponse()); + std::shared_ptr localVarResult(new ModerationUserSearchResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2784,7 +2784,7 @@ pplx::task> ModerationApi::getSearchUser return localVarResult; }); } -pplx::task> ModerationApi::getTrustFactor(boost::optional userId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getTrustFactor(boost::optional userId, boost::optional tenantId, boost::optional sso) const { @@ -2897,7 +2897,7 @@ pplx::task> ModerationApi::getTrustFacto }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTrustFactorResponse()); + std::shared_ptr localVarResult(new GetUserTrustFactorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2918,7 +2918,7 @@ pplx::task> ModerationApi::getTrustFacto return localVarResult; }); } -pplx::task> ModerationApi::getUserBanPreference(boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getUserBanPreference(boost::optional tenantId, boost::optional sso) const { @@ -3027,7 +3027,7 @@ pplx::task> ModerationApi::getUser }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserBanPreferenceResponse()); + std::shared_ptr localVarResult(new APIModerateGetUserBanPreferencesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3048,7 +3048,7 @@ pplx::task> ModerationApi::getUser return localVarResult; }); } -pplx::task> ModerationApi::getUserInternalProfile(boost::optional commentId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::getUserInternalProfile(boost::optional commentId, boost::optional tenantId, boost::optional sso) const { @@ -3161,7 +3161,7 @@ pplx::task> ModerationApi::get }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserInternalProfileResponse_1()); + std::shared_ptr localVarResult(new GetUserInternalProfileResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3182,7 +3182,7 @@ pplx::task> ModerationApi::get return localVarResult; }); } -pplx::task> ModerationApi::postAdjustCommentVotes(utility::string_t commentId, std::shared_ptr adjustCommentVotesParams, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postAdjustCommentVotes(utility::string_t commentId, std::shared_ptr adjustCommentVotesParams, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { // verify the required parameter 'adjustCommentVotesParams' is set @@ -3319,7 +3319,7 @@ pplx::task> ModerationApi::postA }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostAdjustCommentVotesResponse()); + std::shared_ptr localVarResult(new AdjustVotesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3340,7 +3340,7 @@ pplx::task> ModerationApi::postA return localVarResult; }); } -pplx::task> ModerationApi::postApiExport(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postApiExport(boost::optional textSearch, boost::optional byIPFromComment, boost::optional filters, boost::optional searchFilters, boost::optional sorts, boost::optional tenantId, boost::optional sso) const { @@ -3469,7 +3469,7 @@ pplx::task> ModerationApi::postApiExport( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostApiExportResponse()); + std::shared_ptr localVarResult(new ModerationExportResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3490,7 +3490,7 @@ pplx::task> ModerationApi::postApiExport( return localVarResult; }); } -pplx::task> ModerationApi::postBanUserFromComment(utility::string_t commentId, boost::optional banEmail, boost::optional banEmailDomain, boost::optional banIP, boost::optional deleteAllUsersComments, boost::optional bannedUntil, boost::optional isShadowBan, boost::optional updateId, boost::optional banReason, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postBanUserFromComment(utility::string_t commentId, boost::optional banEmail, boost::optional banEmailDomain, boost::optional banIP, boost::optional deleteAllUsersComments, boost::optional bannedUntil, boost::optional isShadowBan, boost::optional updateId, boost::optional banReason, boost::optional tenantId, boost::optional sso) const { @@ -3632,7 +3632,7 @@ pplx::task> ModerationApi::postB }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostBanUserFromCommentResponse()); + std::shared_ptr localVarResult(new BanUserFromCommentResult()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3653,7 +3653,7 @@ pplx::task> ModerationApi::postB return localVarResult; }); } -pplx::task> ModerationApi::postBanUserUndo(std::shared_ptr banUserUndoParams, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postBanUserUndo(std::shared_ptr banUserUndoParams, boost::optional tenantId, boost::optional sso) const { // verify the required parameter 'banUserUndoParams' is set @@ -3785,7 +3785,7 @@ pplx::task> ModerationApi::postBanUserU }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostBanUserUndoResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3806,7 +3806,7 @@ pplx::task> ModerationApi::postBanUserU return localVarResult; }); } -pplx::task> ModerationApi::postBulkPreBanSummary(std::shared_ptr bulkPreBanParams, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postBulkPreBanSummary(std::shared_ptr bulkPreBanParams, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, boost::optional tenantId, boost::optional sso) const { // verify the required parameter 'bulkPreBanParams' is set @@ -3950,7 +3950,7 @@ pplx::task> ModerationApi::postBu }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostBulkPreBanSummaryResponse()); + std::shared_ptr localVarResult(new BulkPreBanSummary()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3971,7 +3971,7 @@ pplx::task> ModerationApi::postBu return localVarResult; }); } -pplx::task> ModerationApi::postCommentsByIds(std::shared_ptr commentsByIdsParams, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postCommentsByIds(std::shared_ptr commentsByIdsParams, boost::optional tenantId, boost::optional sso) const { // verify the required parameter 'commentsByIdsParams' is set @@ -4103,7 +4103,7 @@ pplx::task> ModerationApi::postCommen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostCommentsByIdsResponse()); + std::shared_ptr localVarResult(new ModerationAPIChildCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4124,7 +4124,7 @@ pplx::task> ModerationApi::postCommen return localVarResult; }); } -pplx::task> ModerationApi::postFlagComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postFlagComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4238,7 +4238,7 @@ pplx::task> ModerationApi::postFlagComm }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostFlagCommentResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4394,7 +4394,7 @@ pplx::task> ModerationApi::postRemove return localVarResult; }); } -pplx::task> ModerationApi::postRestoreDeletedComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postRestoreDeletedComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4508,7 +4508,7 @@ pplx::task> ModerationApi::po }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostRestoreDeletedCommentResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4529,7 +4529,7 @@ pplx::task> ModerationApi::po return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentApprovalStatus(utility::string_t commentId, boost::optional approved, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentApprovalStatus(utility::string_t commentId, boost::optional approved, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4647,7 +4647,7 @@ pplx::task> ModerationApi: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostSetCommentApprovalStatusResponse()); + std::shared_ptr localVarResult(new SetCommentApprovedResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4668,7 +4668,7 @@ pplx::task> ModerationApi: return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentReviewStatus(utility::string_t commentId, boost::optional reviewed, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentReviewStatus(utility::string_t commentId, boost::optional reviewed, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4786,7 +4786,7 @@ pplx::task> ModerationApi::p }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostSetCommentReviewStatusResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4807,7 +4807,7 @@ pplx::task> ModerationApi::p return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentSpamStatus(utility::string_t commentId, boost::optional spam, boost::optional permNotSpam, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentSpamStatus(utility::string_t commentId, boost::optional spam, boost::optional permNotSpam, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -4929,7 +4929,7 @@ pplx::task> ModerationApi::pos }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostSetCommentSpamStatusResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4950,7 +4950,7 @@ pplx::task> ModerationApi::pos return localVarResult; }); } -pplx::task> ModerationApi::postSetCommentText(utility::string_t commentId, std::shared_ptr setCommentTextParams, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postSetCommentText(utility::string_t commentId, std::shared_ptr setCommentTextParams, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { // verify the required parameter 'setCommentTextParams' is set @@ -5087,7 +5087,7 @@ pplx::task> ModerationApi::postSetCo }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostSetCommentTextResponse()); + std::shared_ptr localVarResult(new SetCommentTextResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5108,7 +5108,7 @@ pplx::task> ModerationApi::postSetCo return localVarResult; }); } -pplx::task> ModerationApi::postUnFlagComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postUnFlagComment(utility::string_t commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -5222,7 +5222,7 @@ pplx::task> ModerationApi::postUnFlag }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostUnFlagCommentResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5243,7 +5243,7 @@ pplx::task> ModerationApi::postUnFlag return localVarResult; }); } -pplx::task> ModerationApi::postVote(utility::string_t commentId, boost::optional direction, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::postVote(utility::string_t commentId, boost::optional direction, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -5361,7 +5361,7 @@ pplx::task> ModerationApi::postVote(utility::s }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PostVoteResponse()); + std::shared_ptr localVarResult(new VoteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5382,7 +5382,7 @@ pplx::task> ModerationApi::postVote(utility::s return localVarResult; }); } -pplx::task> ModerationApi::putAwardBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::putAwardBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -5506,7 +5506,7 @@ pplx::task> ModerationApi::putAwardBadge( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PutAwardBadgeResponse()); + std::shared_ptr localVarResult(new AwardUserBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5527,7 +5527,7 @@ pplx::task> ModerationApi::putAwardBadge( return localVarResult; }); } -pplx::task> ModerationApi::putCloseThread(utility::string_t urlId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::putCloseThread(utility::string_t urlId, boost::optional tenantId, boost::optional sso) const { @@ -5639,7 +5639,7 @@ pplx::task> ModerationApi::putCloseThrea }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PutCloseThreadResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5660,7 +5660,7 @@ pplx::task> ModerationApi::putCloseThrea return localVarResult; }); } -pplx::task> ModerationApi::putRemoveBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::putRemoveBadge(utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, boost::optional tenantId, boost::optional sso) const { @@ -5784,7 +5784,7 @@ pplx::task> ModerationApi::putRemoveBadg }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PutRemoveBadgeResponse()); + std::shared_ptr localVarResult(new RemoveUserBadgeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5805,7 +5805,7 @@ pplx::task> ModerationApi::putRemoveBadg return localVarResult; }); } -pplx::task> ModerationApi::putReopenThread(utility::string_t urlId, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::putReopenThread(utility::string_t urlId, boost::optional tenantId, boost::optional sso) const { @@ -5917,7 +5917,7 @@ pplx::task> ModerationApi::putReopenThr }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PutReopenThreadResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5938,7 +5938,7 @@ pplx::task> ModerationApi::putReopenThr return localVarResult; }); } -pplx::task> ModerationApi::setTrustFactor(boost::optional userId, boost::optional trustFactor, boost::optional tenantId, boost::optional sso) const +pplx::task> ModerationApi::setTrustFactor(boost::optional userId, boost::optional trustFactor, boost::optional tenantId, boost::optional sso) const { @@ -6055,7 +6055,7 @@ pplx::task> ModerationApi::setTrustFacto }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SetTrustFactorResponse()); + std::shared_ptr localVarResult(new SetUserTrustFactorResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { diff --git a/client/src/api/PublicApi.cpp b/client/src/api/PublicApi.cpp index bb54359..f5eaff7 100644 --- a/client/src/api/PublicApi.cpp +++ b/client/src/api/PublicApi.cpp @@ -35,7 +35,7 @@ PublicApi::~PublicApi() { } -pplx::task> PublicApi::blockFromCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const +pplx::task> PublicApi::blockFromCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const { // verify the required parameter 'publicBlockFromCommentParams' is set @@ -167,7 +167,7 @@ pplx::task> PublicApi::blockFrom }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new BlockFromCommentPublicResponse()); + std::shared_ptr localVarResult(new BlockSuccess()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -188,7 +188,7 @@ pplx::task> PublicApi::blockFrom return localVarResult; }); } -pplx::task> PublicApi::checkedCommentsForBlocked(utility::string_t tenantId, utility::string_t commentIds, boost::optional sso) const +pplx::task> PublicApi::checkedCommentsForBlocked(utility::string_t tenantId, utility::string_t commentIds, boost::optional sso) const { @@ -299,7 +299,7 @@ pplx::task> PublicApi::checke }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CheckedCommentsForBlockedResponse()); + std::shared_ptr localVarResult(new CheckBlockedCommentsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -320,7 +320,7 @@ pplx::task> PublicApi::checke return localVarResult; }); } -pplx::task> PublicApi::createCommentPublic(utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr commentData, boost::optional sessionId, boost::optional sso) const +pplx::task> PublicApi::createCommentPublic(utility::string_t tenantId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr commentData, boost::optional sessionId, boost::optional sso) const { // verify the required parameter 'commentData' is set @@ -459,7 +459,7 @@ pplx::task> PublicApi::createCommen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateCommentPublicResponse()); + std::shared_ptr localVarResult(new SaveCommentsResponseWithPresence()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -480,7 +480,7 @@ pplx::task> PublicApi::createCommen return localVarResult; }); } -pplx::task> PublicApi::createFeedPostPublic(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::createFeedPostPublic(utility::string_t tenantId, std::shared_ptr createFeedPostParams, boost::optional broadcastId, boost::optional sso) const { // verify the required parameter 'createFeedPostParams' is set @@ -613,7 +613,7 @@ pplx::task> PublicApi::createFeedP }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateFeedPostPublicResponse()); + std::shared_ptr localVarResult(new CreateFeedPostResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -634,7 +634,7 @@ pplx::task> PublicApi::createFeedP return localVarResult; }); } -pplx::task> PublicApi::createV1PageReact(utility::string_t tenantId, utility::string_t urlId, boost::optional title) const +pplx::task> PublicApi::createV1PageReact(utility::string_t tenantId, utility::string_t urlId, boost::optional title) const { @@ -743,7 +743,7 @@ pplx::task> PublicApi::createV1PageRe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateV1PageReactResponse()); + std::shared_ptr localVarResult(new CreateV1PageReact()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -764,7 +764,7 @@ pplx::task> PublicApi::createV1PageRe return localVarResult; }); } -pplx::task> PublicApi::createV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id, boost::optional title) const +pplx::task> PublicApi::createV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id, boost::optional title) const { @@ -876,7 +876,7 @@ pplx::task> PublicApi::createV2PageRe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new CreateV2PageReactResponse()); + std::shared_ptr localVarResult(new CreateV1PageReact()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -897,7 +897,7 @@ pplx::task> PublicApi::createV2PageRe return localVarResult; }); } -pplx::task> PublicApi::deleteCommentPublic(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::deleteCommentPublic(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const { @@ -1011,7 +1011,7 @@ pplx::task> PublicApi::deleteCommen }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteCommentPublicResponse()); + std::shared_ptr localVarResult(new PublicAPIDeleteCommentResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1032,7 +1032,7 @@ pplx::task> PublicApi::deleteCommen return localVarResult; }); } -pplx::task> PublicApi::deleteCommentVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId, utility::string_t urlId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::deleteCommentVote(utility::string_t tenantId, utility::string_t commentId, utility::string_t voteId, utility::string_t urlId, utility::string_t broadcastId, boost::optional editKey, boost::optional sso) const { @@ -1150,7 +1150,7 @@ pplx::task> PublicApi::deleteCommentV }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteCommentVoteResponse()); + std::shared_ptr localVarResult(new VoteDeleteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1303,7 +1303,7 @@ pplx::task> PublicApi::deleteFeedP return localVarResult; }); } -pplx::task> PublicApi::deleteV1PageReact(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::deleteV1PageReact(utility::string_t tenantId, utility::string_t urlId) const { @@ -1408,7 +1408,7 @@ pplx::task> PublicApi::deleteV1PageRe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteV1PageReactResponse()); + std::shared_ptr localVarResult(new CreateV1PageReact()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1429,7 +1429,7 @@ pplx::task> PublicApi::deleteV1PageRe return localVarResult; }); } -pplx::task> PublicApi::deleteV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const +pplx::task> PublicApi::deleteV2PageReact(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const { @@ -1537,7 +1537,7 @@ pplx::task> PublicApi::deleteV2PageRe }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new DeleteV2PageReactResponse()); + std::shared_ptr localVarResult(new CreateV1PageReact()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1558,7 +1558,7 @@ pplx::task> PublicApi::deleteV2PageRe return localVarResult; }); } -pplx::task> PublicApi::flagCommentPublic(utility::string_t tenantId, utility::string_t commentId, bool isFlagged, boost::optional sso) const +pplx::task> PublicApi::flagCommentPublic(utility::string_t tenantId, utility::string_t commentId, bool isFlagged, boost::optional sso) const { @@ -1670,7 +1670,7 @@ pplx::task> PublicApi::flagCommentPub }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new FlagCommentPublicResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1691,7 +1691,7 @@ pplx::task> PublicApi::flagCommentPub return localVarResult; }); } -pplx::task> PublicApi::getCommentText(utility::string_t tenantId, utility::string_t commentId, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::getCommentText(utility::string_t tenantId, utility::string_t commentId, boost::optional editKey, boost::optional sso) const { @@ -1802,7 +1802,7 @@ pplx::task> PublicApi::getCommentText( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentTextResponse_1()); + std::shared_ptr localVarResult(new PublicAPIGetCommentTextResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1823,7 +1823,7 @@ pplx::task> PublicApi::getCommentText( return localVarResult; }); } -pplx::task> PublicApi::getCommentVoteUserNames(utility::string_t tenantId, utility::string_t commentId, int32_t dir, boost::optional sso) const +pplx::task> PublicApi::getCommentVoteUserNames(utility::string_t tenantId, utility::string_t commentId, int32_t dir, boost::optional sso) const { @@ -1933,7 +1933,7 @@ pplx::task> PublicApi::getComme }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentVoteUserNamesResponse()); + std::shared_ptr localVarResult(new GetCommentVoteUserNamesSuccessResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -1954,7 +1954,7 @@ pplx::task> PublicApi::getComme return localVarResult; }); } -pplx::task> PublicApi::getCommentsForUser(boost::optional userId, boost::optional> direction, boost::optional repliesToUserId, boost::optional page, boost::optional includei10n, boost::optional locale, boost::optional isCrawler) const +pplx::task> PublicApi::getCommentsForUser(boost::optional userId, boost::optional> direction, boost::optional repliesToUserId, boost::optional page, boost::optional includei10n, boost::optional locale, boost::optional isCrawler) const { @@ -2083,7 +2083,7 @@ pplx::task> PublicApi::getComments }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentsForUserResponse_1()); + std::shared_ptr localVarResult(new GetCommentsForUserResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2104,7 +2104,7 @@ pplx::task> PublicApi::getComments return localVarResult; }); } -pplx::task> PublicApi::getCommentsPublic(utility::string_t tenantId, utility::string_t urlId, boost::optional page, boost::optional> direction, boost::optional sso, boost::optional skip, boost::optional skipChildren, boost::optional limit, boost::optional limitChildren, boost::optional countChildren, boost::optional fetchPageForCommentId, boost::optional includeConfig, boost::optional countAll, boost::optional includei10n, boost::optional locale, boost::optional modules, boost::optional isCrawler, boost::optional includeNotificationCount, boost::optional asTree, boost::optional maxTreeDepth, boost::optional useFullTranslationIds, boost::optional parentId, boost::optional searchText, boost::optional> hashTags, boost::optional userId, boost::optional customConfigStr, boost::optional afterCommentId, boost::optional beforeCommentId) const +pplx::task> PublicApi::getCommentsPublic(utility::string_t tenantId, utility::string_t urlId, boost::optional page, boost::optional> direction, boost::optional sso, boost::optional skip, boost::optional skipChildren, boost::optional limit, boost::optional limitChildren, boost::optional countChildren, boost::optional fetchPageForCommentId, boost::optional includeConfig, boost::optional countAll, boost::optional includei10n, boost::optional locale, boost::optional modules, boost::optional isCrawler, boost::optional includeNotificationCount, boost::optional asTree, boost::optional maxTreeDepth, boost::optional useFullTranslationIds, boost::optional parentId, boost::optional searchText, boost::optional> hashTags, boost::optional userId, boost::optional customConfigStr, boost::optional afterCommentId, boost::optional beforeCommentId) const { @@ -2313,7 +2313,7 @@ pplx::task> PublicApi::getCommentsPub }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetCommentsPublicResponse()); + std::shared_ptr localVarResult(new GetCommentsResponseWithPresence_PublicComment_()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2334,7 +2334,7 @@ pplx::task> PublicApi::getCommentsPub return localVarResult; }); } -pplx::task> PublicApi::getEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const +pplx::task> PublicApi::getEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const { @@ -2449,7 +2449,7 @@ pplx::task> PublicApi::getEventLog(utilit }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetEventLogResponse_1()); + std::shared_ptr localVarResult(new GetEventLogResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2470,7 +2470,7 @@ pplx::task> PublicApi::getEventLog(utilit return localVarResult; }); } -pplx::task> PublicApi::getFeedPostsPublic(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags, boost::optional sso, boost::optional isCrawler, boost::optional includeUserInfo) const +pplx::task> PublicApi::getFeedPostsPublic(utility::string_t tenantId, boost::optional afterId, boost::optional limit, boost::optional> tags, boost::optional sso, boost::optional isCrawler, boost::optional includeUserInfo) const { @@ -2596,7 +2596,7 @@ pplx::task> PublicApi::getFeedPostsP }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetFeedPostsPublicResponse()); + std::shared_ptr localVarResult(new PublicFeedPostsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2617,7 +2617,7 @@ pplx::task> PublicApi::getFeedPostsP return localVarResult; }); } -pplx::task> PublicApi::getFeedPostsStats(utility::string_t tenantId, std::vector postIds, boost::optional sso) const +pplx::task> PublicApi::getFeedPostsStats(utility::string_t tenantId, std::vector postIds, boost::optional sso) const { @@ -2726,7 +2726,7 @@ pplx::task> PublicApi::getFeedPostsSt }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetFeedPostsStatsResponse()); + std::shared_ptr localVarResult(new FeedPostsStatsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -2747,7 +2747,7 @@ pplx::task> PublicApi::getFeedPostsSt return localVarResult; }); } -pplx::task> PublicApi::getGifLarge(utility::string_t tenantId, utility::string_t largeInternalURLSanitized) const +pplx::task> PublicApi::getGifLarge(utility::string_t tenantId, utility::string_t largeInternalURLSanitized) const { @@ -2852,7 +2852,7 @@ pplx::task> PublicApi::getGifLarge(utility: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetGifLargeResponse()); + std::shared_ptr localVarResult(new GifGetLargeResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3146,7 +3146,7 @@ pplx::task> PublicApi::getGifsTrending( return localVarResult; }); } -pplx::task> PublicApi::getGlobalEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const +pplx::task> PublicApi::getGlobalEventLog(utility::string_t tenantId, utility::string_t urlId, utility::string_t userIdWS, int64_t startTime, boost::optional endTime) const { @@ -3261,7 +3261,7 @@ pplx::task> PublicApi::getGlobalEvent }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetGlobalEventLogResponse()); + std::shared_ptr localVarResult(new GetEventLogResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3282,7 +3282,7 @@ pplx::task> PublicApi::getGlobalEvent return localVarResult; }); } -pplx::task> PublicApi::getOfflineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const +pplx::task> PublicApi::getOfflineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const { @@ -3395,7 +3395,7 @@ pplx::task> PublicApi::getOfflineUsers( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetOfflineUsersResponse()); + std::shared_ptr localVarResult(new PageUsersOfflineResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3416,7 +3416,7 @@ pplx::task> PublicApi::getOfflineUsers( return localVarResult; }); } -pplx::task> PublicApi::getOnlineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const +pplx::task> PublicApi::getOnlineUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional afterName, boost::optional afterUserId) const { @@ -3529,7 +3529,7 @@ pplx::task> PublicApi::getOnlineUsers(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetOnlineUsersResponse()); + std::shared_ptr localVarResult(new PageUsersOnlineResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3550,7 +3550,7 @@ pplx::task> PublicApi::getOnlineUsers(ut return localVarResult; }); } -pplx::task> PublicApi::getPagesPublic(utility::string_t tenantId, boost::optional cursor, boost::optional limit, boost::optional q, boost::optional> sortBy, boost::optional hasComments) const +pplx::task> PublicApi::getPagesPublic(utility::string_t tenantId, boost::optional cursor, boost::optional limit, boost::optional q, boost::optional> sortBy, boost::optional hasComments) const { @@ -3672,7 +3672,7 @@ pplx::task> PublicApi::getPagesPublic(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetPagesPublicResponse()); + std::shared_ptr localVarResult(new GetPublicPagesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3693,7 +3693,7 @@ pplx::task> PublicApi::getPagesPublic(ut return localVarResult; }); } -pplx::task> PublicApi::getTranslations(utility::string_t r_namespace, utility::string_t component, boost::optional locale, boost::optional useFullTranslationIds) const +pplx::task> PublicApi::getTranslations(utility::string_t r_namespace, utility::string_t component, boost::optional locale, boost::optional useFullTranslationIds) const { @@ -3804,7 +3804,7 @@ pplx::task> PublicApi::getTranslation }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetTranslationsResponse_1()); + std::shared_ptr localVarResult(new GetTranslationsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3825,7 +3825,7 @@ pplx::task> PublicApi::getTranslation return localVarResult; }); } -pplx::task> PublicApi::getUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +pplx::task> PublicApi::getUserNotificationCount(utility::string_t tenantId, boost::optional sso) const { @@ -3933,7 +3933,7 @@ pplx::task> PublicApi::getUs }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserNotificationCountResponse_1()); + std::shared_ptr localVarResult(new GetUserNotificationCountResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -3954,7 +3954,7 @@ pplx::task> PublicApi::getUs return localVarResult; }); } -pplx::task> PublicApi::getUserNotifications(utility::string_t tenantId, boost::optional urlId, boost::optional pageSize, boost::optional afterId, boost::optional includeContext, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional includeTranslations, boost::optional includeTenantNotifications, boost::optional sso) const +pplx::task> PublicApi::getUserNotifications(utility::string_t tenantId, boost::optional urlId, boost::optional pageSize, boost::optional afterId, boost::optional includeContext, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional includeTranslations, boost::optional includeTenantNotifications, boost::optional sso) const { @@ -4102,7 +4102,7 @@ pplx::task> PublicApi::getUserNoti }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserNotificationsResponse()); + std::shared_ptr localVarResult(new GetMyNotificationsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4123,7 +4123,7 @@ pplx::task> PublicApi::getUserNoti return localVarResult; }); } -pplx::task> PublicApi::getUserPresenceStatuses(utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds) const +pplx::task> PublicApi::getUserPresenceStatuses(utility::string_t tenantId, utility::string_t urlIdWS, utility::string_t userIds) const { @@ -4233,7 +4233,7 @@ pplx::task> PublicApi::getUse }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserPresenceStatusesResponse_1()); + std::shared_ptr localVarResult(new GetUserPresenceStatusesResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4254,7 +4254,7 @@ pplx::task> PublicApi::getUse return localVarResult; }); } -pplx::task> PublicApi::getUserReactsPublic(utility::string_t tenantId, boost::optional> postIds, boost::optional sso) const +pplx::task> PublicApi::getUserReactsPublic(utility::string_t tenantId, boost::optional> postIds, boost::optional sso) const { @@ -4364,7 +4364,7 @@ pplx::task> PublicApi::getUserReact }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUserReactsPublicResponse()); + std::shared_ptr localVarResult(new UserReactsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4385,7 +4385,7 @@ pplx::task> PublicApi::getUserReact return localVarResult; }); } -pplx::task> PublicApi::getUsersInfo(utility::string_t tenantId, utility::string_t ids) const +pplx::task> PublicApi::getUsersInfo(utility::string_t tenantId, utility::string_t ids) const { @@ -4490,7 +4490,7 @@ pplx::task> PublicApi::getUsersInfo(utilit }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetUsersInfoResponse()); + std::shared_ptr localVarResult(new PageUsersInfoResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4511,7 +4511,7 @@ pplx::task> PublicApi::getUsersInfo(utilit return localVarResult; }); } -pplx::task> PublicApi::getV1PageLikes(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::getV1PageLikes(utility::string_t tenantId, utility::string_t urlId) const { @@ -4616,7 +4616,7 @@ pplx::task> PublicApi::getV1PageLikes(ut }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetV1PageLikesResponse()); + std::shared_ptr localVarResult(new GetV1PageLikes()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4637,7 +4637,7 @@ pplx::task> PublicApi::getV1PageLikes(ut return localVarResult; }); } -pplx::task> PublicApi::getV2PageReactUsers(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const +pplx::task> PublicApi::getV2PageReactUsers(utility::string_t tenantId, utility::string_t urlId, utility::string_t id) const { @@ -4745,7 +4745,7 @@ pplx::task> PublicApi::getV2PageR }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetV2PageReactUsersResponse_1()); + std::shared_ptr localVarResult(new GetV2PageReactUsersResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4766,7 +4766,7 @@ pplx::task> PublicApi::getV2PageR return localVarResult; }); } -pplx::task> PublicApi::getV2PageReacts(utility::string_t tenantId, utility::string_t urlId) const +pplx::task> PublicApi::getV2PageReacts(utility::string_t tenantId, utility::string_t urlId) const { @@ -4871,7 +4871,7 @@ pplx::task> PublicApi::getV2PageReacts( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new GetV2PageReactsResponse()); + std::shared_ptr localVarResult(new GetV2PageReacts()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -4892,7 +4892,7 @@ pplx::task> PublicApi::getV2PageReacts( return localVarResult; }); } -pplx::task> PublicApi::lockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::lockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -5002,7 +5002,7 @@ pplx::task> PublicApi::lockComment(utility: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new LockCommentResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5145,7 +5145,7 @@ pplx::task> PublicApi::logoutPublic() const return localVarResult; }); } -pplx::task> PublicApi::pinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::pinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -5255,7 +5255,7 @@ pplx::task> PublicApi::pinComment(utility::s }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new PinCommentResponse()); + std::shared_ptr localVarResult(new ChangeCommentPinStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5276,7 +5276,7 @@ pplx::task> PublicApi::pinComment(utility::s return localVarResult; }); } -pplx::task> PublicApi::reactFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams, boost::optional isUndo, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::reactFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr reactBodyParams, boost::optional isUndo, boost::optional broadcastId, boost::optional sso) const { // verify the required parameter 'reactBodyParams' is set @@ -5414,7 +5414,7 @@ pplx::task> PublicApi::reactFeedPos }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ReactFeedPostPublicResponse()); + std::shared_ptr localVarResult(new ReactFeedPostResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5435,7 +5435,7 @@ pplx::task> PublicApi::reactFeedPos return localVarResult; }); } -pplx::task> PublicApi::resetUserNotificationCount(utility::string_t tenantId, boost::optional sso) const +pplx::task> PublicApi::resetUserNotificationCount(utility::string_t tenantId, boost::optional sso) const { @@ -5543,7 +5543,7 @@ pplx::task> PublicApi::reset }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ResetUserNotificationCountResponse()); + std::shared_ptr localVarResult(new ResetUserNotificationsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5564,7 +5564,7 @@ pplx::task> PublicApi::reset return localVarResult; }); } -pplx::task> PublicApi::resetUserNotifications(utility::string_t tenantId, boost::optional afterId, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional sso) const +pplx::task> PublicApi::resetUserNotifications(utility::string_t tenantId, boost::optional afterId, boost::optional afterCreatedAt, boost::optional unreadOnly, boost::optional dmOnly, boost::optional noDm, boost::optional sso) const { @@ -5692,7 +5692,7 @@ pplx::task> PublicApi::resetUs }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new ResetUserNotificationsResponse_1()); + std::shared_ptr localVarResult(new ResetUserNotificationsResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5713,7 +5713,7 @@ pplx::task> PublicApi::resetUs return localVarResult; }); } -pplx::task> PublicApi::searchUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional usernameStartsWith, boost::optional> mentionGroupIds, boost::optional sso, boost::optional searchSection) const +pplx::task> PublicApi::searchUsers(utility::string_t tenantId, utility::string_t urlId, boost::optional usernameStartsWith, boost::optional> mentionGroupIds, boost::optional sso, boost::optional searchSection) const { @@ -5834,7 +5834,7 @@ pplx::task> PublicApi::searchUsers(utilit }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SearchUsersResponse_1()); + std::shared_ptr localVarResult(new SearchUsersResult()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -5855,7 +5855,7 @@ pplx::task> PublicApi::searchUsers(utilit return localVarResult; }); } -pplx::task> PublicApi::setCommentText(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest, boost::optional editKey, boost::optional sso) const +pplx::task> PublicApi::setCommentText(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, std::shared_ptr commentTextUpdateRequest, boost::optional editKey, boost::optional sso) const { // verify the required parameter 'commentTextUpdateRequest' is set @@ -5992,7 +5992,7 @@ pplx::task> PublicApi::setCommentText( }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new SetCommentTextResponse_1()); + std::shared_ptr localVarResult(new PublicAPISetCommentTextResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6013,7 +6013,7 @@ pplx::task> PublicApi::setCommentText( return localVarResult; }); } -pplx::task> PublicApi::unBlockCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const +pplx::task> PublicApi::unBlockCommentPublic(utility::string_t tenantId, utility::string_t commentId, std::shared_ptr publicBlockFromCommentParams, boost::optional sso) const { // verify the required parameter 'publicBlockFromCommentParams' is set @@ -6145,7 +6145,7 @@ pplx::task> PublicApi::unBlockComm }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UnBlockCommentPublicResponse()); + std::shared_ptr localVarResult(new UnblockSuccess()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6166,7 +6166,7 @@ pplx::task> PublicApi::unBlockComm return localVarResult; }); } -pplx::task> PublicApi::unLockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::unLockComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -6276,7 +6276,7 @@ pplx::task> PublicApi::unLockComment(util }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UnLockCommentResponse()); + std::shared_ptr localVarResult(new APIEmptyResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6297,7 +6297,7 @@ pplx::task> PublicApi::unLockComment(util return localVarResult; }); } -pplx::task> PublicApi::unPinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const +pplx::task> PublicApi::unPinComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t broadcastId, boost::optional sso) const { @@ -6407,7 +6407,7 @@ pplx::task> PublicApi::unPinComment(utilit }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UnPinCommentResponse()); + std::shared_ptr localVarResult(new ChangeCommentPinStatusResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -6428,7 +6428,7 @@ pplx::task> PublicApi::unPinComment(utilit return localVarResult; }); } -pplx::task> PublicApi::updateFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams, boost::optional broadcastId, boost::optional sso) const +pplx::task> PublicApi::updateFeedPostPublic(utility::string_t tenantId, utility::string_t postId, std::shared_ptr updateFeedPostParams, boost::optional broadcastId, boost::optional sso) const { // verify the required parameter 'updateFeedPostParams' is set @@ -6562,7 +6562,7 @@ pplx::task> PublicApi::updateFeedP }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new UpdateFeedPostPublicResponse()); + std::shared_ptr localVarResult(new CreateFeedPostResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { @@ -7122,7 +7122,7 @@ pplx::task> PublicApi::uploadImage(utility: return localVarResult; }); } -pplx::task> PublicApi::voteComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr voteBodyParams, boost::optional sessionId, boost::optional sso) const +pplx::task> PublicApi::voteComment(utility::string_t tenantId, utility::string_t commentId, utility::string_t urlId, utility::string_t broadcastId, std::shared_ptr voteBodyParams, boost::optional sessionId, boost::optional sso) const { // verify the required parameter 'voteBodyParams' is set @@ -7262,7 +7262,7 @@ pplx::task> PublicApi::voteComment(utility: }) .then([=, this](utility::string_t localVarResponse) { - std::shared_ptr localVarResult(new VoteCommentResponse()); + std::shared_ptr localVarResult(new VoteResponse()); if(localVarResponseHttpContentType == utility::conversions::to_string_t("application/json")) { diff --git a/client/src/model/AddHashTagResponse.cpp b/client/src/model/AddHashTagResponse.cpp deleted file mode 100644 index b07a2bb..0000000 --- a/client/src/model/AddHashTagResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/AddHashTagResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -AddHashTagResponse::AddHashTagResponse() -{ - m_StatusIsSet = false; - m_HashTagIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -AddHashTagResponse::~AddHashTagResponse() -{ -} - -void AddHashTagResponse::validate() -{ - // TODO: implement validation -} - -web::json::value AddHashTagResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_HashTagIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool AddHashTagResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hashTag")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hashTag"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setHashTag; - ok &= ModelBase::fromJson(fieldValue, refVal_setHashTag); - setHashTag(refVal_setHashTag); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void AddHashTagResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_HashTagIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hashTag")), m_HashTag)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool AddHashTagResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hashTag")))) - { - std::shared_ptr refVal_setHashTag; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hashTag"))), refVal_setHashTag ); - setHashTag(refVal_setHashTag); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr AddHashTagResponse::getStatus() const -{ - return m_Status; -} - - -void AddHashTagResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool AddHashTagResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void AddHashTagResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr AddHashTagResponse::getHashTag() const -{ - return m_HashTag; -} - - -void AddHashTagResponse::setHashTag(const std::shared_ptr& value) -{ - m_HashTag = value; - m_HashTagIsSet = true; -} - -bool AddHashTagResponse::hashTagIsSet() const -{ - return m_HashTagIsSet; -} - -void AddHashTagResponse::unsetHashTag() -{ - m_HashTagIsSet = false; -} -utility::string_t AddHashTagResponse::getReason() const -{ - return m_Reason; -} - - -void AddHashTagResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool AddHashTagResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void AddHashTagResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t AddHashTagResponse::getCode() const -{ - return m_Code; -} - - -void AddHashTagResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool AddHashTagResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void AddHashTagResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t AddHashTagResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void AddHashTagResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool AddHashTagResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void AddHashTagResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t AddHashTagResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void AddHashTagResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool AddHashTagResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void AddHashTagResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t AddHashTagResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void AddHashTagResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool AddHashTagResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void AddHashTagResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t AddHashTagResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void AddHashTagResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool AddHashTagResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void AddHashTagResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr AddHashTagResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void AddHashTagResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool AddHashTagResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void AddHashTagResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/AddHashTagsBulkResponse.cpp b/client/src/model/AddHashTagsBulkResponse.cpp deleted file mode 100644 index 91395f7..0000000 --- a/client/src/model/AddHashTagsBulkResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/AddHashTagsBulkResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -AddHashTagsBulkResponse::AddHashTagsBulkResponse() -{ - m_StatusIsSet = false; - m_ResultsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -AddHashTagsBulkResponse::~AddHashTagsBulkResponse() -{ -} - -void AddHashTagsBulkResponse::validate() -{ - // TODO: implement validation -} - -web::json::value AddHashTagsBulkResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ResultsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("results"))] = ModelBase::toJson(m_Results); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool AddHashTagsBulkResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("results")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("results"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setResults; - ok &= ModelBase::fromJson(fieldValue, refVal_setResults); - setResults(refVal_setResults); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void AddHashTagsBulkResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ResultsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("results")), m_Results)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool AddHashTagsBulkResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("results")))) - { - std::vector> refVal_setResults; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("results"))), refVal_setResults ); - setResults(refVal_setResults); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr AddHashTagsBulkResponse::getStatus() const -{ - return m_Status; -} - - -void AddHashTagsBulkResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool AddHashTagsBulkResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void AddHashTagsBulkResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> AddHashTagsBulkResponse::getResults() const -{ - return m_Results; -} - - -void AddHashTagsBulkResponse::setResults(const std::vector>& value) -{ - m_Results = value; - m_ResultsIsSet = true; -} - -bool AddHashTagsBulkResponse::resultsIsSet() const -{ - return m_ResultsIsSet; -} - -void AddHashTagsBulkResponse::unsetResults() -{ - m_ResultsIsSet = false; -} -utility::string_t AddHashTagsBulkResponse::getReason() const -{ - return m_Reason; -} - - -void AddHashTagsBulkResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool AddHashTagsBulkResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void AddHashTagsBulkResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t AddHashTagsBulkResponse::getCode() const -{ - return m_Code; -} - - -void AddHashTagsBulkResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool AddHashTagsBulkResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void AddHashTagsBulkResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t AddHashTagsBulkResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void AddHashTagsBulkResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool AddHashTagsBulkResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void AddHashTagsBulkResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t AddHashTagsBulkResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void AddHashTagsBulkResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool AddHashTagsBulkResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void AddHashTagsBulkResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t AddHashTagsBulkResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void AddHashTagsBulkResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool AddHashTagsBulkResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void AddHashTagsBulkResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t AddHashTagsBulkResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void AddHashTagsBulkResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool AddHashTagsBulkResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void AddHashTagsBulkResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr AddHashTagsBulkResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void AddHashTagsBulkResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool AddHashTagsBulkResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void AddHashTagsBulkResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/AggregateQuestionResultsResponse_1.cpp b/client/src/model/AggregateQuestionResultsResponse_1.cpp deleted file mode 100644 index ed5eeb9..0000000 --- a/client/src/model/AggregateQuestionResultsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/AggregateQuestionResultsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -AggregateQuestionResultsResponse_1::AggregateQuestionResultsResponse_1() -{ - m_StatusIsSet = false; - m_DataIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -AggregateQuestionResultsResponse_1::~AggregateQuestionResultsResponse_1() -{ -} - -void AggregateQuestionResultsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value AggregateQuestionResultsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_DataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool AggregateQuestionResultsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromJson(fieldValue, refVal_setData); - setData(refVal_setData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void AggregateQuestionResultsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_DataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool AggregateQuestionResultsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); - setData(refVal_setData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr AggregateQuestionResultsResponse_1::getStatus() const -{ - return m_Status; -} - - -void AggregateQuestionResultsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool AggregateQuestionResultsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void AggregateQuestionResultsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr AggregateQuestionResultsResponse_1::getData() const -{ - return m_Data; -} - - -void AggregateQuestionResultsResponse_1::setData(const std::shared_ptr& value) -{ - m_Data = value; - m_DataIsSet = true; -} - -bool AggregateQuestionResultsResponse_1::dataIsSet() const -{ - return m_DataIsSet; -} - -void AggregateQuestionResultsResponse_1::unsetData() -{ - m_DataIsSet = false; -} -utility::string_t AggregateQuestionResultsResponse_1::getReason() const -{ - return m_Reason; -} - - -void AggregateQuestionResultsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool AggregateQuestionResultsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void AggregateQuestionResultsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t AggregateQuestionResultsResponse_1::getCode() const -{ - return m_Code; -} - - -void AggregateQuestionResultsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool AggregateQuestionResultsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void AggregateQuestionResultsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t AggregateQuestionResultsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void AggregateQuestionResultsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool AggregateQuestionResultsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void AggregateQuestionResultsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t AggregateQuestionResultsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void AggregateQuestionResultsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool AggregateQuestionResultsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void AggregateQuestionResultsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t AggregateQuestionResultsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void AggregateQuestionResultsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool AggregateQuestionResultsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void AggregateQuestionResultsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t AggregateQuestionResultsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void AggregateQuestionResultsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool AggregateQuestionResultsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void AggregateQuestionResultsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr AggregateQuestionResultsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void AggregateQuestionResultsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool AggregateQuestionResultsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void AggregateQuestionResultsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/BlockFromCommentPublicResponse.cpp b/client/src/model/BlockFromCommentPublicResponse.cpp deleted file mode 100644 index 7c1e718..0000000 --- a/client/src/model/BlockFromCommentPublicResponse.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/BlockFromCommentPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -BlockFromCommentPublicResponse::BlockFromCommentPublicResponse() -{ - m_StatusIsSet = false; - m_CommentStatusesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -BlockFromCommentPublicResponse::~BlockFromCommentPublicResponse() -{ -} - -void BlockFromCommentPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value BlockFromCommentPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentStatusesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool BlockFromCommentPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); - if(!fieldValue.is_null()) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); - setCommentStatuses(refVal_setCommentStatuses); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void BlockFromCommentPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentStatusesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool BlockFromCommentPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); - setCommentStatuses(refVal_setCommentStatuses); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr BlockFromCommentPublicResponse::getStatus() const -{ - return m_Status; -} - - -void BlockFromCommentPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool BlockFromCommentPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void BlockFromCommentPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map BlockFromCommentPublicResponse::getCommentStatuses() const -{ - return m_CommentStatuses; -} - -void BlockFromCommentPublicResponse::setCommentStatuses(std::map value) -{ - m_CommentStatuses = value; - m_CommentStatusesIsSet = true; -} - -bool BlockFromCommentPublicResponse::commentStatusesIsSet() const -{ - return m_CommentStatusesIsSet; -} - -void BlockFromCommentPublicResponse::unsetCommentStatuses() -{ - m_CommentStatusesIsSet = false; -} -utility::string_t BlockFromCommentPublicResponse::getReason() const -{ - return m_Reason; -} - - -void BlockFromCommentPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool BlockFromCommentPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void BlockFromCommentPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t BlockFromCommentPublicResponse::getCode() const -{ - return m_Code; -} - - -void BlockFromCommentPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool BlockFromCommentPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void BlockFromCommentPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t BlockFromCommentPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void BlockFromCommentPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool BlockFromCommentPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void BlockFromCommentPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t BlockFromCommentPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void BlockFromCommentPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool BlockFromCommentPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void BlockFromCommentPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t BlockFromCommentPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void BlockFromCommentPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool BlockFromCommentPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void BlockFromCommentPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t BlockFromCommentPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void BlockFromCommentPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool BlockFromCommentPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void BlockFromCommentPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr BlockFromCommentPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void BlockFromCommentPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool BlockFromCommentPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void BlockFromCommentPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/BlockUserFromCommentResponse.cpp b/client/src/model/BlockUserFromCommentResponse.cpp deleted file mode 100644 index e5b383a..0000000 --- a/client/src/model/BlockUserFromCommentResponse.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/BlockUserFromCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -BlockUserFromCommentResponse::BlockUserFromCommentResponse() -{ - m_StatusIsSet = false; - m_CommentStatusesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -BlockUserFromCommentResponse::~BlockUserFromCommentResponse() -{ -} - -void BlockUserFromCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value BlockUserFromCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentStatusesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool BlockUserFromCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); - if(!fieldValue.is_null()) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); - setCommentStatuses(refVal_setCommentStatuses); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void BlockUserFromCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentStatusesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool BlockUserFromCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); - setCommentStatuses(refVal_setCommentStatuses); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr BlockUserFromCommentResponse::getStatus() const -{ - return m_Status; -} - - -void BlockUserFromCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool BlockUserFromCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void BlockUserFromCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map BlockUserFromCommentResponse::getCommentStatuses() const -{ - return m_CommentStatuses; -} - -void BlockUserFromCommentResponse::setCommentStatuses(std::map value) -{ - m_CommentStatuses = value; - m_CommentStatusesIsSet = true; -} - -bool BlockUserFromCommentResponse::commentStatusesIsSet() const -{ - return m_CommentStatusesIsSet; -} - -void BlockUserFromCommentResponse::unsetCommentStatuses() -{ - m_CommentStatusesIsSet = false; -} -utility::string_t BlockUserFromCommentResponse::getReason() const -{ - return m_Reason; -} - - -void BlockUserFromCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool BlockUserFromCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void BlockUserFromCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t BlockUserFromCommentResponse::getCode() const -{ - return m_Code; -} - - -void BlockUserFromCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool BlockUserFromCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void BlockUserFromCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t BlockUserFromCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void BlockUserFromCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool BlockUserFromCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void BlockUserFromCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t BlockUserFromCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void BlockUserFromCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool BlockUserFromCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void BlockUserFromCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t BlockUserFromCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void BlockUserFromCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool BlockUserFromCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void BlockUserFromCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t BlockUserFromCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void BlockUserFromCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool BlockUserFromCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void BlockUserFromCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr BlockUserFromCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void BlockUserFromCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool BlockUserFromCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void BlockUserFromCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/BulkAggregateQuestionResultsResponse_1.cpp b/client/src/model/BulkAggregateQuestionResultsResponse_1.cpp deleted file mode 100644 index c687a88..0000000 --- a/client/src/model/BulkAggregateQuestionResultsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/BulkAggregateQuestionResultsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -BulkAggregateQuestionResultsResponse_1::BulkAggregateQuestionResultsResponse_1() -{ - m_StatusIsSet = false; - m_DataIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -BulkAggregateQuestionResultsResponse_1::~BulkAggregateQuestionResultsResponse_1() -{ -} - -void BulkAggregateQuestionResultsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value BulkAggregateQuestionResultsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_DataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool BulkAggregateQuestionResultsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setData; - ok &= ModelBase::fromJson(fieldValue, refVal_setData); - setData(refVal_setData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void BulkAggregateQuestionResultsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_DataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool BulkAggregateQuestionResultsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - std::map> refVal_setData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); - setData(refVal_setData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr BulkAggregateQuestionResultsResponse_1::getStatus() const -{ - return m_Status; -} - - -void BulkAggregateQuestionResultsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool BulkAggregateQuestionResultsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void BulkAggregateQuestionResultsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map> BulkAggregateQuestionResultsResponse_1::getData() const -{ - return m_Data; -} - - -void BulkAggregateQuestionResultsResponse_1::setData(const std::map>& value) -{ - m_Data = value; - m_DataIsSet = true; -} - -bool BulkAggregateQuestionResultsResponse_1::dataIsSet() const -{ - return m_DataIsSet; -} - -void BulkAggregateQuestionResultsResponse_1::unsetData() -{ - m_DataIsSet = false; -} -utility::string_t BulkAggregateQuestionResultsResponse_1::getReason() const -{ - return m_Reason; -} - - -void BulkAggregateQuestionResultsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool BulkAggregateQuestionResultsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void BulkAggregateQuestionResultsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t BulkAggregateQuestionResultsResponse_1::getCode() const -{ - return m_Code; -} - - -void BulkAggregateQuestionResultsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool BulkAggregateQuestionResultsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void BulkAggregateQuestionResultsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t BulkAggregateQuestionResultsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void BulkAggregateQuestionResultsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool BulkAggregateQuestionResultsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void BulkAggregateQuestionResultsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t BulkAggregateQuestionResultsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void BulkAggregateQuestionResultsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool BulkAggregateQuestionResultsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void BulkAggregateQuestionResultsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t BulkAggregateQuestionResultsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void BulkAggregateQuestionResultsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool BulkAggregateQuestionResultsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void BulkAggregateQuestionResultsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t BulkAggregateQuestionResultsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void BulkAggregateQuestionResultsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool BulkAggregateQuestionResultsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void BulkAggregateQuestionResultsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr BulkAggregateQuestionResultsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void BulkAggregateQuestionResultsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool BulkAggregateQuestionResultsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void BulkAggregateQuestionResultsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/ChangeTicketStateResponse_1.cpp b/client/src/model/ChangeTicketStateResponse_1.cpp deleted file mode 100644 index 5a04613..0000000 --- a/client/src/model/ChangeTicketStateResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/ChangeTicketStateResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -ChangeTicketStateResponse_1::ChangeTicketStateResponse_1() -{ - m_StatusIsSet = false; - m_TicketIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -ChangeTicketStateResponse_1::~ChangeTicketStateResponse_1() -{ -} - -void ChangeTicketStateResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value ChangeTicketStateResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TicketIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool ChangeTicketStateResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ticket"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromJson(fieldValue, refVal_setTicket); - setTicket(refVal_setTicket); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void ChangeTicketStateResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TicketIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ticket")), m_Ticket)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool ChangeTicketStateResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ticket"))), refVal_setTicket ); - setTicket(refVal_setTicket); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr ChangeTicketStateResponse_1::getStatus() const -{ - return m_Status; -} - - -void ChangeTicketStateResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool ChangeTicketStateResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void ChangeTicketStateResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr ChangeTicketStateResponse_1::getTicket() const -{ - return m_Ticket; -} - - -void ChangeTicketStateResponse_1::setTicket(const std::shared_ptr& value) -{ - m_Ticket = value; - m_TicketIsSet = true; -} - -bool ChangeTicketStateResponse_1::ticketIsSet() const -{ - return m_TicketIsSet; -} - -void ChangeTicketStateResponse_1::unsetTicket() -{ - m_TicketIsSet = false; -} -utility::string_t ChangeTicketStateResponse_1::getReason() const -{ - return m_Reason; -} - - -void ChangeTicketStateResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool ChangeTicketStateResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void ChangeTicketStateResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t ChangeTicketStateResponse_1::getCode() const -{ - return m_Code; -} - - -void ChangeTicketStateResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool ChangeTicketStateResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void ChangeTicketStateResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t ChangeTicketStateResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void ChangeTicketStateResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool ChangeTicketStateResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void ChangeTicketStateResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t ChangeTicketStateResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void ChangeTicketStateResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool ChangeTicketStateResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void ChangeTicketStateResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t ChangeTicketStateResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void ChangeTicketStateResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool ChangeTicketStateResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void ChangeTicketStateResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t ChangeTicketStateResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void ChangeTicketStateResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool ChangeTicketStateResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void ChangeTicketStateResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr ChangeTicketStateResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void ChangeTicketStateResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool ChangeTicketStateResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void ChangeTicketStateResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CheckedCommentsForBlockedResponse.cpp b/client/src/model/CheckedCommentsForBlockedResponse.cpp deleted file mode 100644 index ec7d237..0000000 --- a/client/src/model/CheckedCommentsForBlockedResponse.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CheckedCommentsForBlockedResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CheckedCommentsForBlockedResponse::CheckedCommentsForBlockedResponse() -{ - m_CommentStatusesIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CheckedCommentsForBlockedResponse::~CheckedCommentsForBlockedResponse() -{ -} - -void CheckedCommentsForBlockedResponse::validate() -{ - // TODO: implement validation -} - -web::json::value CheckedCommentsForBlockedResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentStatusesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CheckedCommentsForBlockedResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); - if(!fieldValue.is_null()) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); - setCommentStatuses(refVal_setCommentStatuses); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CheckedCommentsForBlockedResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentStatusesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CheckedCommentsForBlockedResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); - setCommentStatuses(refVal_setCommentStatuses); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::map CheckedCommentsForBlockedResponse::getCommentStatuses() const -{ - return m_CommentStatuses; -} - -void CheckedCommentsForBlockedResponse::setCommentStatuses(std::map value) -{ - m_CommentStatuses = value; - m_CommentStatusesIsSet = true; -} - -bool CheckedCommentsForBlockedResponse::commentStatusesIsSet() const -{ - return m_CommentStatusesIsSet; -} - -void CheckedCommentsForBlockedResponse::unsetCommentStatuses() -{ - m_CommentStatusesIsSet = false; -} -std::shared_ptr CheckedCommentsForBlockedResponse::getStatus() const -{ - return m_Status; -} - - -void CheckedCommentsForBlockedResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CheckedCommentsForBlockedResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CheckedCommentsForBlockedResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t CheckedCommentsForBlockedResponse::getReason() const -{ - return m_Reason; -} - - -void CheckedCommentsForBlockedResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CheckedCommentsForBlockedResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CheckedCommentsForBlockedResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CheckedCommentsForBlockedResponse::getCode() const -{ - return m_Code; -} - - -void CheckedCommentsForBlockedResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CheckedCommentsForBlockedResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CheckedCommentsForBlockedResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CheckedCommentsForBlockedResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CheckedCommentsForBlockedResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CheckedCommentsForBlockedResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CheckedCommentsForBlockedResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CheckedCommentsForBlockedResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CheckedCommentsForBlockedResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CheckedCommentsForBlockedResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CheckedCommentsForBlockedResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CheckedCommentsForBlockedResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CheckedCommentsForBlockedResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CheckedCommentsForBlockedResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CheckedCommentsForBlockedResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CheckedCommentsForBlockedResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CheckedCommentsForBlockedResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CheckedCommentsForBlockedResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CheckedCommentsForBlockedResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CheckedCommentsForBlockedResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CheckedCommentsForBlockedResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CheckedCommentsForBlockedResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CheckedCommentsForBlockedResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CombineCommentsWithQuestionResultsResponse.cpp b/client/src/model/CombineCommentsWithQuestionResultsResponse.cpp deleted file mode 100644 index f501b18..0000000 --- a/client/src/model/CombineCommentsWithQuestionResultsResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CombineCommentsWithQuestionResultsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CombineCommentsWithQuestionResultsResponse::CombineCommentsWithQuestionResultsResponse() -{ - m_StatusIsSet = false; - m_DataIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CombineCommentsWithQuestionResultsResponse::~CombineCommentsWithQuestionResultsResponse() -{ -} - -void CombineCommentsWithQuestionResultsResponse::validate() -{ - // TODO: implement validation -} - -web::json::value CombineCommentsWithQuestionResultsResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_DataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CombineCommentsWithQuestionResultsResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromJson(fieldValue, refVal_setData); - setData(refVal_setData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CombineCommentsWithQuestionResultsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_DataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CombineCommentsWithQuestionResultsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); - setData(refVal_setData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CombineCommentsWithQuestionResultsResponse::getStatus() const -{ - return m_Status; -} - - -void CombineCommentsWithQuestionResultsResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CombineCommentsWithQuestionResultsResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CombineCommentsWithQuestionResultsResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CombineCommentsWithQuestionResultsResponse::getData() const -{ - return m_Data; -} - - -void CombineCommentsWithQuestionResultsResponse::setData(const std::shared_ptr& value) -{ - m_Data = value; - m_DataIsSet = true; -} - -bool CombineCommentsWithQuestionResultsResponse::dataIsSet() const -{ - return m_DataIsSet; -} - -void CombineCommentsWithQuestionResultsResponse::unsetData() -{ - m_DataIsSet = false; -} -utility::string_t CombineCommentsWithQuestionResultsResponse::getReason() const -{ - return m_Reason; -} - - -void CombineCommentsWithQuestionResultsResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CombineCommentsWithQuestionResultsResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CombineCommentsWithQuestionResultsResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CombineCommentsWithQuestionResultsResponse::getCode() const -{ - return m_Code; -} - - -void CombineCommentsWithQuestionResultsResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CombineCommentsWithQuestionResultsResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CombineCommentsWithQuestionResultsResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CombineCommentsWithQuestionResultsResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CombineCommentsWithQuestionResultsResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CombineCommentsWithQuestionResultsResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CombineCommentsWithQuestionResultsResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CombineCommentsWithQuestionResultsResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CombineCommentsWithQuestionResultsResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CombineCommentsWithQuestionResultsResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CombineCommentsWithQuestionResultsResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CombineCommentsWithQuestionResultsResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CombineCommentsWithQuestionResultsResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CombineCommentsWithQuestionResultsResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CombineCommentsWithQuestionResultsResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CombineCommentsWithQuestionResultsResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CombineCommentsWithQuestionResultsResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CombineCommentsWithQuestionResultsResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CombineCommentsWithQuestionResultsResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CombineCommentsWithQuestionResultsResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CombineCommentsWithQuestionResultsResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CombineCommentsWithQuestionResultsResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CombineCommentsWithQuestionResultsResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateCommentPublicResponse.cpp b/client/src/model/CreateCommentPublicResponse.cpp deleted file mode 100644 index 3a29d2b..0000000 --- a/client/src/model/CreateCommentPublicResponse.cpp +++ /dev/null @@ -1,654 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateCommentPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateCommentPublicResponse::CreateCommentPublicResponse() -{ - m_StatusIsSet = false; - m_CommentIsSet = false; - m_ModuleDataIsSet = false; - m_UserIdWS = utility::conversions::to_string_t(""); - m_UserIdWSIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateCommentPublicResponse::~CreateCommentPublicResponse() -{ -} - -void CreateCommentPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value CreateCommentPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); - } - if(m_User.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); - } - if(m_ModuleDataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); - } - if(m_UserIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateCommentPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moduleData"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setModuleData; - ok &= ModelBase::fromJson(fieldValue, refVal_setModuleData); - setModuleData(refVal_setModuleData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdWS); - setUserIdWS(refVal_setUserIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateCommentPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); - } - if(m_User.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); - } - if(m_ModuleDataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moduleData")), m_ModuleData)); - } - if(m_UserIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdWS")), m_UserIdWS)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateCommentPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) - { - std::map> refVal_setModuleData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moduleData"))), refVal_setModuleData ); - setModuleData(refVal_setModuleData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))), refVal_setUserIdWS ); - setUserIdWS(refVal_setUserIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateCommentPublicResponse::getStatus() const -{ - return m_Status; -} - - -void CreateCommentPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateCommentPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateCommentPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateCommentPublicResponse::getComment() const -{ - return m_Comment; -} - - -void CreateCommentPublicResponse::setComment(const std::shared_ptr& value) -{ - m_Comment = value; - m_CommentIsSet = true; -} - -bool CreateCommentPublicResponse::commentIsSet() const -{ - return m_CommentIsSet; -} - -void CreateCommentPublicResponse::unsetComment() -{ - m_CommentIsSet = false; -} -std::shared_ptr CreateCommentPublicResponse::getUser() const -{ - return m_User.get(); -} - - -void CreateCommentPublicResponse::setUser(const std::shared_ptr& value) -{ - m_User = value; -} - -bool CreateCommentPublicResponse::userIsSet() const -{ - return m_User.has_value(); -} - -void CreateCommentPublicResponse::unsetUser() -{ - m_User.reset(); -} -std::map> CreateCommentPublicResponse::getModuleData() const -{ - return m_ModuleData; -} - - -void CreateCommentPublicResponse::setModuleData(const std::map>& value) -{ - m_ModuleData = value; - m_ModuleDataIsSet = true; -} - -bool CreateCommentPublicResponse::moduleDataIsSet() const -{ - return m_ModuleDataIsSet; -} - -void CreateCommentPublicResponse::unsetModuleData() -{ - m_ModuleDataIsSet = false; -} -utility::string_t CreateCommentPublicResponse::getUserIdWS() const -{ - return m_UserIdWS; -} - - -void CreateCommentPublicResponse::setUserIdWS(const utility::string_t& value) -{ - m_UserIdWS = value; - m_UserIdWSIsSet = true; -} - -bool CreateCommentPublicResponse::userIdWSIsSet() const -{ - return m_UserIdWSIsSet; -} - -void CreateCommentPublicResponse::unsetUserIdWS() -{ - m_UserIdWSIsSet = false; -} -utility::string_t CreateCommentPublicResponse::getReason() const -{ - return m_Reason; -} - - -void CreateCommentPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateCommentPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateCommentPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateCommentPublicResponse::getCode() const -{ - return m_Code; -} - - -void CreateCommentPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateCommentPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateCommentPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateCommentPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateCommentPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateCommentPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateCommentPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateCommentPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateCommentPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateCommentPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateCommentPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateCommentPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateCommentPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateCommentPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateCommentPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateCommentPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateCommentPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateCommentPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateCommentPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateCommentPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateCommentPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateCommentPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateCommentPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateEmailTemplateResponse_1.cpp b/client/src/model/CreateEmailTemplateResponse_1.cpp deleted file mode 100644 index 502774d..0000000 --- a/client/src/model/CreateEmailTemplateResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateEmailTemplateResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateEmailTemplateResponse_1::CreateEmailTemplateResponse_1() -{ - m_StatusIsSet = false; - m_EmailTemplateIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateEmailTemplateResponse_1::~CreateEmailTemplateResponse_1() -{ -} - -void CreateEmailTemplateResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value CreateEmailTemplateResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_EmailTemplateIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))] = ModelBase::toJson(m_EmailTemplate); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateEmailTemplateResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setEmailTemplate; - ok &= ModelBase::fromJson(fieldValue, refVal_setEmailTemplate); - setEmailTemplate(refVal_setEmailTemplate); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateEmailTemplateResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_EmailTemplateIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailTemplate")), m_EmailTemplate)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateEmailTemplateResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) - { - std::shared_ptr refVal_setEmailTemplate; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))), refVal_setEmailTemplate ); - setEmailTemplate(refVal_setEmailTemplate); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateEmailTemplateResponse_1::getStatus() const -{ - return m_Status; -} - - -void CreateEmailTemplateResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateEmailTemplateResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateEmailTemplateResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateEmailTemplateResponse_1::getEmailTemplate() const -{ - return m_EmailTemplate; -} - - -void CreateEmailTemplateResponse_1::setEmailTemplate(const std::shared_ptr& value) -{ - m_EmailTemplate = value; - m_EmailTemplateIsSet = true; -} - -bool CreateEmailTemplateResponse_1::emailTemplateIsSet() const -{ - return m_EmailTemplateIsSet; -} - -void CreateEmailTemplateResponse_1::unsetEmailTemplate() -{ - m_EmailTemplateIsSet = false; -} -utility::string_t CreateEmailTemplateResponse_1::getReason() const -{ - return m_Reason; -} - - -void CreateEmailTemplateResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateEmailTemplateResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateEmailTemplateResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateEmailTemplateResponse_1::getCode() const -{ - return m_Code; -} - - -void CreateEmailTemplateResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateEmailTemplateResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateEmailTemplateResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateEmailTemplateResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateEmailTemplateResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateEmailTemplateResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateEmailTemplateResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateEmailTemplateResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateEmailTemplateResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateEmailTemplateResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateEmailTemplateResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateEmailTemplateResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateEmailTemplateResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateEmailTemplateResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateEmailTemplateResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateEmailTemplateResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateEmailTemplateResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateEmailTemplateResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateEmailTemplateResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateEmailTemplateResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateEmailTemplateResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateEmailTemplateResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateEmailTemplateResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateFeedPostPublicResponse.cpp b/client/src/model/CreateFeedPostPublicResponse.cpp deleted file mode 100644 index 5c0d6d5..0000000 --- a/client/src/model/CreateFeedPostPublicResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateFeedPostPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateFeedPostPublicResponse::CreateFeedPostPublicResponse() -{ - m_StatusIsSet = false; - m_FeedPostIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateFeedPostPublicResponse::~CreateFeedPostPublicResponse() -{ -} - -void CreateFeedPostPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value CreateFeedPostPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_FeedPostIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateFeedPostPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPost"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setFeedPost; - ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPost); - setFeedPost(refVal_setFeedPost); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateFeedPostPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_FeedPostIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPost")), m_FeedPost)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateFeedPostPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) - { - std::shared_ptr refVal_setFeedPost; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPost"))), refVal_setFeedPost ); - setFeedPost(refVal_setFeedPost); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateFeedPostPublicResponse::getStatus() const -{ - return m_Status; -} - - -void CreateFeedPostPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateFeedPostPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateFeedPostPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateFeedPostPublicResponse::getFeedPost() const -{ - return m_FeedPost; -} - - -void CreateFeedPostPublicResponse::setFeedPost(const std::shared_ptr& value) -{ - m_FeedPost = value; - m_FeedPostIsSet = true; -} - -bool CreateFeedPostPublicResponse::feedPostIsSet() const -{ - return m_FeedPostIsSet; -} - -void CreateFeedPostPublicResponse::unsetFeedPost() -{ - m_FeedPostIsSet = false; -} -utility::string_t CreateFeedPostPublicResponse::getReason() const -{ - return m_Reason; -} - - -void CreateFeedPostPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateFeedPostPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateFeedPostPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateFeedPostPublicResponse::getCode() const -{ - return m_Code; -} - - -void CreateFeedPostPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateFeedPostPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateFeedPostPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateFeedPostPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateFeedPostPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateFeedPostPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateFeedPostPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateFeedPostPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateFeedPostPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateFeedPostPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateFeedPostPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateFeedPostPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateFeedPostPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateFeedPostPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateFeedPostPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateFeedPostPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateFeedPostPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateFeedPostPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateFeedPostPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateFeedPostPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateFeedPostPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateFeedPostPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateFeedPostPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateFeedPostResponse_1.cpp b/client/src/model/CreateFeedPostResponse_1.cpp deleted file mode 100644 index 1feff36..0000000 --- a/client/src/model/CreateFeedPostResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateFeedPostResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateFeedPostResponse_1::CreateFeedPostResponse_1() -{ - m_StatusIsSet = false; - m_FeedPostIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateFeedPostResponse_1::~CreateFeedPostResponse_1() -{ -} - -void CreateFeedPostResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value CreateFeedPostResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_FeedPostIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateFeedPostResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPost"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setFeedPost; - ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPost); - setFeedPost(refVal_setFeedPost); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateFeedPostResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_FeedPostIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPost")), m_FeedPost)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateFeedPostResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) - { - std::shared_ptr refVal_setFeedPost; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPost"))), refVal_setFeedPost ); - setFeedPost(refVal_setFeedPost); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateFeedPostResponse_1::getStatus() const -{ - return m_Status; -} - - -void CreateFeedPostResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateFeedPostResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateFeedPostResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateFeedPostResponse_1::getFeedPost() const -{ - return m_FeedPost; -} - - -void CreateFeedPostResponse_1::setFeedPost(const std::shared_ptr& value) -{ - m_FeedPost = value; - m_FeedPostIsSet = true; -} - -bool CreateFeedPostResponse_1::feedPostIsSet() const -{ - return m_FeedPostIsSet; -} - -void CreateFeedPostResponse_1::unsetFeedPost() -{ - m_FeedPostIsSet = false; -} -utility::string_t CreateFeedPostResponse_1::getReason() const -{ - return m_Reason; -} - - -void CreateFeedPostResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateFeedPostResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateFeedPostResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateFeedPostResponse_1::getCode() const -{ - return m_Code; -} - - -void CreateFeedPostResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateFeedPostResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateFeedPostResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateFeedPostResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateFeedPostResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateFeedPostResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateFeedPostResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateFeedPostResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateFeedPostResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateFeedPostResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateFeedPostResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateFeedPostResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateFeedPostResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateFeedPostResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateFeedPostResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateFeedPostResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateFeedPostResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateFeedPostResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateFeedPostResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateFeedPostResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateFeedPostResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateFeedPostResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateFeedPostResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateModeratorResponse_1.cpp b/client/src/model/CreateModeratorResponse_1.cpp deleted file mode 100644 index 727b8ec..0000000 --- a/client/src/model/CreateModeratorResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateModeratorResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateModeratorResponse_1::CreateModeratorResponse_1() -{ - m_StatusIsSet = false; - m_ModeratorIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateModeratorResponse_1::~CreateModeratorResponse_1() -{ -} - -void CreateModeratorResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value CreateModeratorResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ModeratorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moderator"))] = ModelBase::toJson(m_Moderator); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateModeratorResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderator")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderator"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setModerator; - ok &= ModelBase::fromJson(fieldValue, refVal_setModerator); - setModerator(refVal_setModerator); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateModeratorResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ModeratorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderator")), m_Moderator)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateModeratorResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderator")))) - { - std::shared_ptr refVal_setModerator; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderator"))), refVal_setModerator ); - setModerator(refVal_setModerator); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateModeratorResponse_1::getStatus() const -{ - return m_Status; -} - - -void CreateModeratorResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateModeratorResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateModeratorResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateModeratorResponse_1::getModerator() const -{ - return m_Moderator; -} - - -void CreateModeratorResponse_1::setModerator(const std::shared_ptr& value) -{ - m_Moderator = value; - m_ModeratorIsSet = true; -} - -bool CreateModeratorResponse_1::moderatorIsSet() const -{ - return m_ModeratorIsSet; -} - -void CreateModeratorResponse_1::unsetModerator() -{ - m_ModeratorIsSet = false; -} -utility::string_t CreateModeratorResponse_1::getReason() const -{ - return m_Reason; -} - - -void CreateModeratorResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateModeratorResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateModeratorResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateModeratorResponse_1::getCode() const -{ - return m_Code; -} - - -void CreateModeratorResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateModeratorResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateModeratorResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateModeratorResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateModeratorResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateModeratorResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateModeratorResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateModeratorResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateModeratorResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateModeratorResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateModeratorResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateModeratorResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateModeratorResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateModeratorResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateModeratorResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateModeratorResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateModeratorResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateModeratorResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateModeratorResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateModeratorResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateModeratorResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateModeratorResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateModeratorResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateQuestionConfigResponse_1.cpp b/client/src/model/CreateQuestionConfigResponse_1.cpp deleted file mode 100644 index cd0c0fc..0000000 --- a/client/src/model/CreateQuestionConfigResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateQuestionConfigResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateQuestionConfigResponse_1::CreateQuestionConfigResponse_1() -{ - m_StatusIsSet = false; - m_QuestionConfigIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateQuestionConfigResponse_1::~CreateQuestionConfigResponse_1() -{ -} - -void CreateQuestionConfigResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value CreateQuestionConfigResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionConfig"))] = ModelBase::toJson(m_QuestionConfig); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateQuestionConfigResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setQuestionConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionConfig); - setQuestionConfig(refVal_setQuestionConfig); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateQuestionConfigResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionConfig")), m_QuestionConfig)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateQuestionConfigResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) - { - std::shared_ptr refVal_setQuestionConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))), refVal_setQuestionConfig ); - setQuestionConfig(refVal_setQuestionConfig); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateQuestionConfigResponse_1::getStatus() const -{ - return m_Status; -} - - -void CreateQuestionConfigResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateQuestionConfigResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateQuestionConfigResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateQuestionConfigResponse_1::getQuestionConfig() const -{ - return m_QuestionConfig; -} - - -void CreateQuestionConfigResponse_1::setQuestionConfig(const std::shared_ptr& value) -{ - m_QuestionConfig = value; - m_QuestionConfigIsSet = true; -} - -bool CreateQuestionConfigResponse_1::questionConfigIsSet() const -{ - return m_QuestionConfigIsSet; -} - -void CreateQuestionConfigResponse_1::unsetQuestionConfig() -{ - m_QuestionConfigIsSet = false; -} -utility::string_t CreateQuestionConfigResponse_1::getReason() const -{ - return m_Reason; -} - - -void CreateQuestionConfigResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateQuestionConfigResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateQuestionConfigResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateQuestionConfigResponse_1::getCode() const -{ - return m_Code; -} - - -void CreateQuestionConfigResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateQuestionConfigResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateQuestionConfigResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateQuestionConfigResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateQuestionConfigResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateQuestionConfigResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateQuestionConfigResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateQuestionConfigResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateQuestionConfigResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateQuestionConfigResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateQuestionConfigResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateQuestionConfigResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateQuestionConfigResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateQuestionConfigResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateQuestionConfigResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateQuestionConfigResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateQuestionConfigResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateQuestionConfigResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateQuestionConfigResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateQuestionConfigResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateQuestionConfigResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateQuestionConfigResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateQuestionConfigResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateQuestionResultResponse_1.cpp b/client/src/model/CreateQuestionResultResponse_1.cpp deleted file mode 100644 index b85d17e..0000000 --- a/client/src/model/CreateQuestionResultResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateQuestionResultResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateQuestionResultResponse_1::CreateQuestionResultResponse_1() -{ - m_StatusIsSet = false; - m_QuestionResultIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateQuestionResultResponse_1::~CreateQuestionResultResponse_1() -{ -} - -void CreateQuestionResultResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value CreateQuestionResultResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionResultIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionResult"))] = ModelBase::toJson(m_QuestionResult); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateQuestionResultResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionResult"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setQuestionResult; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionResult); - setQuestionResult(refVal_setQuestionResult); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateQuestionResultResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionResultIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionResult")), m_QuestionResult)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateQuestionResultResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) - { - std::shared_ptr refVal_setQuestionResult; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionResult"))), refVal_setQuestionResult ); - setQuestionResult(refVal_setQuestionResult); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateQuestionResultResponse_1::getStatus() const -{ - return m_Status; -} - - -void CreateQuestionResultResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateQuestionResultResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateQuestionResultResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateQuestionResultResponse_1::getQuestionResult() const -{ - return m_QuestionResult; -} - - -void CreateQuestionResultResponse_1::setQuestionResult(const std::shared_ptr& value) -{ - m_QuestionResult = value; - m_QuestionResultIsSet = true; -} - -bool CreateQuestionResultResponse_1::questionResultIsSet() const -{ - return m_QuestionResultIsSet; -} - -void CreateQuestionResultResponse_1::unsetQuestionResult() -{ - m_QuestionResultIsSet = false; -} -utility::string_t CreateQuestionResultResponse_1::getReason() const -{ - return m_Reason; -} - - -void CreateQuestionResultResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateQuestionResultResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateQuestionResultResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateQuestionResultResponse_1::getCode() const -{ - return m_Code; -} - - -void CreateQuestionResultResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateQuestionResultResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateQuestionResultResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateQuestionResultResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateQuestionResultResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateQuestionResultResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateQuestionResultResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateQuestionResultResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateQuestionResultResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateQuestionResultResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateQuestionResultResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateQuestionResultResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateQuestionResultResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateQuestionResultResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateQuestionResultResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateQuestionResultResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateQuestionResultResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateQuestionResultResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateQuestionResultResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateQuestionResultResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateQuestionResultResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateQuestionResultResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateQuestionResultResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateTenantPackageResponse_1.cpp b/client/src/model/CreateTenantPackageResponse_1.cpp deleted file mode 100644 index 3530d9b..0000000 --- a/client/src/model/CreateTenantPackageResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateTenantPackageResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateTenantPackageResponse_1::CreateTenantPackageResponse_1() -{ - m_StatusIsSet = false; - m_TenantPackageIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateTenantPackageResponse_1::~CreateTenantPackageResponse_1() -{ -} - -void CreateTenantPackageResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value CreateTenantPackageResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantPackageIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))] = ModelBase::toJson(m_TenantPackage); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateTenantPackageResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenantPackage; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantPackage); - setTenantPackage(refVal_setTenantPackage); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateTenantPackageResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantPackageIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantPackage")), m_TenantPackage)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateTenantPackageResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) - { - std::shared_ptr refVal_setTenantPackage; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))), refVal_setTenantPackage ); - setTenantPackage(refVal_setTenantPackage); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateTenantPackageResponse_1::getStatus() const -{ - return m_Status; -} - - -void CreateTenantPackageResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateTenantPackageResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateTenantPackageResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateTenantPackageResponse_1::getTenantPackage() const -{ - return m_TenantPackage; -} - - -void CreateTenantPackageResponse_1::setTenantPackage(const std::shared_ptr& value) -{ - m_TenantPackage = value; - m_TenantPackageIsSet = true; -} - -bool CreateTenantPackageResponse_1::tenantPackageIsSet() const -{ - return m_TenantPackageIsSet; -} - -void CreateTenantPackageResponse_1::unsetTenantPackage() -{ - m_TenantPackageIsSet = false; -} -utility::string_t CreateTenantPackageResponse_1::getReason() const -{ - return m_Reason; -} - - -void CreateTenantPackageResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateTenantPackageResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateTenantPackageResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateTenantPackageResponse_1::getCode() const -{ - return m_Code; -} - - -void CreateTenantPackageResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateTenantPackageResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateTenantPackageResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateTenantPackageResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateTenantPackageResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateTenantPackageResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateTenantPackageResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateTenantPackageResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateTenantPackageResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateTenantPackageResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateTenantPackageResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateTenantPackageResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateTenantPackageResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateTenantPackageResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateTenantPackageResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateTenantPackageResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateTenantPackageResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateTenantPackageResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateTenantPackageResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateTenantPackageResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateTenantPackageResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateTenantPackageResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateTenantPackageResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateTenantResponse_1.cpp b/client/src/model/CreateTenantResponse_1.cpp deleted file mode 100644 index 09ca957..0000000 --- a/client/src/model/CreateTenantResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateTenantResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateTenantResponse_1::CreateTenantResponse_1() -{ - m_StatusIsSet = false; - m_TenantIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateTenantResponse_1::~CreateTenantResponse_1() -{ -} - -void CreateTenantResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value CreateTenantResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenant"))] = ModelBase::toJson(m_Tenant); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateTenantResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenant")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenant"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenant; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenant); - setTenant(refVal_setTenant); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateTenantResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenant")), m_Tenant)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateTenantResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenant")))) - { - std::shared_ptr refVal_setTenant; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenant"))), refVal_setTenant ); - setTenant(refVal_setTenant); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateTenantResponse_1::getStatus() const -{ - return m_Status; -} - - -void CreateTenantResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateTenantResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateTenantResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateTenantResponse_1::getTenant() const -{ - return m_Tenant; -} - - -void CreateTenantResponse_1::setTenant(const std::shared_ptr& value) -{ - m_Tenant = value; - m_TenantIsSet = true; -} - -bool CreateTenantResponse_1::tenantIsSet() const -{ - return m_TenantIsSet; -} - -void CreateTenantResponse_1::unsetTenant() -{ - m_TenantIsSet = false; -} -utility::string_t CreateTenantResponse_1::getReason() const -{ - return m_Reason; -} - - -void CreateTenantResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateTenantResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateTenantResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateTenantResponse_1::getCode() const -{ - return m_Code; -} - - -void CreateTenantResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateTenantResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateTenantResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateTenantResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateTenantResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateTenantResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateTenantResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateTenantResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateTenantResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateTenantResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateTenantResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateTenantResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateTenantResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateTenantResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateTenantResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateTenantResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateTenantResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateTenantResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateTenantResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateTenantResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateTenantResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateTenantResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateTenantResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateTenantUserResponse_1.cpp b/client/src/model/CreateTenantUserResponse_1.cpp deleted file mode 100644 index 1c4c1c1..0000000 --- a/client/src/model/CreateTenantUserResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateTenantUserResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateTenantUserResponse_1::CreateTenantUserResponse_1() -{ - m_StatusIsSet = false; - m_TenantUserIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateTenantUserResponse_1::~CreateTenantUserResponse_1() -{ -} - -void CreateTenantUserResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value CreateTenantUserResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantUserIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantUser"))] = ModelBase::toJson(m_TenantUser); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateTenantUserResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenantUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantUser); - setTenantUser(refVal_setTenantUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateTenantUserResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantUserIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantUser")), m_TenantUser)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateTenantUserResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) - { - std::shared_ptr refVal_setTenantUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))), refVal_setTenantUser ); - setTenantUser(refVal_setTenantUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateTenantUserResponse_1::getStatus() const -{ - return m_Status; -} - - -void CreateTenantUserResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateTenantUserResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateTenantUserResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateTenantUserResponse_1::getTenantUser() const -{ - return m_TenantUser; -} - - -void CreateTenantUserResponse_1::setTenantUser(const std::shared_ptr& value) -{ - m_TenantUser = value; - m_TenantUserIsSet = true; -} - -bool CreateTenantUserResponse_1::tenantUserIsSet() const -{ - return m_TenantUserIsSet; -} - -void CreateTenantUserResponse_1::unsetTenantUser() -{ - m_TenantUserIsSet = false; -} -utility::string_t CreateTenantUserResponse_1::getReason() const -{ - return m_Reason; -} - - -void CreateTenantUserResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateTenantUserResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateTenantUserResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateTenantUserResponse_1::getCode() const -{ - return m_Code; -} - - -void CreateTenantUserResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateTenantUserResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateTenantUserResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateTenantUserResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateTenantUserResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateTenantUserResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateTenantUserResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateTenantUserResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateTenantUserResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateTenantUserResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateTenantUserResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateTenantUserResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateTenantUserResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateTenantUserResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateTenantUserResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateTenantUserResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateTenantUserResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateTenantUserResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateTenantUserResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateTenantUserResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateTenantUserResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateTenantUserResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateTenantUserResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateTicketResponse_1.cpp b/client/src/model/CreateTicketResponse_1.cpp deleted file mode 100644 index 10da48a..0000000 --- a/client/src/model/CreateTicketResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateTicketResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateTicketResponse_1::CreateTicketResponse_1() -{ - m_StatusIsSet = false; - m_TicketIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateTicketResponse_1::~CreateTicketResponse_1() -{ -} - -void CreateTicketResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value CreateTicketResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TicketIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateTicketResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ticket"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromJson(fieldValue, refVal_setTicket); - setTicket(refVal_setTicket); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateTicketResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TicketIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ticket")), m_Ticket)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateTicketResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ticket"))), refVal_setTicket ); - setTicket(refVal_setTicket); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateTicketResponse_1::getStatus() const -{ - return m_Status; -} - - -void CreateTicketResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateTicketResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateTicketResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateTicketResponse_1::getTicket() const -{ - return m_Ticket; -} - - -void CreateTicketResponse_1::setTicket(const std::shared_ptr& value) -{ - m_Ticket = value; - m_TicketIsSet = true; -} - -bool CreateTicketResponse_1::ticketIsSet() const -{ - return m_TicketIsSet; -} - -void CreateTicketResponse_1::unsetTicket() -{ - m_TicketIsSet = false; -} -utility::string_t CreateTicketResponse_1::getReason() const -{ - return m_Reason; -} - - -void CreateTicketResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateTicketResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateTicketResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateTicketResponse_1::getCode() const -{ - return m_Code; -} - - -void CreateTicketResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateTicketResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateTicketResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateTicketResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateTicketResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateTicketResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateTicketResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateTicketResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateTicketResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateTicketResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateTicketResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateTicketResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateTicketResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateTicketResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateTicketResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateTicketResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateTicketResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateTicketResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateTicketResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateTicketResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateTicketResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateTicketResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateTicketResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateUserBadgeResponse.cpp b/client/src/model/CreateUserBadgeResponse.cpp deleted file mode 100644 index d3cf04f..0000000 --- a/client/src/model/CreateUserBadgeResponse.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateUserBadgeResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateUserBadgeResponse::CreateUserBadgeResponse() -{ - m_StatusIsSet = false; - m_UserBadgeIsSet = false; - m_NotesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateUserBadgeResponse::~CreateUserBadgeResponse() -{ -} - -void CreateUserBadgeResponse::validate() -{ - // TODO: implement validation -} - -web::json::value CreateUserBadgeResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadge"))] = ModelBase::toJson(m_UserBadge); - } - if(m_NotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("notes"))] = ModelBase::toJson(m_Notes); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateUserBadgeResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadge"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUserBadge; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadge); - setUserBadge(refVal_setUserBadge); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notes"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setNotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setNotes); - setNotes(refVal_setNotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateUserBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadge")), m_UserBadge)); - } - if(m_NotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notes")), m_Notes)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateUserBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) - { - std::shared_ptr refVal_setUserBadge; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadge"))), refVal_setUserBadge ); - setUserBadge(refVal_setUserBadge); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notes")))) - { - std::vector refVal_setNotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notes"))), refVal_setNotes ); - setNotes(refVal_setNotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateUserBadgeResponse::getStatus() const -{ - return m_Status; -} - - -void CreateUserBadgeResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateUserBadgeResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateUserBadgeResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr CreateUserBadgeResponse::getUserBadge() const -{ - return m_UserBadge; -} - - -void CreateUserBadgeResponse::setUserBadge(const std::shared_ptr& value) -{ - m_UserBadge = value; - m_UserBadgeIsSet = true; -} - -bool CreateUserBadgeResponse::userBadgeIsSet() const -{ - return m_UserBadgeIsSet; -} - -void CreateUserBadgeResponse::unsetUserBadge() -{ - m_UserBadgeIsSet = false; -} -std::vector CreateUserBadgeResponse::getNotes() const -{ - return m_Notes; -} - - -void CreateUserBadgeResponse::setNotes(const std::vector& value) -{ - m_Notes = value; - m_NotesIsSet = true; -} - -bool CreateUserBadgeResponse::notesIsSet() const -{ - return m_NotesIsSet; -} - -void CreateUserBadgeResponse::unsetNotes() -{ - m_NotesIsSet = false; -} -utility::string_t CreateUserBadgeResponse::getReason() const -{ - return m_Reason; -} - - -void CreateUserBadgeResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateUserBadgeResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateUserBadgeResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateUserBadgeResponse::getCode() const -{ - return m_Code; -} - - -void CreateUserBadgeResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateUserBadgeResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateUserBadgeResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateUserBadgeResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateUserBadgeResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateUserBadgeResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateUserBadgeResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateUserBadgeResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateUserBadgeResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateUserBadgeResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateUserBadgeResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateUserBadgeResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateUserBadgeResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateUserBadgeResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateUserBadgeResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateUserBadgeResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateUserBadgeResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateUserBadgeResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateUserBadgeResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateUserBadgeResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateUserBadgeResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateUserBadgeResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateUserBadgeResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateV1PageReactResponse.cpp b/client/src/model/CreateV1PageReactResponse.cpp deleted file mode 100644 index b785568..0000000 --- a/client/src/model/CreateV1PageReactResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateV1PageReactResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateV1PageReactResponse::CreateV1PageReactResponse() -{ - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateV1PageReactResponse::~CreateV1PageReactResponse() -{ -} - -void CreateV1PageReactResponse::validate() -{ - // TODO: implement validation -} - -web::json::value CreateV1PageReactResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateV1PageReactResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateV1PageReactResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateV1PageReactResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t CreateV1PageReactResponse::getCode() const -{ - return m_Code; -} - - -void CreateV1PageReactResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateV1PageReactResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateV1PageReactResponse::unsetCode() -{ - m_CodeIsSet = false; -} -std::shared_ptr CreateV1PageReactResponse::getStatus() const -{ - return m_Status; -} - - -void CreateV1PageReactResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateV1PageReactResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateV1PageReactResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t CreateV1PageReactResponse::getReason() const -{ - return m_Reason; -} - - -void CreateV1PageReactResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateV1PageReactResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateV1PageReactResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateV1PageReactResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateV1PageReactResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateV1PageReactResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateV1PageReactResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateV1PageReactResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateV1PageReactResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateV1PageReactResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateV1PageReactResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateV1PageReactResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateV1PageReactResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateV1PageReactResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateV1PageReactResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateV1PageReactResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateV1PageReactResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateV1PageReactResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateV1PageReactResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateV1PageReactResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateV1PageReactResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateV1PageReactResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateV1PageReactResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateV2PageReactResponse.cpp b/client/src/model/CreateV2PageReactResponse.cpp deleted file mode 100644 index bef4ff3..0000000 --- a/client/src/model/CreateV2PageReactResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateV2PageReactResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateV2PageReactResponse::CreateV2PageReactResponse() -{ - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateV2PageReactResponse::~CreateV2PageReactResponse() -{ -} - -void CreateV2PageReactResponse::validate() -{ - // TODO: implement validation -} - -web::json::value CreateV2PageReactResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateV2PageReactResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateV2PageReactResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateV2PageReactResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t CreateV2PageReactResponse::getCode() const -{ - return m_Code; -} - - -void CreateV2PageReactResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateV2PageReactResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateV2PageReactResponse::unsetCode() -{ - m_CodeIsSet = false; -} -std::shared_ptr CreateV2PageReactResponse::getStatus() const -{ - return m_Status; -} - - -void CreateV2PageReactResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateV2PageReactResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateV2PageReactResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t CreateV2PageReactResponse::getReason() const -{ - return m_Reason; -} - - -void CreateV2PageReactResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateV2PageReactResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateV2PageReactResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateV2PageReactResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateV2PageReactResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateV2PageReactResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateV2PageReactResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateV2PageReactResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateV2PageReactResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateV2PageReactResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateV2PageReactResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateV2PageReactResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateV2PageReactResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateV2PageReactResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateV2PageReactResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateV2PageReactResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateV2PageReactResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateV2PageReactResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateV2PageReactResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateV2PageReactResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateV2PageReactResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateV2PageReactResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateV2PageReactResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/CreateVoteResponse.cpp b/client/src/model/CreateVoteResponse.cpp deleted file mode 100644 index b99342b..0000000 --- a/client/src/model/CreateVoteResponse.cpp +++ /dev/null @@ -1,657 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/CreateVoteResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -CreateVoteResponse::CreateVoteResponse() -{ - m_StatusIsSet = false; - m_VoteId = utility::conversions::to_string_t(""); - m_VoteIdIsSet = false; - m_IsVerified = false; - m_IsVerifiedIsSet = false; - m_UserIsSet = false; - m_EditKey = utility::conversions::to_string_t(""); - m_EditKeyIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -CreateVoteResponse::~CreateVoteResponse() -{ -} - -void CreateVoteResponse::validate() -{ - // TODO: implement validation -} - -web::json::value CreateVoteResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_VoteIdIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("voteId"))] = ModelBase::toJson(m_VoteId); - } - if(m_IsVerifiedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isVerified"))] = ModelBase::toJson(m_IsVerified); - } - if(m_UserIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); - } - if(m_EditKeyIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool CreateVoteResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("voteId")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("voteId"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setVoteId; - ok &= ModelBase::fromJson(fieldValue, refVal_setVoteId); - setVoteId(refVal_setVoteId); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isVerified"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsVerified; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsVerified); - setIsVerified(refVal_setIsVerified); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("editKey")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("editKey"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setEditKey; - ok &= ModelBase::fromJson(fieldValue, refVal_setEditKey); - setEditKey(refVal_setEditKey); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void CreateVoteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_VoteIdIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteId")), m_VoteId)); - } - if(m_IsVerifiedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isVerified")), m_IsVerified)); - } - if(m_UserIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); - } - if(m_EditKeyIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("editKey")), m_EditKey)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool CreateVoteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteId")))) - { - utility::string_t refVal_setVoteId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("voteId"))), refVal_setVoteId ); - setVoteId(refVal_setVoteId); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) - { - bool refVal_setIsVerified; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isVerified"))), refVal_setIsVerified ); - setIsVerified(refVal_setIsVerified); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("editKey")))) - { - utility::string_t refVal_setEditKey; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("editKey"))), refVal_setEditKey ); - setEditKey(refVal_setEditKey); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr CreateVoteResponse::getStatus() const -{ - return m_Status; -} - - -void CreateVoteResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool CreateVoteResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void CreateVoteResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t CreateVoteResponse::getVoteId() const -{ - return m_VoteId; -} - - -void CreateVoteResponse::setVoteId(const utility::string_t& value) -{ - m_VoteId = value; - m_VoteIdIsSet = true; -} - -bool CreateVoteResponse::voteIdIsSet() const -{ - return m_VoteIdIsSet; -} - -void CreateVoteResponse::unsetVoteId() -{ - m_VoteIdIsSet = false; -} -bool CreateVoteResponse::isIsVerified() const -{ - return m_IsVerified; -} - -void CreateVoteResponse::setIsVerified(bool value) -{ - m_IsVerified = value; - m_IsVerifiedIsSet = true; -} - -bool CreateVoteResponse::isVerifiedIsSet() const -{ - return m_IsVerifiedIsSet; -} - -void CreateVoteResponse::unsetIsVerified() -{ - m_IsVerifiedIsSet = false; -} -std::shared_ptr CreateVoteResponse::getUser() const -{ - return m_User; -} - - -void CreateVoteResponse::setUser(const std::shared_ptr& value) -{ - m_User = value; - m_UserIsSet = true; -} - -bool CreateVoteResponse::userIsSet() const -{ - return m_UserIsSet; -} - -void CreateVoteResponse::unsetUser() -{ - m_UserIsSet = false; -} -utility::string_t CreateVoteResponse::getEditKey() const -{ - return m_EditKey; -} - - -void CreateVoteResponse::setEditKey(const utility::string_t& value) -{ - m_EditKey = value; - m_EditKeyIsSet = true; -} - -bool CreateVoteResponse::editKeyIsSet() const -{ - return m_EditKeyIsSet; -} - -void CreateVoteResponse::unsetEditKey() -{ - m_EditKeyIsSet = false; -} -utility::string_t CreateVoteResponse::getReason() const -{ - return m_Reason; -} - - -void CreateVoteResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool CreateVoteResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void CreateVoteResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t CreateVoteResponse::getCode() const -{ - return m_Code; -} - - -void CreateVoteResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool CreateVoteResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void CreateVoteResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t CreateVoteResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void CreateVoteResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool CreateVoteResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void CreateVoteResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t CreateVoteResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void CreateVoteResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool CreateVoteResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void CreateVoteResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t CreateVoteResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void CreateVoteResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool CreateVoteResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void CreateVoteResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t CreateVoteResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void CreateVoteResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool CreateVoteResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void CreateVoteResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr CreateVoteResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void CreateVoteResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool CreateVoteResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void CreateVoteResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteCommentPublicResponse.cpp b/client/src/model/DeleteCommentPublicResponse.cpp deleted file mode 100644 index 98983aa..0000000 --- a/client/src/model/DeleteCommentPublicResponse.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteCommentPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteCommentPublicResponse::DeleteCommentPublicResponse() -{ - m_CommentIsSet = false; - m_HardRemoved = false; - m_HardRemovedIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteCommentPublicResponse::~DeleteCommentPublicResponse() -{ -} - -void DeleteCommentPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteCommentPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); - } - if(m_HardRemovedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))] = ModelBase::toJson(m_HardRemoved); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteCommentPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hardRemoved")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))); - if(!fieldValue.is_null()) - { - bool refVal_setHardRemoved; - ok &= ModelBase::fromJson(fieldValue, refVal_setHardRemoved); - setHardRemoved(refVal_setHardRemoved); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteCommentPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); - } - if(m_HardRemovedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hardRemoved")), m_HardRemoved)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteCommentPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hardRemoved")))) - { - bool refVal_setHardRemoved; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hardRemoved"))), refVal_setHardRemoved ); - setHardRemoved(refVal_setHardRemoved); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteCommentPublicResponse::getComment() const -{ - return m_Comment; -} - - -void DeleteCommentPublicResponse::setComment(const std::shared_ptr& value) -{ - m_Comment = value; - m_CommentIsSet = true; -} - -bool DeleteCommentPublicResponse::commentIsSet() const -{ - return m_CommentIsSet; -} - -void DeleteCommentPublicResponse::unsetComment() -{ - m_CommentIsSet = false; -} -bool DeleteCommentPublicResponse::isHardRemoved() const -{ - return m_HardRemoved; -} - -void DeleteCommentPublicResponse::setHardRemoved(bool value) -{ - m_HardRemoved = value; - m_HardRemovedIsSet = true; -} - -bool DeleteCommentPublicResponse::hardRemovedIsSet() const -{ - return m_HardRemovedIsSet; -} - -void DeleteCommentPublicResponse::unsetHardRemoved() -{ - m_HardRemovedIsSet = false; -} -std::shared_ptr DeleteCommentPublicResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteCommentPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteCommentPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteCommentPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteCommentPublicResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteCommentPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteCommentPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteCommentPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteCommentPublicResponse::getCode() const -{ - return m_Code; -} - - -void DeleteCommentPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteCommentPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteCommentPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteCommentPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteCommentPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteCommentPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteCommentPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteCommentPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteCommentPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteCommentPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteCommentPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteCommentPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteCommentPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteCommentPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteCommentPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteCommentPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteCommentPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteCommentPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteCommentPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteCommentPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteCommentPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteCommentPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteCommentPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteCommentResponse.cpp b/client/src/model/DeleteCommentResponse.cpp deleted file mode 100644 index 75a030b..0000000 --- a/client/src/model/DeleteCommentResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteCommentResponse::DeleteCommentResponse() -{ - m_ActionIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteCommentResponse::~DeleteCommentResponse() -{ -} - -void DeleteCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_ActionIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("action"))] = ModelBase::toJson(m_Action); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("action")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("action"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setAction; - ok &= ModelBase::fromJson(fieldValue, refVal_setAction); - setAction(refVal_setAction); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_ActionIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("action")), m_Action)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("action")))) - { - std::shared_ptr refVal_setAction; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("action"))), refVal_setAction ); - setAction(refVal_setAction); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteCommentResponse::getAction() const -{ - return m_Action; -} - - -void DeleteCommentResponse::setAction(const std::shared_ptr& value) -{ - m_Action = value; - m_ActionIsSet = true; -} - -bool DeleteCommentResponse::actionIsSet() const -{ - return m_ActionIsSet; -} - -void DeleteCommentResponse::unsetAction() -{ - m_ActionIsSet = false; -} -std::shared_ptr DeleteCommentResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteCommentResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteCommentResponse::getCode() const -{ - return m_Code; -} - - -void DeleteCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteCommentVoteResponse.cpp b/client/src/model/DeleteCommentVoteResponse.cpp deleted file mode 100644 index 31f0aa9..0000000 --- a/client/src/model/DeleteCommentVoteResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteCommentVoteResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteCommentVoteResponse::DeleteCommentVoteResponse() -{ - m_StatusIsSet = false; - m_WasPendingVote = false; - m_WasPendingVoteIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteCommentVoteResponse::~DeleteCommentVoteResponse() -{ -} - -void DeleteCommentVoteResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteCommentVoteResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_WasPendingVoteIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))] = ModelBase::toJson(m_WasPendingVote); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteCommentVoteResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))); - if(!fieldValue.is_null()) - { - bool refVal_setWasPendingVote; - ok &= ModelBase::fromJson(fieldValue, refVal_setWasPendingVote); - setWasPendingVote(refVal_setWasPendingVote); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteCommentVoteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_WasPendingVoteIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")), m_WasPendingVote)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteCommentVoteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) - { - bool refVal_setWasPendingVote; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))), refVal_setWasPendingVote ); - setWasPendingVote(refVal_setWasPendingVote); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteCommentVoteResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteCommentVoteResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteCommentVoteResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteCommentVoteResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -bool DeleteCommentVoteResponse::isWasPendingVote() const -{ - return m_WasPendingVote; -} - -void DeleteCommentVoteResponse::setWasPendingVote(bool value) -{ - m_WasPendingVote = value; - m_WasPendingVoteIsSet = true; -} - -bool DeleteCommentVoteResponse::wasPendingVoteIsSet() const -{ - return m_WasPendingVoteIsSet; -} - -void DeleteCommentVoteResponse::unsetWasPendingVote() -{ - m_WasPendingVoteIsSet = false; -} -utility::string_t DeleteCommentVoteResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteCommentVoteResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteCommentVoteResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteCommentVoteResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteCommentVoteResponse::getCode() const -{ - return m_Code; -} - - -void DeleteCommentVoteResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteCommentVoteResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteCommentVoteResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteCommentVoteResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteCommentVoteResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteCommentVoteResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteCommentVoteResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteCommentVoteResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteCommentVoteResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteCommentVoteResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteCommentVoteResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteCommentVoteResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteCommentVoteResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteCommentVoteResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteCommentVoteResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteCommentVoteResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteCommentVoteResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteCommentVoteResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteCommentVoteResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteCommentVoteResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteCommentVoteResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteCommentVoteResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteCommentVoteResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteEmailTemplateRenderErrorResponse.cpp b/client/src/model/DeleteEmailTemplateRenderErrorResponse.cpp deleted file mode 100644 index be196e9..0000000 --- a/client/src/model/DeleteEmailTemplateRenderErrorResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteEmailTemplateRenderErrorResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteEmailTemplateRenderErrorResponse::DeleteEmailTemplateRenderErrorResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteEmailTemplateRenderErrorResponse::~DeleteEmailTemplateRenderErrorResponse() -{ -} - -void DeleteEmailTemplateRenderErrorResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteEmailTemplateRenderErrorResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteEmailTemplateRenderErrorResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteEmailTemplateRenderErrorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteEmailTemplateRenderErrorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteEmailTemplateRenderErrorResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteEmailTemplateRenderErrorResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteEmailTemplateRenderErrorResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteEmailTemplateRenderErrorResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteEmailTemplateRenderErrorResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteEmailTemplateRenderErrorResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteEmailTemplateRenderErrorResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteEmailTemplateRenderErrorResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteEmailTemplateRenderErrorResponse::getCode() const -{ - return m_Code; -} - - -void DeleteEmailTemplateRenderErrorResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteEmailTemplateRenderErrorResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteEmailTemplateRenderErrorResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteEmailTemplateRenderErrorResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteEmailTemplateRenderErrorResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteEmailTemplateRenderErrorResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteEmailTemplateRenderErrorResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteEmailTemplateRenderErrorResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteEmailTemplateRenderErrorResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteEmailTemplateRenderErrorResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteEmailTemplateRenderErrorResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteEmailTemplateRenderErrorResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteEmailTemplateRenderErrorResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteEmailTemplateRenderErrorResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteEmailTemplateRenderErrorResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteEmailTemplateRenderErrorResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteEmailTemplateRenderErrorResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteEmailTemplateRenderErrorResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteEmailTemplateRenderErrorResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteEmailTemplateRenderErrorResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteEmailTemplateRenderErrorResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteEmailTemplateRenderErrorResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteEmailTemplateRenderErrorResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteEmailTemplateResponse.cpp b/client/src/model/DeleteEmailTemplateResponse.cpp deleted file mode 100644 index 4a8f6b0..0000000 --- a/client/src/model/DeleteEmailTemplateResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteEmailTemplateResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteEmailTemplateResponse::DeleteEmailTemplateResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteEmailTemplateResponse::~DeleteEmailTemplateResponse() -{ -} - -void DeleteEmailTemplateResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteEmailTemplateResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteEmailTemplateResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteEmailTemplateResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteEmailTemplateResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteEmailTemplateResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteEmailTemplateResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteEmailTemplateResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteEmailTemplateResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteEmailTemplateResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteEmailTemplateResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteEmailTemplateResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteEmailTemplateResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteEmailTemplateResponse::getCode() const -{ - return m_Code; -} - - -void DeleteEmailTemplateResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteEmailTemplateResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteEmailTemplateResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteEmailTemplateResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteEmailTemplateResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteEmailTemplateResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteEmailTemplateResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteEmailTemplateResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteEmailTemplateResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteEmailTemplateResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteEmailTemplateResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteEmailTemplateResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteEmailTemplateResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteEmailTemplateResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteEmailTemplateResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteEmailTemplateResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteEmailTemplateResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteEmailTemplateResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteEmailTemplateResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteEmailTemplateResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteEmailTemplateResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteEmailTemplateResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteEmailTemplateResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteFeedPostPublicResponse.cpp b/client/src/model/DeleteFeedPostPublicResponse.cpp index 1f5b947..f203eb8 100644 --- a/client/src/model/DeleteFeedPostPublicResponse.cpp +++ b/client/src/model/DeleteFeedPostPublicResponse.cpp @@ -21,19 +21,6 @@ namespace model { DeleteFeedPostPublicResponse::DeleteFeedPostPublicResponse() { m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; } DeleteFeedPostPublicResponse::~DeleteFeedPostPublicResponse() @@ -53,41 +40,6 @@ web::json::value DeleteFeedPostPublicResponse::toJson() const val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } return val; } @@ -106,83 +58,6 @@ bool DeleteFeedPostPublicResponse::fromJson(const web::json::value& val) } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } return ok; } @@ -197,34 +72,6 @@ void DeleteFeedPostPublicResponse::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } } bool DeleteFeedPostPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -242,48 +89,6 @@ bool DeleteFeedPostPublicResponse::fromMultiPart(std::shared_ptrgetContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); setStatus(refVal_setStatus); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } return ok; } @@ -309,151 +114,6 @@ void DeleteFeedPostPublicResponse::unsetStatus() { m_StatusIsSet = false; } -utility::string_t DeleteFeedPostPublicResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteFeedPostPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteFeedPostPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteFeedPostPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteFeedPostPublicResponse::getCode() const -{ - return m_Code; -} - - -void DeleteFeedPostPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteFeedPostPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteFeedPostPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteFeedPostPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteFeedPostPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteFeedPostPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteFeedPostPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteFeedPostPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteFeedPostPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteFeedPostPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteFeedPostPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteFeedPostPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteFeedPostPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteFeedPostPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteFeedPostPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteFeedPostPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteFeedPostPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteFeedPostPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteFeedPostPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteFeedPostPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteFeedPostPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteFeedPostPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteFeedPostPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} } } diff --git a/client/src/model/DeleteFeedPostPublicResponse_anyOf.cpp b/client/src/model/DeleteFeedPostPublicResponse_anyOf.cpp deleted file mode 100644 index 69a7ffc..0000000 --- a/client/src/model/DeleteFeedPostPublicResponse_anyOf.cpp +++ /dev/null @@ -1,123 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteFeedPostPublicResponse_anyOf.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteFeedPostPublicResponse_anyOf::DeleteFeedPostPublicResponse_anyOf() -{ - m_StatusIsSet = false; -} - -DeleteFeedPostPublicResponse_anyOf::~DeleteFeedPostPublicResponse_anyOf() -{ -} - -void DeleteFeedPostPublicResponse_anyOf::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteFeedPostPublicResponse_anyOf::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - - return val; -} - -bool DeleteFeedPostPublicResponse_anyOf::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - return ok; -} - -void DeleteFeedPostPublicResponse_anyOf::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } -} - -bool DeleteFeedPostPublicResponse_anyOf::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - return ok; -} - - -std::shared_ptr DeleteFeedPostPublicResponse_anyOf::getStatus() const -{ - return m_Status; -} - - -void DeleteFeedPostPublicResponse_anyOf::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteFeedPostPublicResponse_anyOf::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteFeedPostPublicResponse_anyOf::unsetStatus() -{ - m_StatusIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteHashTagResponse.cpp b/client/src/model/DeleteHashTagResponse.cpp deleted file mode 100644 index d032890..0000000 --- a/client/src/model/DeleteHashTagResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteHashTagResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteHashTagResponse::DeleteHashTagResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteHashTagResponse::~DeleteHashTagResponse() -{ -} - -void DeleteHashTagResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteHashTagResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteHashTagResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteHashTagResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteHashTagResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteHashTagResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteHashTagResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteHashTagResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteHashTagResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteHashTagResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteHashTagResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteHashTagResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteHashTagResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteHashTagResponse::getCode() const -{ - return m_Code; -} - - -void DeleteHashTagResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteHashTagResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteHashTagResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteHashTagResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteHashTagResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteHashTagResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteHashTagResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteHashTagResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteHashTagResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteHashTagResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteHashTagResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteHashTagResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteHashTagResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteHashTagResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteHashTagResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteHashTagResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteHashTagResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteHashTagResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteHashTagResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteHashTagResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteHashTagResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteHashTagResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteHashTagResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteModerationVoteResponse.cpp b/client/src/model/DeleteModerationVoteResponse.cpp deleted file mode 100644 index dab4137..0000000 --- a/client/src/model/DeleteModerationVoteResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteModerationVoteResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteModerationVoteResponse::DeleteModerationVoteResponse() -{ - m_StatusIsSet = false; - m_WasPendingVote = false; - m_WasPendingVoteIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteModerationVoteResponse::~DeleteModerationVoteResponse() -{ -} - -void DeleteModerationVoteResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteModerationVoteResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_WasPendingVoteIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))] = ModelBase::toJson(m_WasPendingVote); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteModerationVoteResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))); - if(!fieldValue.is_null()) - { - bool refVal_setWasPendingVote; - ok &= ModelBase::fromJson(fieldValue, refVal_setWasPendingVote); - setWasPendingVote(refVal_setWasPendingVote); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteModerationVoteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_WasPendingVoteIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")), m_WasPendingVote)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteModerationVoteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) - { - bool refVal_setWasPendingVote; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))), refVal_setWasPendingVote ); - setWasPendingVote(refVal_setWasPendingVote); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteModerationVoteResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteModerationVoteResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteModerationVoteResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteModerationVoteResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -bool DeleteModerationVoteResponse::isWasPendingVote() const -{ - return m_WasPendingVote; -} - -void DeleteModerationVoteResponse::setWasPendingVote(bool value) -{ - m_WasPendingVote = value; - m_WasPendingVoteIsSet = true; -} - -bool DeleteModerationVoteResponse::wasPendingVoteIsSet() const -{ - return m_WasPendingVoteIsSet; -} - -void DeleteModerationVoteResponse::unsetWasPendingVote() -{ - m_WasPendingVoteIsSet = false; -} -utility::string_t DeleteModerationVoteResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteModerationVoteResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteModerationVoteResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteModerationVoteResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteModerationVoteResponse::getCode() const -{ - return m_Code; -} - - -void DeleteModerationVoteResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteModerationVoteResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteModerationVoteResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteModerationVoteResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteModerationVoteResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteModerationVoteResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteModerationVoteResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteModerationVoteResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteModerationVoteResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteModerationVoteResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteModerationVoteResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteModerationVoteResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteModerationVoteResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteModerationVoteResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteModerationVoteResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteModerationVoteResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteModerationVoteResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteModerationVoteResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteModerationVoteResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteModerationVoteResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteModerationVoteResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteModerationVoteResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteModerationVoteResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteModeratorResponse.cpp b/client/src/model/DeleteModeratorResponse.cpp deleted file mode 100644 index 6441910..0000000 --- a/client/src/model/DeleteModeratorResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteModeratorResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteModeratorResponse::DeleteModeratorResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteModeratorResponse::~DeleteModeratorResponse() -{ -} - -void DeleteModeratorResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteModeratorResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteModeratorResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteModeratorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteModeratorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteModeratorResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteModeratorResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteModeratorResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteModeratorResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteModeratorResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteModeratorResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteModeratorResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteModeratorResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteModeratorResponse::getCode() const -{ - return m_Code; -} - - -void DeleteModeratorResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteModeratorResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteModeratorResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteModeratorResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteModeratorResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteModeratorResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteModeratorResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteModeratorResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteModeratorResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteModeratorResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteModeratorResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteModeratorResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteModeratorResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteModeratorResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteModeratorResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteModeratorResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteModeratorResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteModeratorResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteModeratorResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteModeratorResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteModeratorResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteModeratorResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteModeratorResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteNotificationCountResponse.cpp b/client/src/model/DeleteNotificationCountResponse.cpp deleted file mode 100644 index 8c295db..0000000 --- a/client/src/model/DeleteNotificationCountResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteNotificationCountResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteNotificationCountResponse::DeleteNotificationCountResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteNotificationCountResponse::~DeleteNotificationCountResponse() -{ -} - -void DeleteNotificationCountResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteNotificationCountResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteNotificationCountResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteNotificationCountResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteNotificationCountResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteNotificationCountResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteNotificationCountResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteNotificationCountResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteNotificationCountResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteNotificationCountResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteNotificationCountResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteNotificationCountResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteNotificationCountResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteNotificationCountResponse::getCode() const -{ - return m_Code; -} - - -void DeleteNotificationCountResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteNotificationCountResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteNotificationCountResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteNotificationCountResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteNotificationCountResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteNotificationCountResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteNotificationCountResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteNotificationCountResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteNotificationCountResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteNotificationCountResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteNotificationCountResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteNotificationCountResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteNotificationCountResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteNotificationCountResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteNotificationCountResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteNotificationCountResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteNotificationCountResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteNotificationCountResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteNotificationCountResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteNotificationCountResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteNotificationCountResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteNotificationCountResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteNotificationCountResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeletePendingWebhookEventResponse.cpp b/client/src/model/DeletePendingWebhookEventResponse.cpp deleted file mode 100644 index 3276046..0000000 --- a/client/src/model/DeletePendingWebhookEventResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeletePendingWebhookEventResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeletePendingWebhookEventResponse::DeletePendingWebhookEventResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeletePendingWebhookEventResponse::~DeletePendingWebhookEventResponse() -{ -} - -void DeletePendingWebhookEventResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeletePendingWebhookEventResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeletePendingWebhookEventResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeletePendingWebhookEventResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeletePendingWebhookEventResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeletePendingWebhookEventResponse::getStatus() const -{ - return m_Status; -} - - -void DeletePendingWebhookEventResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeletePendingWebhookEventResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeletePendingWebhookEventResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeletePendingWebhookEventResponse::getReason() const -{ - return m_Reason; -} - - -void DeletePendingWebhookEventResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeletePendingWebhookEventResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeletePendingWebhookEventResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeletePendingWebhookEventResponse::getCode() const -{ - return m_Code; -} - - -void DeletePendingWebhookEventResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeletePendingWebhookEventResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeletePendingWebhookEventResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeletePendingWebhookEventResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeletePendingWebhookEventResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeletePendingWebhookEventResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeletePendingWebhookEventResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeletePendingWebhookEventResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeletePendingWebhookEventResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeletePendingWebhookEventResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeletePendingWebhookEventResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeletePendingWebhookEventResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeletePendingWebhookEventResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeletePendingWebhookEventResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeletePendingWebhookEventResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeletePendingWebhookEventResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeletePendingWebhookEventResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeletePendingWebhookEventResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeletePendingWebhookEventResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeletePendingWebhookEventResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeletePendingWebhookEventResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeletePendingWebhookEventResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeletePendingWebhookEventResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteQuestionConfigResponse.cpp b/client/src/model/DeleteQuestionConfigResponse.cpp deleted file mode 100644 index e7f76de..0000000 --- a/client/src/model/DeleteQuestionConfigResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteQuestionConfigResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteQuestionConfigResponse::DeleteQuestionConfigResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteQuestionConfigResponse::~DeleteQuestionConfigResponse() -{ -} - -void DeleteQuestionConfigResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteQuestionConfigResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteQuestionConfigResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteQuestionConfigResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteQuestionConfigResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteQuestionConfigResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteQuestionConfigResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteQuestionConfigResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteQuestionConfigResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteQuestionConfigResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteQuestionConfigResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteQuestionConfigResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteQuestionConfigResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteQuestionConfigResponse::getCode() const -{ - return m_Code; -} - - -void DeleteQuestionConfigResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteQuestionConfigResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteQuestionConfigResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteQuestionConfigResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteQuestionConfigResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteQuestionConfigResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteQuestionConfigResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteQuestionConfigResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteQuestionConfigResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteQuestionConfigResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteQuestionConfigResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteQuestionConfigResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteQuestionConfigResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteQuestionConfigResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteQuestionConfigResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteQuestionConfigResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteQuestionConfigResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteQuestionConfigResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteQuestionConfigResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteQuestionConfigResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteQuestionConfigResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteQuestionConfigResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteQuestionConfigResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteQuestionResultResponse.cpp b/client/src/model/DeleteQuestionResultResponse.cpp deleted file mode 100644 index 432eb66..0000000 --- a/client/src/model/DeleteQuestionResultResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteQuestionResultResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteQuestionResultResponse::DeleteQuestionResultResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteQuestionResultResponse::~DeleteQuestionResultResponse() -{ -} - -void DeleteQuestionResultResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteQuestionResultResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteQuestionResultResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteQuestionResultResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteQuestionResultResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteQuestionResultResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteQuestionResultResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteQuestionResultResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteQuestionResultResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteQuestionResultResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteQuestionResultResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteQuestionResultResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteQuestionResultResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteQuestionResultResponse::getCode() const -{ - return m_Code; -} - - -void DeleteQuestionResultResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteQuestionResultResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteQuestionResultResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteQuestionResultResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteQuestionResultResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteQuestionResultResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteQuestionResultResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteQuestionResultResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteQuestionResultResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteQuestionResultResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteQuestionResultResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteQuestionResultResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteQuestionResultResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteQuestionResultResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteQuestionResultResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteQuestionResultResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteQuestionResultResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteQuestionResultResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteQuestionResultResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteQuestionResultResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteQuestionResultResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteQuestionResultResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteQuestionResultResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteTenantPackageResponse.cpp b/client/src/model/DeleteTenantPackageResponse.cpp deleted file mode 100644 index 6a9c9d5..0000000 --- a/client/src/model/DeleteTenantPackageResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteTenantPackageResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteTenantPackageResponse::DeleteTenantPackageResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteTenantPackageResponse::~DeleteTenantPackageResponse() -{ -} - -void DeleteTenantPackageResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteTenantPackageResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteTenantPackageResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteTenantPackageResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteTenantPackageResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteTenantPackageResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteTenantPackageResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteTenantPackageResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteTenantPackageResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteTenantPackageResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteTenantPackageResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteTenantPackageResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteTenantPackageResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteTenantPackageResponse::getCode() const -{ - return m_Code; -} - - -void DeleteTenantPackageResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteTenantPackageResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteTenantPackageResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteTenantPackageResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteTenantPackageResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteTenantPackageResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteTenantPackageResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteTenantPackageResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteTenantPackageResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteTenantPackageResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteTenantPackageResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteTenantPackageResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteTenantPackageResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteTenantPackageResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteTenantPackageResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteTenantPackageResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteTenantPackageResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteTenantPackageResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteTenantPackageResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteTenantPackageResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteTenantPackageResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteTenantPackageResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteTenantPackageResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteTenantResponse.cpp b/client/src/model/DeleteTenantResponse.cpp deleted file mode 100644 index eb25395..0000000 --- a/client/src/model/DeleteTenantResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteTenantResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteTenantResponse::DeleteTenantResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteTenantResponse::~DeleteTenantResponse() -{ -} - -void DeleteTenantResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteTenantResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteTenantResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteTenantResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteTenantResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteTenantResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteTenantResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteTenantResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteTenantResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteTenantResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteTenantResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteTenantResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteTenantResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteTenantResponse::getCode() const -{ - return m_Code; -} - - -void DeleteTenantResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteTenantResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteTenantResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteTenantResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteTenantResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteTenantResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteTenantResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteTenantResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteTenantResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteTenantResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteTenantResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteTenantResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteTenantResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteTenantResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteTenantResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteTenantResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteTenantResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteTenantResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteTenantResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteTenantResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteTenantResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteTenantResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteTenantResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteTenantUserResponse.cpp b/client/src/model/DeleteTenantUserResponse.cpp deleted file mode 100644 index b70e1f5..0000000 --- a/client/src/model/DeleteTenantUserResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteTenantUserResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteTenantUserResponse::DeleteTenantUserResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteTenantUserResponse::~DeleteTenantUserResponse() -{ -} - -void DeleteTenantUserResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteTenantUserResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteTenantUserResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteTenantUserResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteTenantUserResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteTenantUserResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteTenantUserResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteTenantUserResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteTenantUserResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteTenantUserResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteTenantUserResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteTenantUserResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteTenantUserResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteTenantUserResponse::getCode() const -{ - return m_Code; -} - - -void DeleteTenantUserResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteTenantUserResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteTenantUserResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteTenantUserResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteTenantUserResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteTenantUserResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteTenantUserResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteTenantUserResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteTenantUserResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteTenantUserResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteTenantUserResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteTenantUserResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteTenantUserResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteTenantUserResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteTenantUserResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteTenantUserResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteTenantUserResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteTenantUserResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteTenantUserResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteTenantUserResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteTenantUserResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteTenantUserResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteTenantUserResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteUserBadgeResponse.cpp b/client/src/model/DeleteUserBadgeResponse.cpp deleted file mode 100644 index f8d7c15..0000000 --- a/client/src/model/DeleteUserBadgeResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteUserBadgeResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteUserBadgeResponse::DeleteUserBadgeResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteUserBadgeResponse::~DeleteUserBadgeResponse() -{ -} - -void DeleteUserBadgeResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteUserBadgeResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteUserBadgeResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteUserBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteUserBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteUserBadgeResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteUserBadgeResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteUserBadgeResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteUserBadgeResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteUserBadgeResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteUserBadgeResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteUserBadgeResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteUserBadgeResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteUserBadgeResponse::getCode() const -{ - return m_Code; -} - - -void DeleteUserBadgeResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteUserBadgeResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteUserBadgeResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteUserBadgeResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteUserBadgeResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteUserBadgeResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteUserBadgeResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteUserBadgeResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteUserBadgeResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteUserBadgeResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteUserBadgeResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteUserBadgeResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteUserBadgeResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteUserBadgeResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteUserBadgeResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteUserBadgeResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteUserBadgeResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteUserBadgeResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteUserBadgeResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteUserBadgeResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteUserBadgeResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteUserBadgeResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteUserBadgeResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteV1PageReactResponse.cpp b/client/src/model/DeleteV1PageReactResponse.cpp deleted file mode 100644 index 0c94887..0000000 --- a/client/src/model/DeleteV1PageReactResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteV1PageReactResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteV1PageReactResponse::DeleteV1PageReactResponse() -{ - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteV1PageReactResponse::~DeleteV1PageReactResponse() -{ -} - -void DeleteV1PageReactResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteV1PageReactResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteV1PageReactResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteV1PageReactResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteV1PageReactResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t DeleteV1PageReactResponse::getCode() const -{ - return m_Code; -} - - -void DeleteV1PageReactResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteV1PageReactResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteV1PageReactResponse::unsetCode() -{ - m_CodeIsSet = false; -} -std::shared_ptr DeleteV1PageReactResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteV1PageReactResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteV1PageReactResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteV1PageReactResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteV1PageReactResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteV1PageReactResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteV1PageReactResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteV1PageReactResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteV1PageReactResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteV1PageReactResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteV1PageReactResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteV1PageReactResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteV1PageReactResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteV1PageReactResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteV1PageReactResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteV1PageReactResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteV1PageReactResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteV1PageReactResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteV1PageReactResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteV1PageReactResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteV1PageReactResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteV1PageReactResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteV1PageReactResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteV1PageReactResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteV1PageReactResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteV1PageReactResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteV1PageReactResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteV1PageReactResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteV2PageReactResponse.cpp b/client/src/model/DeleteV2PageReactResponse.cpp deleted file mode 100644 index 5b3b6b1..0000000 --- a/client/src/model/DeleteV2PageReactResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteV2PageReactResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteV2PageReactResponse::DeleteV2PageReactResponse() -{ - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteV2PageReactResponse::~DeleteV2PageReactResponse() -{ -} - -void DeleteV2PageReactResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteV2PageReactResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteV2PageReactResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteV2PageReactResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteV2PageReactResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t DeleteV2PageReactResponse::getCode() const -{ - return m_Code; -} - - -void DeleteV2PageReactResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteV2PageReactResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteV2PageReactResponse::unsetCode() -{ - m_CodeIsSet = false; -} -std::shared_ptr DeleteV2PageReactResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteV2PageReactResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteV2PageReactResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteV2PageReactResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t DeleteV2PageReactResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteV2PageReactResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteV2PageReactResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteV2PageReactResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteV2PageReactResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteV2PageReactResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteV2PageReactResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteV2PageReactResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteV2PageReactResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteV2PageReactResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteV2PageReactResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteV2PageReactResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteV2PageReactResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteV2PageReactResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteV2PageReactResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteV2PageReactResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteV2PageReactResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteV2PageReactResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteV2PageReactResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteV2PageReactResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteV2PageReactResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteV2PageReactResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteV2PageReactResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteV2PageReactResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/DeleteVoteResponse.cpp b/client/src/model/DeleteVoteResponse.cpp deleted file mode 100644 index 26afa4f..0000000 --- a/client/src/model/DeleteVoteResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/DeleteVoteResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -DeleteVoteResponse::DeleteVoteResponse() -{ - m_StatusIsSet = false; - m_WasPendingVote = false; - m_WasPendingVoteIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -DeleteVoteResponse::~DeleteVoteResponse() -{ -} - -void DeleteVoteResponse::validate() -{ - // TODO: implement validation -} - -web::json::value DeleteVoteResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_WasPendingVoteIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))] = ModelBase::toJson(m_WasPendingVote); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool DeleteVoteResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))); - if(!fieldValue.is_null()) - { - bool refVal_setWasPendingVote; - ok &= ModelBase::fromJson(fieldValue, refVal_setWasPendingVote); - setWasPendingVote(refVal_setWasPendingVote); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void DeleteVoteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_WasPendingVoteIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")), m_WasPendingVote)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool DeleteVoteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote")))) - { - bool refVal_setWasPendingVote; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasPendingVote"))), refVal_setWasPendingVote ); - setWasPendingVote(refVal_setWasPendingVote); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr DeleteVoteResponse::getStatus() const -{ - return m_Status; -} - - -void DeleteVoteResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool DeleteVoteResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void DeleteVoteResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -bool DeleteVoteResponse::isWasPendingVote() const -{ - return m_WasPendingVote; -} - -void DeleteVoteResponse::setWasPendingVote(bool value) -{ - m_WasPendingVote = value; - m_WasPendingVoteIsSet = true; -} - -bool DeleteVoteResponse::wasPendingVoteIsSet() const -{ - return m_WasPendingVoteIsSet; -} - -void DeleteVoteResponse::unsetWasPendingVote() -{ - m_WasPendingVoteIsSet = false; -} -utility::string_t DeleteVoteResponse::getReason() const -{ - return m_Reason; -} - - -void DeleteVoteResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool DeleteVoteResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void DeleteVoteResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t DeleteVoteResponse::getCode() const -{ - return m_Code; -} - - -void DeleteVoteResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool DeleteVoteResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void DeleteVoteResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t DeleteVoteResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void DeleteVoteResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool DeleteVoteResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void DeleteVoteResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t DeleteVoteResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void DeleteVoteResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool DeleteVoteResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void DeleteVoteResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t DeleteVoteResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void DeleteVoteResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool DeleteVoteResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void DeleteVoteResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t DeleteVoteResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void DeleteVoteResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool DeleteVoteResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void DeleteVoteResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr DeleteVoteResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void DeleteVoteResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool DeleteVoteResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void DeleteVoteResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/FlagCommentPublicResponse.cpp b/client/src/model/FlagCommentPublicResponse.cpp deleted file mode 100644 index a8f2427..0000000 --- a/client/src/model/FlagCommentPublicResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/FlagCommentPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -FlagCommentPublicResponse::FlagCommentPublicResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -FlagCommentPublicResponse::~FlagCommentPublicResponse() -{ -} - -void FlagCommentPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value FlagCommentPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool FlagCommentPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void FlagCommentPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool FlagCommentPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr FlagCommentPublicResponse::getStatus() const -{ - return m_Status; -} - - -void FlagCommentPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool FlagCommentPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void FlagCommentPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t FlagCommentPublicResponse::getReason() const -{ - return m_Reason; -} - - -void FlagCommentPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool FlagCommentPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void FlagCommentPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t FlagCommentPublicResponse::getCode() const -{ - return m_Code; -} - - -void FlagCommentPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool FlagCommentPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void FlagCommentPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t FlagCommentPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void FlagCommentPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool FlagCommentPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void FlagCommentPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t FlagCommentPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void FlagCommentPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool FlagCommentPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void FlagCommentPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t FlagCommentPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void FlagCommentPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool FlagCommentPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void FlagCommentPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t FlagCommentPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void FlagCommentPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool FlagCommentPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void FlagCommentPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr FlagCommentPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void FlagCommentPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool FlagCommentPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void FlagCommentPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/FlagCommentResponse_1.cpp b/client/src/model/FlagCommentResponse_1.cpp deleted file mode 100644 index 3f7d6b9..0000000 --- a/client/src/model/FlagCommentResponse_1.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/FlagCommentResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -FlagCommentResponse_1::FlagCommentResponse_1() -{ - m_StatusCode = 0; - m_StatusCodeIsSet = false; - m_StatusIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_WasUnapproved = false; - m_WasUnapprovedIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -FlagCommentResponse_1::~FlagCommentResponse_1() -{ -} - -void FlagCommentResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value FlagCommentResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_WasUnapprovedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))] = ModelBase::toJson(m_WasUnapproved); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool FlagCommentResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("statusCode"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setStatusCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatusCode); - setStatusCode(refVal_setStatusCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))); - if(!fieldValue.is_null()) - { - bool refVal_setWasUnapproved; - ok &= ModelBase::fromJson(fieldValue, refVal_setWasUnapproved); - setWasUnapproved(refVal_setWasUnapproved); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void FlagCommentResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("statusCode")), m_StatusCode)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_WasUnapprovedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")), m_WasUnapproved)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool FlagCommentResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) - { - int32_t refVal_setStatusCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("statusCode"))), refVal_setStatusCode ); - setStatusCode(refVal_setStatusCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")))) - { - bool refVal_setWasUnapproved; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))), refVal_setWasUnapproved ); - setWasUnapproved(refVal_setWasUnapproved); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -int32_t FlagCommentResponse_1::getStatusCode() const -{ - return m_StatusCode; -} - -void FlagCommentResponse_1::setStatusCode(int32_t value) -{ - m_StatusCode = value; - m_StatusCodeIsSet = true; -} - -bool FlagCommentResponse_1::statusCodeIsSet() const -{ - return m_StatusCodeIsSet; -} - -void FlagCommentResponse_1::unsetStatusCode() -{ - m_StatusCodeIsSet = false; -} -std::shared_ptr FlagCommentResponse_1::getStatus() const -{ - return m_Status; -} - - -void FlagCommentResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool FlagCommentResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void FlagCommentResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t FlagCommentResponse_1::getCode() const -{ - return m_Code; -} - - -void FlagCommentResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool FlagCommentResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void FlagCommentResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t FlagCommentResponse_1::getReason() const -{ - return m_Reason; -} - - -void FlagCommentResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool FlagCommentResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void FlagCommentResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -bool FlagCommentResponse_1::isWasUnapproved() const -{ - return m_WasUnapproved; -} - -void FlagCommentResponse_1::setWasUnapproved(bool value) -{ - m_WasUnapproved = value; - m_WasUnapprovedIsSet = true; -} - -bool FlagCommentResponse_1::wasUnapprovedIsSet() const -{ - return m_WasUnapprovedIsSet; -} - -void FlagCommentResponse_1::unsetWasUnapproved() -{ - m_WasUnapprovedIsSet = false; -} -utility::string_t FlagCommentResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void FlagCommentResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool FlagCommentResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void FlagCommentResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t FlagCommentResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void FlagCommentResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool FlagCommentResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void FlagCommentResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t FlagCommentResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void FlagCommentResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool FlagCommentResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void FlagCommentResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t FlagCommentResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void FlagCommentResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool FlagCommentResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void FlagCommentResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr FlagCommentResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void FlagCommentResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool FlagCommentResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void FlagCommentResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetApiCommentsResponse.cpp b/client/src/model/GetApiCommentsResponse.cpp deleted file mode 100644 index 83ba2b1..0000000 --- a/client/src/model/GetApiCommentsResponse.cpp +++ /dev/null @@ -1,607 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetApiCommentsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetApiCommentsResponse::GetApiCommentsResponse() -{ - m_StatusIsSet = false; - m_TranslationsIsSet = false; - m_CommentsIsSet = false; - m_ModerationFilterIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetApiCommentsResponse::~GetApiCommentsResponse() -{ -} - -void GetApiCommentsResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetApiCommentsResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TranslationsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); - } - if(m_CommentsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); - } - if(m_ModerationFilterIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))] = ModelBase::toJson(m_ModerationFilter); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetApiCommentsResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translations")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translations"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTranslations; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslations); - setTranslations(refVal_setTranslations); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromJson(fieldValue, refVal_setComments); - setComments(refVal_setComments); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderationFilter")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setModerationFilter; - ok &= ModelBase::fromJson(fieldValue, refVal_setModerationFilter); - setModerationFilter(refVal_setModerationFilter); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetApiCommentsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TranslationsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); - } - if(m_CommentsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); - } - if(m_ModerationFilterIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderationFilter")), m_ModerationFilter)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetApiCommentsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translations")))) - { - std::shared_ptr refVal_setTranslations; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translations"))), refVal_setTranslations ); - setTranslations(refVal_setTranslations); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); - setComments(refVal_setComments); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderationFilter")))) - { - std::shared_ptr refVal_setModerationFilter; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderationFilter"))), refVal_setModerationFilter ); - setModerationFilter(refVal_setModerationFilter); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetApiCommentsResponse::getStatus() const -{ - return m_Status; -} - - -void GetApiCommentsResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetApiCommentsResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetApiCommentsResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetApiCommentsResponse::getTranslations() const -{ - return m_Translations; -} - - -void GetApiCommentsResponse::setTranslations(const std::shared_ptr& value) -{ - m_Translations = value; - m_TranslationsIsSet = true; -} - -bool GetApiCommentsResponse::translationsIsSet() const -{ - return m_TranslationsIsSet; -} - -void GetApiCommentsResponse::unsetTranslations() -{ - m_TranslationsIsSet = false; -} -std::vector> GetApiCommentsResponse::getComments() const -{ - return m_Comments; -} - - -void GetApiCommentsResponse::setComments(const std::vector>& value) -{ - m_Comments = value; - m_CommentsIsSet = true; -} - -bool GetApiCommentsResponse::commentsIsSet() const -{ - return m_CommentsIsSet; -} - -void GetApiCommentsResponse::unsetComments() -{ - m_CommentsIsSet = false; -} -std::shared_ptr GetApiCommentsResponse::getModerationFilter() const -{ - return m_ModerationFilter; -} - - -void GetApiCommentsResponse::setModerationFilter(const std::shared_ptr& value) -{ - m_ModerationFilter = value; - m_ModerationFilterIsSet = true; -} - -bool GetApiCommentsResponse::moderationFilterIsSet() const -{ - return m_ModerationFilterIsSet; -} - -void GetApiCommentsResponse::unsetModerationFilter() -{ - m_ModerationFilterIsSet = false; -} -utility::string_t GetApiCommentsResponse::getReason() const -{ - return m_Reason; -} - - -void GetApiCommentsResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetApiCommentsResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetApiCommentsResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetApiCommentsResponse::getCode() const -{ - return m_Code; -} - - -void GetApiCommentsResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetApiCommentsResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetApiCommentsResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetApiCommentsResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetApiCommentsResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetApiCommentsResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetApiCommentsResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetApiCommentsResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetApiCommentsResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetApiCommentsResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetApiCommentsResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetApiCommentsResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetApiCommentsResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetApiCommentsResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetApiCommentsResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetApiCommentsResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetApiCommentsResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetApiCommentsResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetApiCommentsResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetApiCommentsResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetApiCommentsResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetApiCommentsResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetApiCommentsResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetApiExportStatusResponse.cpp b/client/src/model/GetApiExportStatusResponse.cpp deleted file mode 100644 index 83622b1..0000000 --- a/client/src/model/GetApiExportStatusResponse.cpp +++ /dev/null @@ -1,609 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetApiExportStatusResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetApiExportStatusResponse::GetApiExportStatusResponse() -{ - m_StatusIsSet = false; - m_JobStatus = utility::conversions::to_string_t(""); - m_JobStatusIsSet = false; - m_RecordCount = 0; - m_RecordCountIsSet = false; - m_DownloadUrl = utility::conversions::to_string_t(""); - m_DownloadUrlIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetApiExportStatusResponse::~GetApiExportStatusResponse() -{ -} - -void GetApiExportStatusResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetApiExportStatusResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_JobStatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("jobStatus"))] = ModelBase::toJson(m_JobStatus); - } - if(m_RecordCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("recordCount"))] = ModelBase::toJson(m_RecordCount); - } - if(m_DownloadUrlIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("downloadUrl"))] = ModelBase::toJson(m_DownloadUrl); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetApiExportStatusResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("jobStatus")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("jobStatus"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setJobStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setJobStatus); - setJobStatus(refVal_setJobStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("recordCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("recordCount"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setRecordCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setRecordCount); - setRecordCount(refVal_setRecordCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("downloadUrl")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("downloadUrl"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setDownloadUrl; - ok &= ModelBase::fromJson(fieldValue, refVal_setDownloadUrl); - setDownloadUrl(refVal_setDownloadUrl); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetApiExportStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_JobStatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("jobStatus")), m_JobStatus)); - } - if(m_RecordCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("recordCount")), m_RecordCount)); - } - if(m_DownloadUrlIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("downloadUrl")), m_DownloadUrl)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetApiExportStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("jobStatus")))) - { - utility::string_t refVal_setJobStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("jobStatus"))), refVal_setJobStatus ); - setJobStatus(refVal_setJobStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("recordCount")))) - { - int32_t refVal_setRecordCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("recordCount"))), refVal_setRecordCount ); - setRecordCount(refVal_setRecordCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("downloadUrl")))) - { - utility::string_t refVal_setDownloadUrl; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("downloadUrl"))), refVal_setDownloadUrl ); - setDownloadUrl(refVal_setDownloadUrl); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetApiExportStatusResponse::getStatus() const -{ - return m_Status; -} - - -void GetApiExportStatusResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetApiExportStatusResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetApiExportStatusResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetApiExportStatusResponse::getJobStatus() const -{ - return m_JobStatus; -} - - -void GetApiExportStatusResponse::setJobStatus(const utility::string_t& value) -{ - m_JobStatus = value; - m_JobStatusIsSet = true; -} - -bool GetApiExportStatusResponse::jobStatusIsSet() const -{ - return m_JobStatusIsSet; -} - -void GetApiExportStatusResponse::unsetJobStatus() -{ - m_JobStatusIsSet = false; -} -int32_t GetApiExportStatusResponse::getRecordCount() const -{ - return m_RecordCount; -} - -void GetApiExportStatusResponse::setRecordCount(int32_t value) -{ - m_RecordCount = value; - m_RecordCountIsSet = true; -} - -bool GetApiExportStatusResponse::recordCountIsSet() const -{ - return m_RecordCountIsSet; -} - -void GetApiExportStatusResponse::unsetRecordCount() -{ - m_RecordCountIsSet = false; -} -utility::string_t GetApiExportStatusResponse::getDownloadUrl() const -{ - return m_DownloadUrl; -} - - -void GetApiExportStatusResponse::setDownloadUrl(const utility::string_t& value) -{ - m_DownloadUrl = value; - m_DownloadUrlIsSet = true; -} - -bool GetApiExportStatusResponse::downloadUrlIsSet() const -{ - return m_DownloadUrlIsSet; -} - -void GetApiExportStatusResponse::unsetDownloadUrl() -{ - m_DownloadUrlIsSet = false; -} -utility::string_t GetApiExportStatusResponse::getReason() const -{ - return m_Reason; -} - - -void GetApiExportStatusResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetApiExportStatusResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetApiExportStatusResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetApiExportStatusResponse::getCode() const -{ - return m_Code; -} - - -void GetApiExportStatusResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetApiExportStatusResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetApiExportStatusResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetApiExportStatusResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetApiExportStatusResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetApiExportStatusResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetApiExportStatusResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetApiExportStatusResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetApiExportStatusResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetApiExportStatusResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetApiExportStatusResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetApiExportStatusResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetApiExportStatusResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetApiExportStatusResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetApiExportStatusResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetApiExportStatusResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetApiExportStatusResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetApiExportStatusResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetApiExportStatusResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetApiExportStatusResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetApiExportStatusResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetApiExportStatusResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetApiExportStatusResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetApiIdsResponse.cpp b/client/src/model/GetApiIdsResponse.cpp deleted file mode 100644 index 0bebc1b..0000000 --- a/client/src/model/GetApiIdsResponse.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetApiIdsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetApiIdsResponse::GetApiIdsResponse() -{ - m_IdsIsSet = false; - m_HasMore = false; - m_HasMoreIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetApiIdsResponse::~GetApiIdsResponse() -{ -} - -void GetApiIdsResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetApiIdsResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_IdsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("ids"))] = ModelBase::toJson(m_Ids); - } - if(m_HasMoreIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetApiIdsResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ids")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ids"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setIds; - ok &= ModelBase::fromJson(fieldValue, refVal_setIds); - setIds(refVal_setIds); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); - if(!fieldValue.is_null()) - { - bool refVal_setHasMore; - ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); - setHasMore(refVal_setHasMore); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetApiIdsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_IdsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ids")), m_Ids)); - } - if(m_HasMoreIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetApiIdsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ids")))) - { - std::vector refVal_setIds; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ids"))), refVal_setIds ); - setIds(refVal_setIds); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - bool refVal_setHasMore; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); - setHasMore(refVal_setHasMore); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector GetApiIdsResponse::getIds() const -{ - return m_Ids; -} - - -void GetApiIdsResponse::setIds(const std::vector& value) -{ - m_Ids = value; - m_IdsIsSet = true; -} - -bool GetApiIdsResponse::idsIsSet() const -{ - return m_IdsIsSet; -} - -void GetApiIdsResponse::unsetIds() -{ - m_IdsIsSet = false; -} -bool GetApiIdsResponse::isHasMore() const -{ - return m_HasMore; -} - -void GetApiIdsResponse::setHasMore(bool value) -{ - m_HasMore = value; - m_HasMoreIsSet = true; -} - -bool GetApiIdsResponse::hasMoreIsSet() const -{ - return m_HasMoreIsSet; -} - -void GetApiIdsResponse::unsetHasMore() -{ - m_HasMoreIsSet = false; -} -std::shared_ptr GetApiIdsResponse::getStatus() const -{ - return m_Status; -} - - -void GetApiIdsResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetApiIdsResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetApiIdsResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetApiIdsResponse::getReason() const -{ - return m_Reason; -} - - -void GetApiIdsResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetApiIdsResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetApiIdsResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetApiIdsResponse::getCode() const -{ - return m_Code; -} - - -void GetApiIdsResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetApiIdsResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetApiIdsResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetApiIdsResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetApiIdsResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetApiIdsResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetApiIdsResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetApiIdsResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetApiIdsResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetApiIdsResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetApiIdsResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetApiIdsResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetApiIdsResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetApiIdsResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetApiIdsResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetApiIdsResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetApiIdsResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetApiIdsResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetApiIdsResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetApiIdsResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetApiIdsResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetApiIdsResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetApiIdsResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetAuditLogsResponse_1.cpp b/client/src/model/GetAuditLogsResponse_1.cpp deleted file mode 100644 index 9f61dd3..0000000 --- a/client/src/model/GetAuditLogsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetAuditLogsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetAuditLogsResponse_1::GetAuditLogsResponse_1() -{ - m_StatusIsSet = false; - m_AuditLogsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetAuditLogsResponse_1::~GetAuditLogsResponse_1() -{ -} - -void GetAuditLogsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetAuditLogsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_AuditLogsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("auditLogs"))] = ModelBase::toJson(m_AuditLogs); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetAuditLogsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("auditLogs")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("auditLogs"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setAuditLogs; - ok &= ModelBase::fromJson(fieldValue, refVal_setAuditLogs); - setAuditLogs(refVal_setAuditLogs); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetAuditLogsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_AuditLogsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("auditLogs")), m_AuditLogs)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetAuditLogsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("auditLogs")))) - { - std::vector> refVal_setAuditLogs; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("auditLogs"))), refVal_setAuditLogs ); - setAuditLogs(refVal_setAuditLogs); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetAuditLogsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetAuditLogsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetAuditLogsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetAuditLogsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetAuditLogsResponse_1::getAuditLogs() const -{ - return m_AuditLogs; -} - - -void GetAuditLogsResponse_1::setAuditLogs(const std::vector>& value) -{ - m_AuditLogs = value; - m_AuditLogsIsSet = true; -} - -bool GetAuditLogsResponse_1::auditLogsIsSet() const -{ - return m_AuditLogsIsSet; -} - -void GetAuditLogsResponse_1::unsetAuditLogs() -{ - m_AuditLogsIsSet = false; -} -utility::string_t GetAuditLogsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetAuditLogsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetAuditLogsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetAuditLogsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetAuditLogsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetAuditLogsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetAuditLogsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetAuditLogsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetAuditLogsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetAuditLogsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetAuditLogsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetAuditLogsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetAuditLogsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetAuditLogsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetAuditLogsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetAuditLogsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetAuditLogsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetAuditLogsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetAuditLogsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetAuditLogsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetAuditLogsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetAuditLogsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetAuditLogsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetAuditLogsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetAuditLogsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetAuditLogsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetAuditLogsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetAuditLogsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetBanUsersFromCommentResponse.cpp b/client/src/model/GetBanUsersFromCommentResponse.cpp deleted file mode 100644 index 7903dc8..0000000 --- a/client/src/model/GetBanUsersFromCommentResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetBanUsersFromCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetBanUsersFromCommentResponse::GetBanUsersFromCommentResponse() -{ - m_BannedUsersIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetBanUsersFromCommentResponse::~GetBanUsersFromCommentResponse() -{ -} - -void GetBanUsersFromCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetBanUsersFromCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_BannedUsersIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUsers"))] = ModelBase::toJson(m_BannedUsers); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetBanUsersFromCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUsers")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUsers"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setBannedUsers; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUsers); - setBannedUsers(refVal_setBannedUsers); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetBanUsersFromCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_BannedUsersIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUsers")), m_BannedUsers)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetBanUsersFromCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUsers")))) - { - std::vector> refVal_setBannedUsers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUsers"))), refVal_setBannedUsers ); - setBannedUsers(refVal_setBannedUsers); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetBanUsersFromCommentResponse::getBannedUsers() const -{ - return m_BannedUsers; -} - - -void GetBanUsersFromCommentResponse::setBannedUsers(const std::vector>& value) -{ - m_BannedUsers = value; - m_BannedUsersIsSet = true; -} - -bool GetBanUsersFromCommentResponse::bannedUsersIsSet() const -{ - return m_BannedUsersIsSet; -} - -void GetBanUsersFromCommentResponse::unsetBannedUsers() -{ - m_BannedUsersIsSet = false; -} -utility::string_t GetBanUsersFromCommentResponse::getCode() const -{ - return m_Code; -} - - -void GetBanUsersFromCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetBanUsersFromCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetBanUsersFromCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -std::shared_ptr GetBanUsersFromCommentResponse::getStatus() const -{ - return m_Status; -} - - -void GetBanUsersFromCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetBanUsersFromCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetBanUsersFromCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetBanUsersFromCommentResponse::getReason() const -{ - return m_Reason; -} - - -void GetBanUsersFromCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetBanUsersFromCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetBanUsersFromCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetBanUsersFromCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetBanUsersFromCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetBanUsersFromCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetBanUsersFromCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetBanUsersFromCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetBanUsersFromCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetBanUsersFromCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetBanUsersFromCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetBanUsersFromCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetBanUsersFromCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetBanUsersFromCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetBanUsersFromCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetBanUsersFromCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetBanUsersFromCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetBanUsersFromCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetBanUsersFromCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetBanUsersFromCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetBanUsersFromCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetBanUsersFromCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetBanUsersFromCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCachedNotificationCountResponse_1.cpp b/client/src/model/GetCachedNotificationCountResponse_1.cpp deleted file mode 100644 index 8a2bfcb..0000000 --- a/client/src/model/GetCachedNotificationCountResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCachedNotificationCountResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCachedNotificationCountResponse_1::GetCachedNotificationCountResponse_1() -{ - m_StatusIsSet = false; - m_DataIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCachedNotificationCountResponse_1::~GetCachedNotificationCountResponse_1() -{ -} - -void GetCachedNotificationCountResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetCachedNotificationCountResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_DataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("data"))] = ModelBase::toJson(m_Data); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCachedNotificationCountResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("data"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromJson(fieldValue, refVal_setData); - setData(refVal_setData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCachedNotificationCountResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_DataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("data")), m_Data)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCachedNotificationCountResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("data")))) - { - std::shared_ptr refVal_setData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("data"))), refVal_setData ); - setData(refVal_setData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetCachedNotificationCountResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetCachedNotificationCountResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCachedNotificationCountResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCachedNotificationCountResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetCachedNotificationCountResponse_1::getData() const -{ - return m_Data; -} - - -void GetCachedNotificationCountResponse_1::setData(const std::shared_ptr& value) -{ - m_Data = value; - m_DataIsSet = true; -} - -bool GetCachedNotificationCountResponse_1::dataIsSet() const -{ - return m_DataIsSet; -} - -void GetCachedNotificationCountResponse_1::unsetData() -{ - m_DataIsSet = false; -} -utility::string_t GetCachedNotificationCountResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetCachedNotificationCountResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCachedNotificationCountResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCachedNotificationCountResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCachedNotificationCountResponse_1::getCode() const -{ - return m_Code; -} - - -void GetCachedNotificationCountResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCachedNotificationCountResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCachedNotificationCountResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCachedNotificationCountResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCachedNotificationCountResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCachedNotificationCountResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCachedNotificationCountResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCachedNotificationCountResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCachedNotificationCountResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCachedNotificationCountResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCachedNotificationCountResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCachedNotificationCountResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCachedNotificationCountResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCachedNotificationCountResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCachedNotificationCountResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCachedNotificationCountResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCachedNotificationCountResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCachedNotificationCountResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCachedNotificationCountResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCachedNotificationCountResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCachedNotificationCountResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCachedNotificationCountResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCachedNotificationCountResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentBanStatusResponse_1.cpp b/client/src/model/GetCommentBanStatusResponse_1.cpp deleted file mode 100644 index 4f86feb..0000000 --- a/client/src/model/GetCommentBanStatusResponse_1.cpp +++ /dev/null @@ -1,554 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentBanStatusResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentBanStatusResponse_1::GetCommentBanStatusResponse_1() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCommentBanStatusResponse_1::~GetCommentBanStatusResponse_1() -{ -} - -void GetCommentBanStatusResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentBanStatusResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_EmailDomain.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("emailDomain"))] = ModelBase::toJson(m_EmailDomain.get()); - } - if(m_CanIPBan.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("canIPBan"))] = ModelBase::toJson(m_CanIPBan.get()); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCommentBanStatusResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailDomain")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailDomain"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setEmailDomain; - ok &= ModelBase::fromJson(fieldValue, refVal_setEmailDomain); - setEmailDomain(refVal_setEmailDomain); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("canIPBan")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("canIPBan"))); - if(!fieldValue.is_null()) - { - bool refVal_setCanIPBan; - ok &= ModelBase::fromJson(fieldValue, refVal_setCanIPBan); - setCanIPBan(refVal_setCanIPBan); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCommentBanStatusResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_EmailDomain.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailDomain")), m_EmailDomain.get())); - } - if(m_CanIPBan.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("canIPBan")), m_CanIPBan.get())); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCommentBanStatusResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailDomain")))) - { - utility::string_t refVal_setEmailDomain; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailDomain"))), refVal_setEmailDomain ); - setEmailDomain(refVal_setEmailDomain); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("canIPBan")))) - { - bool refVal_setCanIPBan; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("canIPBan"))), refVal_setCanIPBan ); - setCanIPBan(refVal_setCanIPBan); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetCommentBanStatusResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetCommentBanStatusResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentBanStatusResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentBanStatusResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetCommentBanStatusResponse_1::getEmailDomain() const -{ - return m_EmailDomain.get(); -} - - -void GetCommentBanStatusResponse_1::setEmailDomain(const utility::string_t& value) -{ - m_EmailDomain = value; -} - -bool GetCommentBanStatusResponse_1::emailDomainIsSet() const -{ - return m_EmailDomain.has_value(); -} - -void GetCommentBanStatusResponse_1::unsetEmailDomain() -{ - m_EmailDomain.reset(); -} -bool GetCommentBanStatusResponse_1::isCanIPBan() const -{ - return m_CanIPBan.get(); -} - -void GetCommentBanStatusResponse_1::setCanIPBan(bool value) -{ - m_CanIPBan = value; -} - -bool GetCommentBanStatusResponse_1::canIPBanIsSet() const -{ - return m_CanIPBan.has_value(); -} - -void GetCommentBanStatusResponse_1::unsetCanIPBan() -{ - m_CanIPBan.reset(); -} -utility::string_t GetCommentBanStatusResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetCommentBanStatusResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentBanStatusResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentBanStatusResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentBanStatusResponse_1::getCode() const -{ - return m_Code; -} - - -void GetCommentBanStatusResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentBanStatusResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentBanStatusResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentBanStatusResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentBanStatusResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentBanStatusResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentBanStatusResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentBanStatusResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentBanStatusResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentBanStatusResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentBanStatusResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentBanStatusResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentBanStatusResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentBanStatusResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentBanStatusResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentBanStatusResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentBanStatusResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentBanStatusResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentBanStatusResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCommentBanStatusResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentBanStatusResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentBanStatusResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentBanStatusResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentChildrenResponse.cpp b/client/src/model/GetCommentChildrenResponse.cpp deleted file mode 100644 index 6381d7b..0000000 --- a/client/src/model/GetCommentChildrenResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentChildrenResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentChildrenResponse::GetCommentChildrenResponse() -{ - m_CommentsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCommentChildrenResponse::~GetCommentChildrenResponse() -{ -} - -void GetCommentChildrenResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentChildrenResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCommentChildrenResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromJson(fieldValue, refVal_setComments); - setComments(refVal_setComments); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCommentChildrenResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCommentChildrenResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); - setComments(refVal_setComments); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetCommentChildrenResponse::getComments() const -{ - return m_Comments; -} - - -void GetCommentChildrenResponse::setComments(const std::vector>& value) -{ - m_Comments = value; - m_CommentsIsSet = true; -} - -bool GetCommentChildrenResponse::commentsIsSet() const -{ - return m_CommentsIsSet; -} - -void GetCommentChildrenResponse::unsetComments() -{ - m_CommentsIsSet = false; -} -std::shared_ptr GetCommentChildrenResponse::getStatus() const -{ - return m_Status; -} - - -void GetCommentChildrenResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentChildrenResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentChildrenResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetCommentChildrenResponse::getReason() const -{ - return m_Reason; -} - - -void GetCommentChildrenResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentChildrenResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentChildrenResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentChildrenResponse::getCode() const -{ - return m_Code; -} - - -void GetCommentChildrenResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentChildrenResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentChildrenResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentChildrenResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentChildrenResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentChildrenResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentChildrenResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentChildrenResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentChildrenResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentChildrenResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentChildrenResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentChildrenResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentChildrenResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentChildrenResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentChildrenResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentChildrenResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentChildrenResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentChildrenResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentChildrenResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCommentChildrenResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentChildrenResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentChildrenResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentChildrenResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentResponse.cpp b/client/src/model/GetCommentResponse.cpp deleted file mode 100644 index c21db13..0000000 --- a/client/src/model/GetCommentResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentResponse::GetCommentResponse() -{ - m_StatusIsSet = false; - m_CommentIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCommentResponse::~GetCommentResponse() -{ -} - -void GetCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetCommentResponse::getStatus() const -{ - return m_Status; -} - - -void GetCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetCommentResponse::getComment() const -{ - return m_Comment; -} - - -void GetCommentResponse::setComment(const std::shared_ptr& value) -{ - m_Comment = value; - m_CommentIsSet = true; -} - -bool GetCommentResponse::commentIsSet() const -{ - return m_CommentIsSet; -} - -void GetCommentResponse::unsetComment() -{ - m_CommentIsSet = false; -} -utility::string_t GetCommentResponse::getReason() const -{ - return m_Reason; -} - - -void GetCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentResponse::getCode() const -{ - return m_Code; -} - - -void GetCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentTextResponse_1.cpp b/client/src/model/GetCommentTextResponse_1.cpp deleted file mode 100644 index 55b6b65..0000000 --- a/client/src/model/GetCommentTextResponse_1.cpp +++ /dev/null @@ -1,561 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentTextResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentTextResponse_1::GetCommentTextResponse_1() -{ - m_StatusIsSet = false; - m_CommentText = utility::conversions::to_string_t(""); - m_CommentTextIsSet = false; - m_SanitizedCommentText = utility::conversions::to_string_t(""); - m_SanitizedCommentTextIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCommentTextResponse_1::~GetCommentTextResponse_1() -{ -} - -void GetCommentTextResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentTextResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentTextIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentText"))] = ModelBase::toJson(m_CommentText); - } - if(m_SanitizedCommentTextIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))] = ModelBase::toJson(m_SanitizedCommentText); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCommentTextResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentText")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentText"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCommentText; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentText); - setCommentText(refVal_setCommentText); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSanitizedCommentText; - ok &= ModelBase::fromJson(fieldValue, refVal_setSanitizedCommentText); - setSanitizedCommentText(refVal_setSanitizedCommentText); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCommentTextResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentTextIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentText")), m_CommentText)); - } - if(m_SanitizedCommentTextIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText")), m_SanitizedCommentText)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCommentTextResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentText")))) - { - utility::string_t refVal_setCommentText; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentText"))), refVal_setCommentText ); - setCommentText(refVal_setCommentText); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText")))) - { - utility::string_t refVal_setSanitizedCommentText; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sanitizedCommentText"))), refVal_setSanitizedCommentText ); - setSanitizedCommentText(refVal_setSanitizedCommentText); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetCommentTextResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetCommentTextResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentTextResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentTextResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetCommentTextResponse_1::getCommentText() const -{ - return m_CommentText; -} - - -void GetCommentTextResponse_1::setCommentText(const utility::string_t& value) -{ - m_CommentText = value; - m_CommentTextIsSet = true; -} - -bool GetCommentTextResponse_1::commentTextIsSet() const -{ - return m_CommentTextIsSet; -} - -void GetCommentTextResponse_1::unsetCommentText() -{ - m_CommentTextIsSet = false; -} -utility::string_t GetCommentTextResponse_1::getSanitizedCommentText() const -{ - return m_SanitizedCommentText; -} - - -void GetCommentTextResponse_1::setSanitizedCommentText(const utility::string_t& value) -{ - m_SanitizedCommentText = value; - m_SanitizedCommentTextIsSet = true; -} - -bool GetCommentTextResponse_1::sanitizedCommentTextIsSet() const -{ - return m_SanitizedCommentTextIsSet; -} - -void GetCommentTextResponse_1::unsetSanitizedCommentText() -{ - m_SanitizedCommentTextIsSet = false; -} -utility::string_t GetCommentTextResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetCommentTextResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentTextResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentTextResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentTextResponse_1::getCode() const -{ - return m_Code; -} - - -void GetCommentTextResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentTextResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentTextResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentTextResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentTextResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentTextResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentTextResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentTextResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentTextResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentTextResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentTextResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentTextResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentTextResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentTextResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentTextResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentTextResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentTextResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentTextResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentTextResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCommentTextResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentTextResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentTextResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentTextResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentVoteUserNamesResponse.cpp b/client/src/model/GetCommentVoteUserNamesResponse.cpp deleted file mode 100644 index 27b5805..0000000 --- a/client/src/model/GetCommentVoteUserNamesResponse.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentVoteUserNamesResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentVoteUserNamesResponse::GetCommentVoteUserNamesResponse() -{ - m_StatusIsSet = false; - m_VoteUserNamesIsSet = false; - m_HasMore = false; - m_HasMoreIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCommentVoteUserNamesResponse::~GetCommentVoteUserNamesResponse() -{ -} - -void GetCommentVoteUserNamesResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentVoteUserNamesResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_VoteUserNamesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))] = ModelBase::toJson(m_VoteUserNames); - } - if(m_HasMoreIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCommentVoteUserNamesResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("voteUserNames")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setVoteUserNames; - ok &= ModelBase::fromJson(fieldValue, refVal_setVoteUserNames); - setVoteUserNames(refVal_setVoteUserNames); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); - if(!fieldValue.is_null()) - { - bool refVal_setHasMore; - ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); - setHasMore(refVal_setHasMore); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCommentVoteUserNamesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_VoteUserNamesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteUserNames")), m_VoteUserNames)); - } - if(m_HasMoreIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCommentVoteUserNamesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteUserNames")))) - { - std::vector refVal_setVoteUserNames; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("voteUserNames"))), refVal_setVoteUserNames ); - setVoteUserNames(refVal_setVoteUserNames); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - bool refVal_setHasMore; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); - setHasMore(refVal_setHasMore); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetCommentVoteUserNamesResponse::getStatus() const -{ - return m_Status; -} - - -void GetCommentVoteUserNamesResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentVoteUserNamesResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentVoteUserNamesResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector GetCommentVoteUserNamesResponse::getVoteUserNames() const -{ - return m_VoteUserNames; -} - - -void GetCommentVoteUserNamesResponse::setVoteUserNames(const std::vector& value) -{ - m_VoteUserNames = value; - m_VoteUserNamesIsSet = true; -} - -bool GetCommentVoteUserNamesResponse::voteUserNamesIsSet() const -{ - return m_VoteUserNamesIsSet; -} - -void GetCommentVoteUserNamesResponse::unsetVoteUserNames() -{ - m_VoteUserNamesIsSet = false; -} -bool GetCommentVoteUserNamesResponse::isHasMore() const -{ - return m_HasMore; -} - -void GetCommentVoteUserNamesResponse::setHasMore(bool value) -{ - m_HasMore = value; - m_HasMoreIsSet = true; -} - -bool GetCommentVoteUserNamesResponse::hasMoreIsSet() const -{ - return m_HasMoreIsSet; -} - -void GetCommentVoteUserNamesResponse::unsetHasMore() -{ - m_HasMoreIsSet = false; -} -utility::string_t GetCommentVoteUserNamesResponse::getReason() const -{ - return m_Reason; -} - - -void GetCommentVoteUserNamesResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentVoteUserNamesResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentVoteUserNamesResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentVoteUserNamesResponse::getCode() const -{ - return m_Code; -} - - -void GetCommentVoteUserNamesResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentVoteUserNamesResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentVoteUserNamesResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentVoteUserNamesResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentVoteUserNamesResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentVoteUserNamesResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentVoteUserNamesResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentVoteUserNamesResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentVoteUserNamesResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentVoteUserNamesResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentVoteUserNamesResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentVoteUserNamesResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentVoteUserNamesResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentVoteUserNamesResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentVoteUserNamesResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentVoteUserNamesResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentVoteUserNamesResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentVoteUserNamesResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentVoteUserNamesResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCommentVoteUserNamesResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentVoteUserNamesResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentVoteUserNamesResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentVoteUserNamesResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentsForUserResponse_1.cpp b/client/src/model/GetCommentsForUserResponse_1.cpp deleted file mode 100644 index 222b425..0000000 --- a/client/src/model/GetCommentsForUserResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentsForUserResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentsForUserResponse_1::GetCommentsForUserResponse_1() -{ - m_ModeratingTenantIdsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCommentsForUserResponse_1::~GetCommentsForUserResponse_1() -{ -} - -void GetCommentsForUserResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentsForUserResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_ModeratingTenantIdsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds"))] = ModelBase::toJson(m_ModeratingTenantIds); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCommentsForUserResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setModeratingTenantIds; - ok &= ModelBase::fromJson(fieldValue, refVal_setModeratingTenantIds); - setModeratingTenantIds(refVal_setModeratingTenantIds); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCommentsForUserResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_ModeratingTenantIdsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds")), m_ModeratingTenantIds)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCommentsForUserResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds")))) - { - std::vector refVal_setModeratingTenantIds; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderatingTenantIds"))), refVal_setModeratingTenantIds ); - setModeratingTenantIds(refVal_setModeratingTenantIds); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector GetCommentsForUserResponse_1::getModeratingTenantIds() const -{ - return m_ModeratingTenantIds; -} - - -void GetCommentsForUserResponse_1::setModeratingTenantIds(const std::vector& value) -{ - m_ModeratingTenantIds = value; - m_ModeratingTenantIdsIsSet = true; -} - -bool GetCommentsForUserResponse_1::moderatingTenantIdsIsSet() const -{ - return m_ModeratingTenantIdsIsSet; -} - -void GetCommentsForUserResponse_1::unsetModeratingTenantIds() -{ - m_ModeratingTenantIdsIsSet = false; -} -std::shared_ptr GetCommentsForUserResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetCommentsForUserResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentsForUserResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentsForUserResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetCommentsForUserResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetCommentsForUserResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentsForUserResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentsForUserResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentsForUserResponse_1::getCode() const -{ - return m_Code; -} - - -void GetCommentsForUserResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentsForUserResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentsForUserResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentsForUserResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentsForUserResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentsForUserResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentsForUserResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentsForUserResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentsForUserResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentsForUserResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentsForUserResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentsForUserResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentsForUserResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentsForUserResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentsForUserResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentsForUserResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentsForUserResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentsForUserResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentsForUserResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCommentsForUserResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentsForUserResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentsForUserResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentsForUserResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentsPublicResponse.cpp b/client/src/model/GetCommentsPublicResponse.cpp deleted file mode 100644 index 54e070a..0000000 --- a/client/src/model/GetCommentsPublicResponse.cpp +++ /dev/null @@ -1,1567 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentsPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentsPublicResponse::GetCommentsPublicResponse() -{ - m_StatusCode = 0; - m_StatusCodeIsSet = false; - m_StatusIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_TranslatedWarning = utility::conversions::to_string_t(""); - m_TranslatedWarningIsSet = false; - m_CommentsIsSet = false; - m_UrlIdClean = utility::conversions::to_string_t(""); - m_UrlIdCleanIsSet = false; - m_IncludesPastPages = false; - m_IncludesPastPagesIsSet = false; - m_IsDemo = false; - m_IsDemoIsSet = false; - m_CommentCount = 0; - m_CommentCountIsSet = false; - m_IsSiteAdmin = false; - m_IsSiteAdminIsSet = false; - m_HasBillingIssue = false; - m_HasBillingIssueIsSet = false; - m_ModuleDataIsSet = false; - m_PageNumber = 0; - m_PageNumberIsSet = false; - m_IsWhiteLabeled = false; - m_IsWhiteLabeledIsSet = false; - m_IsProd = false; - m_IsProdIsSet = false; - m_IsCrawler = false; - m_IsCrawlerIsSet = false; - m_NotificationCount = 0; - m_NotificationCountIsSet = false; - m_HasMore = false; - m_HasMoreIsSet = false; - m_IsClosed = false; - m_IsClosedIsSet = false; - m_PresencePollState = 0; - m_PresencePollStateIsSet = false; - m_CustomConfigIsSet = false; - m_UrlIdWS = utility::conversions::to_string_t(""); - m_UrlIdWSIsSet = false; - m_UserIdWS = utility::conversions::to_string_t(""); - m_UserIdWSIsSet = false; - m_TenantIdWS = utility::conversions::to_string_t(""); - m_TenantIdWSIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; -} - -GetCommentsPublicResponse::~GetCommentsPublicResponse() -{ -} - -void GetCommentsPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentsPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_TranslatedWarningIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))] = ModelBase::toJson(m_TranslatedWarning); - } - if(m_CommentsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); - } - if(m_User.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); - } - if(m_UrlIdCleanIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))] = ModelBase::toJson(m_UrlIdClean); - } - if(m_LastGenDate.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))] = ModelBase::toJson(m_LastGenDate.get()); - } - if(m_IncludesPastPagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))] = ModelBase::toJson(m_IncludesPastPages); - } - if(m_IsDemoIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isDemo"))] = ModelBase::toJson(m_IsDemo); - } - if(m_CommentCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); - } - if(m_IsSiteAdminIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))] = ModelBase::toJson(m_IsSiteAdmin); - } - if(m_HasBillingIssueIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))] = ModelBase::toJson(m_HasBillingIssue); - } - if(m_ModuleDataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); - } - if(m_PageNumberIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pageNumber"))] = ModelBase::toJson(m_PageNumber); - } - if(m_IsWhiteLabeledIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))] = ModelBase::toJson(m_IsWhiteLabeled); - } - if(m_IsProdIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isProd"))] = ModelBase::toJson(m_IsProd); - } - if(m_IsCrawlerIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isCrawler"))] = ModelBase::toJson(m_IsCrawler); - } - if(m_NotificationCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("notificationCount"))] = ModelBase::toJson(m_NotificationCount); - } - if(m_HasMoreIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); - } - if(m_IsClosedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isClosed"))] = ModelBase::toJson(m_IsClosed); - } - if(m_PresencePollStateIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("presencePollState"))] = ModelBase::toJson(m_PresencePollState); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - if(m_UrlIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); - } - if(m_UserIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); - } - if(m_TenantIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - - return val; -} - -bool GetCommentsPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("statusCode"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setStatusCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatusCode); - setStatusCode(refVal_setStatusCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedWarning")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedWarning; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedWarning); - setTranslatedWarning(refVal_setTranslatedWarning); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromJson(fieldValue, refVal_setComments); - setComments(refVal_setComments); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdClean")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUrlIdClean; - ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdClean); - setUrlIdClean(refVal_setUrlIdClean); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("lastGenDate")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setLastGenDate; - ok &= ModelBase::fromJson(fieldValue, refVal_setLastGenDate); - setLastGenDate(refVal_setLastGenDate); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("includesPastPages")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))); - if(!fieldValue.is_null()) - { - bool refVal_setIncludesPastPages; - ok &= ModelBase::fromJson(fieldValue, refVal_setIncludesPastPages); - setIncludesPastPages(refVal_setIncludesPastPages); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isDemo")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isDemo"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsDemo; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsDemo); - setIsDemo(refVal_setIsDemo); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setCommentCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); - setCommentCount(refVal_setCommentCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsSiteAdmin; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsSiteAdmin); - setIsSiteAdmin(refVal_setIsSiteAdmin); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))); - if(!fieldValue.is_null()) - { - bool refVal_setHasBillingIssue; - ok &= ModelBase::fromJson(fieldValue, refVal_setHasBillingIssue); - setHasBillingIssue(refVal_setHasBillingIssue); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moduleData"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setModuleData; - ok &= ModelBase::fromJson(fieldValue, refVal_setModuleData); - setModuleData(refVal_setModuleData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pageNumber")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pageNumber"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setPageNumber; - ok &= ModelBase::fromJson(fieldValue, refVal_setPageNumber); - setPageNumber(refVal_setPageNumber); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsWhiteLabeled; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsWhiteLabeled); - setIsWhiteLabeled(refVal_setIsWhiteLabeled); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isProd")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isProd"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsProd; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsProd); - setIsProd(refVal_setIsProd); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isCrawler")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isCrawler"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsCrawler; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsCrawler); - setIsCrawler(refVal_setIsCrawler); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notificationCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notificationCount"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setNotificationCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setNotificationCount); - setNotificationCount(refVal_setNotificationCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); - if(!fieldValue.is_null()) - { - bool refVal_setHasMore; - ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); - setHasMore(refVal_setHasMore); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isClosed")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isClosed"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsClosed; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsClosed); - setIsClosed(refVal_setIsClosed); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("presencePollState")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("presencePollState"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setPresencePollState; - ok &= ModelBase::fromJson(fieldValue, refVal_setPresencePollState); - setPresencePollState(refVal_setPresencePollState); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUrlIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdWS); - setUrlIdWS(refVal_setUrlIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdWS); - setUserIdWS(refVal_setUserIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTenantIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantIdWS); - setTenantIdWS(refVal_setTenantIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - return ok; -} - -void GetCommentsPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("statusCode")), m_StatusCode)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_TranslatedWarningIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedWarning")), m_TranslatedWarning)); - } - if(m_CommentsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); - } - if(m_User.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); - } - if(m_UrlIdCleanIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdClean")), m_UrlIdClean)); - } - if(m_LastGenDate.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("lastGenDate")), m_LastGenDate.get())); - } - if(m_IncludesPastPagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("includesPastPages")), m_IncludesPastPages)); - } - if(m_IsDemoIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isDemo")), m_IsDemo)); - } - if(m_CommentCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); - } - if(m_IsSiteAdminIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin")), m_IsSiteAdmin)); - } - if(m_HasBillingIssueIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue")), m_HasBillingIssue)); - } - if(m_ModuleDataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moduleData")), m_ModuleData)); - } - if(m_PageNumberIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pageNumber")), m_PageNumber)); - } - if(m_IsWhiteLabeledIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled")), m_IsWhiteLabeled)); - } - if(m_IsProdIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isProd")), m_IsProd)); - } - if(m_IsCrawlerIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isCrawler")), m_IsCrawler)); - } - if(m_NotificationCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notificationCount")), m_NotificationCount)); - } - if(m_HasMoreIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); - } - if(m_IsClosedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isClosed")), m_IsClosed)); - } - if(m_PresencePollStateIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("presencePollState")), m_PresencePollState)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } - if(m_UrlIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdWS")), m_UrlIdWS)); - } - if(m_UserIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdWS")), m_UserIdWS)); - } - if(m_TenantIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")), m_TenantIdWS)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } -} - -bool GetCommentsPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) - { - int32_t refVal_setStatusCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("statusCode"))), refVal_setStatusCode ); - setStatusCode(refVal_setStatusCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedWarning")))) - { - utility::string_t refVal_setTranslatedWarning; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedWarning"))), refVal_setTranslatedWarning ); - setTranslatedWarning(refVal_setTranslatedWarning); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); - setComments(refVal_setComments); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdClean")))) - { - utility::string_t refVal_setUrlIdClean; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdClean"))), refVal_setUrlIdClean ); - setUrlIdClean(refVal_setUrlIdClean); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("lastGenDate")))) - { - int64_t refVal_setLastGenDate; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("lastGenDate"))), refVal_setLastGenDate ); - setLastGenDate(refVal_setLastGenDate); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("includesPastPages")))) - { - bool refVal_setIncludesPastPages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("includesPastPages"))), refVal_setIncludesPastPages ); - setIncludesPastPages(refVal_setIncludesPastPages); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isDemo")))) - { - bool refVal_setIsDemo; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isDemo"))), refVal_setIsDemo ); - setIsDemo(refVal_setIsDemo); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) - { - int32_t refVal_setCommentCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); - setCommentCount(refVal_setCommentCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin")))) - { - bool refVal_setIsSiteAdmin; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isSiteAdmin"))), refVal_setIsSiteAdmin ); - setIsSiteAdmin(refVal_setIsSiteAdmin); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue")))) - { - bool refVal_setHasBillingIssue; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasBillingIssue"))), refVal_setHasBillingIssue ); - setHasBillingIssue(refVal_setHasBillingIssue); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) - { - std::map> refVal_setModuleData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moduleData"))), refVal_setModuleData ); - setModuleData(refVal_setModuleData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pageNumber")))) - { - int32_t refVal_setPageNumber; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pageNumber"))), refVal_setPageNumber ); - setPageNumber(refVal_setPageNumber); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled")))) - { - bool refVal_setIsWhiteLabeled; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isWhiteLabeled"))), refVal_setIsWhiteLabeled ); - setIsWhiteLabeled(refVal_setIsWhiteLabeled); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isProd")))) - { - bool refVal_setIsProd; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isProd"))), refVal_setIsProd ); - setIsProd(refVal_setIsProd); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isCrawler")))) - { - bool refVal_setIsCrawler; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isCrawler"))), refVal_setIsCrawler ); - setIsCrawler(refVal_setIsCrawler); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notificationCount")))) - { - int32_t refVal_setNotificationCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notificationCount"))), refVal_setNotificationCount ); - setNotificationCount(refVal_setNotificationCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - bool refVal_setHasMore; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); - setHasMore(refVal_setHasMore); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isClosed")))) - { - bool refVal_setIsClosed; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isClosed"))), refVal_setIsClosed ); - setIsClosed(refVal_setIsClosed); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("presencePollState")))) - { - int32_t refVal_setPresencePollState; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("presencePollState"))), refVal_setPresencePollState ); - setPresencePollState(refVal_setPresencePollState); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) - { - utility::string_t refVal_setUrlIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))), refVal_setUrlIdWS ); - setUrlIdWS(refVal_setUrlIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))), refVal_setUserIdWS ); - setUserIdWS(refVal_setUserIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) - { - utility::string_t refVal_setTenantIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))), refVal_setTenantIdWS ); - setTenantIdWS(refVal_setTenantIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - return ok; -} - - -int32_t GetCommentsPublicResponse::getStatusCode() const -{ - return m_StatusCode; -} - -void GetCommentsPublicResponse::setStatusCode(int32_t value) -{ - m_StatusCode = value; - m_StatusCodeIsSet = true; -} - -bool GetCommentsPublicResponse::statusCodeIsSet() const -{ - return m_StatusCodeIsSet; -} - -void GetCommentsPublicResponse::unsetStatusCode() -{ - m_StatusCodeIsSet = false; -} -std::shared_ptr GetCommentsPublicResponse::getStatus() const -{ - return m_Status; -} - - -void GetCommentsPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentsPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentsPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetCommentsPublicResponse::getCode() const -{ - return m_Code; -} - - -void GetCommentsPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentsPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentsPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentsPublicResponse::getReason() const -{ - return m_Reason; -} - - -void GetCommentsPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentsPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentsPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentsPublicResponse::getTranslatedWarning() const -{ - return m_TranslatedWarning; -} - - -void GetCommentsPublicResponse::setTranslatedWarning(const utility::string_t& value) -{ - m_TranslatedWarning = value; - m_TranslatedWarningIsSet = true; -} - -bool GetCommentsPublicResponse::translatedWarningIsSet() const -{ - return m_TranslatedWarningIsSet; -} - -void GetCommentsPublicResponse::unsetTranslatedWarning() -{ - m_TranslatedWarningIsSet = false; -} -std::vector> GetCommentsPublicResponse::getComments() const -{ - return m_Comments; -} - - -void GetCommentsPublicResponse::setComments(const std::vector>& value) -{ - m_Comments = value; - m_CommentsIsSet = true; -} - -bool GetCommentsPublicResponse::commentsIsSet() const -{ - return m_CommentsIsSet; -} - -void GetCommentsPublicResponse::unsetComments() -{ - m_CommentsIsSet = false; -} -std::shared_ptr GetCommentsPublicResponse::getUser() const -{ - return m_User.get(); -} - - -void GetCommentsPublicResponse::setUser(const std::shared_ptr& value) -{ - m_User = value; -} - -bool GetCommentsPublicResponse::userIsSet() const -{ - return m_User.has_value(); -} - -void GetCommentsPublicResponse::unsetUser() -{ - m_User.reset(); -} -utility::string_t GetCommentsPublicResponse::getUrlIdClean() const -{ - return m_UrlIdClean; -} - - -void GetCommentsPublicResponse::setUrlIdClean(const utility::string_t& value) -{ - m_UrlIdClean = value; - m_UrlIdCleanIsSet = true; -} - -bool GetCommentsPublicResponse::urlIdCleanIsSet() const -{ - return m_UrlIdCleanIsSet; -} - -void GetCommentsPublicResponse::unsetUrlIdClean() -{ - m_UrlIdCleanIsSet = false; -} -int64_t GetCommentsPublicResponse::getLastGenDate() const -{ - return m_LastGenDate.get(); -} - -void GetCommentsPublicResponse::setLastGenDate(int64_t value) -{ - m_LastGenDate = value; -} - -bool GetCommentsPublicResponse::lastGenDateIsSet() const -{ - return m_LastGenDate.has_value(); -} - -void GetCommentsPublicResponse::unsetLastGenDate() -{ - m_LastGenDate.reset(); -} -bool GetCommentsPublicResponse::isIncludesPastPages() const -{ - return m_IncludesPastPages; -} - -void GetCommentsPublicResponse::setIncludesPastPages(bool value) -{ - m_IncludesPastPages = value; - m_IncludesPastPagesIsSet = true; -} - -bool GetCommentsPublicResponse::includesPastPagesIsSet() const -{ - return m_IncludesPastPagesIsSet; -} - -void GetCommentsPublicResponse::unsetIncludesPastPages() -{ - m_IncludesPastPagesIsSet = false; -} -bool GetCommentsPublicResponse::isIsDemo() const -{ - return m_IsDemo; -} - -void GetCommentsPublicResponse::setIsDemo(bool value) -{ - m_IsDemo = value; - m_IsDemoIsSet = true; -} - -bool GetCommentsPublicResponse::isDemoIsSet() const -{ - return m_IsDemoIsSet; -} - -void GetCommentsPublicResponse::unsetIsDemo() -{ - m_IsDemoIsSet = false; -} -int32_t GetCommentsPublicResponse::getCommentCount() const -{ - return m_CommentCount; -} - -void GetCommentsPublicResponse::setCommentCount(int32_t value) -{ - m_CommentCount = value; - m_CommentCountIsSet = true; -} - -bool GetCommentsPublicResponse::commentCountIsSet() const -{ - return m_CommentCountIsSet; -} - -void GetCommentsPublicResponse::unsetCommentCount() -{ - m_CommentCountIsSet = false; -} -bool GetCommentsPublicResponse::isIsSiteAdmin() const -{ - return m_IsSiteAdmin; -} - -void GetCommentsPublicResponse::setIsSiteAdmin(bool value) -{ - m_IsSiteAdmin = value; - m_IsSiteAdminIsSet = true; -} - -bool GetCommentsPublicResponse::isSiteAdminIsSet() const -{ - return m_IsSiteAdminIsSet; -} - -void GetCommentsPublicResponse::unsetIsSiteAdmin() -{ - m_IsSiteAdminIsSet = false; -} -bool GetCommentsPublicResponse::isHasBillingIssue() const -{ - return m_HasBillingIssue; -} - -void GetCommentsPublicResponse::setHasBillingIssue(bool value) -{ - m_HasBillingIssue = value; - m_HasBillingIssueIsSet = true; -} - -bool GetCommentsPublicResponse::hasBillingIssueIsSet() const -{ - return m_HasBillingIssueIsSet; -} - -void GetCommentsPublicResponse::unsetHasBillingIssue() -{ - m_HasBillingIssueIsSet = false; -} -std::map> GetCommentsPublicResponse::getModuleData() const -{ - return m_ModuleData; -} - - -void GetCommentsPublicResponse::setModuleData(const std::map>& value) -{ - m_ModuleData = value; - m_ModuleDataIsSet = true; -} - -bool GetCommentsPublicResponse::moduleDataIsSet() const -{ - return m_ModuleDataIsSet; -} - -void GetCommentsPublicResponse::unsetModuleData() -{ - m_ModuleDataIsSet = false; -} -int32_t GetCommentsPublicResponse::getPageNumber() const -{ - return m_PageNumber; -} - -void GetCommentsPublicResponse::setPageNumber(int32_t value) -{ - m_PageNumber = value; - m_PageNumberIsSet = true; -} - -bool GetCommentsPublicResponse::pageNumberIsSet() const -{ - return m_PageNumberIsSet; -} - -void GetCommentsPublicResponse::unsetPageNumber() -{ - m_PageNumberIsSet = false; -} -bool GetCommentsPublicResponse::isIsWhiteLabeled() const -{ - return m_IsWhiteLabeled; -} - -void GetCommentsPublicResponse::setIsWhiteLabeled(bool value) -{ - m_IsWhiteLabeled = value; - m_IsWhiteLabeledIsSet = true; -} - -bool GetCommentsPublicResponse::isWhiteLabeledIsSet() const -{ - return m_IsWhiteLabeledIsSet; -} - -void GetCommentsPublicResponse::unsetIsWhiteLabeled() -{ - m_IsWhiteLabeledIsSet = false; -} -bool GetCommentsPublicResponse::isIsProd() const -{ - return m_IsProd; -} - -void GetCommentsPublicResponse::setIsProd(bool value) -{ - m_IsProd = value; - m_IsProdIsSet = true; -} - -bool GetCommentsPublicResponse::isProdIsSet() const -{ - return m_IsProdIsSet; -} - -void GetCommentsPublicResponse::unsetIsProd() -{ - m_IsProdIsSet = false; -} -bool GetCommentsPublicResponse::isIsCrawler() const -{ - return m_IsCrawler; -} - -void GetCommentsPublicResponse::setIsCrawler(bool value) -{ - m_IsCrawler = value; - m_IsCrawlerIsSet = true; -} - -bool GetCommentsPublicResponse::isCrawlerIsSet() const -{ - return m_IsCrawlerIsSet; -} - -void GetCommentsPublicResponse::unsetIsCrawler() -{ - m_IsCrawlerIsSet = false; -} -int32_t GetCommentsPublicResponse::getNotificationCount() const -{ - return m_NotificationCount; -} - -void GetCommentsPublicResponse::setNotificationCount(int32_t value) -{ - m_NotificationCount = value; - m_NotificationCountIsSet = true; -} - -bool GetCommentsPublicResponse::notificationCountIsSet() const -{ - return m_NotificationCountIsSet; -} - -void GetCommentsPublicResponse::unsetNotificationCount() -{ - m_NotificationCountIsSet = false; -} -bool GetCommentsPublicResponse::isHasMore() const -{ - return m_HasMore; -} - -void GetCommentsPublicResponse::setHasMore(bool value) -{ - m_HasMore = value; - m_HasMoreIsSet = true; -} - -bool GetCommentsPublicResponse::hasMoreIsSet() const -{ - return m_HasMoreIsSet; -} - -void GetCommentsPublicResponse::unsetHasMore() -{ - m_HasMoreIsSet = false; -} -bool GetCommentsPublicResponse::isIsClosed() const -{ - return m_IsClosed; -} - -void GetCommentsPublicResponse::setIsClosed(bool value) -{ - m_IsClosed = value; - m_IsClosedIsSet = true; -} - -bool GetCommentsPublicResponse::isClosedIsSet() const -{ - return m_IsClosedIsSet; -} - -void GetCommentsPublicResponse::unsetIsClosed() -{ - m_IsClosedIsSet = false; -} -int32_t GetCommentsPublicResponse::getPresencePollState() const -{ - return m_PresencePollState; -} - -void GetCommentsPublicResponse::setPresencePollState(int32_t value) -{ - m_PresencePollState = value; - m_PresencePollStateIsSet = true; -} - -bool GetCommentsPublicResponse::presencePollStateIsSet() const -{ - return m_PresencePollStateIsSet; -} - -void GetCommentsPublicResponse::unsetPresencePollState() -{ - m_PresencePollStateIsSet = false; -} -std::shared_ptr GetCommentsPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentsPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentsPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentsPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} -utility::string_t GetCommentsPublicResponse::getUrlIdWS() const -{ - return m_UrlIdWS; -} - - -void GetCommentsPublicResponse::setUrlIdWS(const utility::string_t& value) -{ - m_UrlIdWS = value; - m_UrlIdWSIsSet = true; -} - -bool GetCommentsPublicResponse::urlIdWSIsSet() const -{ - return m_UrlIdWSIsSet; -} - -void GetCommentsPublicResponse::unsetUrlIdWS() -{ - m_UrlIdWSIsSet = false; -} -utility::string_t GetCommentsPublicResponse::getUserIdWS() const -{ - return m_UserIdWS; -} - - -void GetCommentsPublicResponse::setUserIdWS(const utility::string_t& value) -{ - m_UserIdWS = value; - m_UserIdWSIsSet = true; -} - -bool GetCommentsPublicResponse::userIdWSIsSet() const -{ - return m_UserIdWSIsSet; -} - -void GetCommentsPublicResponse::unsetUserIdWS() -{ - m_UserIdWSIsSet = false; -} -utility::string_t GetCommentsPublicResponse::getTenantIdWS() const -{ - return m_TenantIdWS; -} - - -void GetCommentsPublicResponse::setTenantIdWS(const utility::string_t& value) -{ - m_TenantIdWS = value; - m_TenantIdWSIsSet = true; -} - -bool GetCommentsPublicResponse::tenantIdWSIsSet() const -{ - return m_TenantIdWSIsSet; -} - -void GetCommentsPublicResponse::unsetTenantIdWS() -{ - m_TenantIdWSIsSet = false; -} -utility::string_t GetCommentsPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentsPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentsPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentsPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentsPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentsPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentsPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentsPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentsPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentsPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentsPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentsPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentsPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentsPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentsPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentsPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCommentsResponse.cpp b/client/src/model/GetCommentsResponse.cpp deleted file mode 100644 index b2fe163..0000000 --- a/client/src/model/GetCommentsResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCommentsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCommentsResponse::GetCommentsResponse() -{ - m_StatusIsSet = false; - m_CommentsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCommentsResponse::~GetCommentsResponse() -{ -} - -void GetCommentsResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetCommentsResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCommentsResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromJson(fieldValue, refVal_setComments); - setComments(refVal_setComments); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCommentsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCommentsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); - setComments(refVal_setComments); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetCommentsResponse::getStatus() const -{ - return m_Status; -} - - -void GetCommentsResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCommentsResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCommentsResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetCommentsResponse::getComments() const -{ - return m_Comments; -} - - -void GetCommentsResponse::setComments(const std::vector>& value) -{ - m_Comments = value; - m_CommentsIsSet = true; -} - -bool GetCommentsResponse::commentsIsSet() const -{ - return m_CommentsIsSet; -} - -void GetCommentsResponse::unsetComments() -{ - m_CommentsIsSet = false; -} -utility::string_t GetCommentsResponse::getReason() const -{ - return m_Reason; -} - - -void GetCommentsResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCommentsResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCommentsResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCommentsResponse::getCode() const -{ - return m_Code; -} - - -void GetCommentsResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCommentsResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCommentsResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCommentsResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCommentsResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCommentsResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCommentsResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCommentsResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCommentsResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCommentsResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCommentsResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCommentsResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCommentsResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCommentsResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCommentsResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCommentsResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCommentsResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCommentsResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCommentsResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCommentsResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCommentsResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCommentsResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCommentsResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCountResponse.cpp b/client/src/model/GetCountResponse.cpp deleted file mode 100644 index d1e09e0..0000000 --- a/client/src/model/GetCountResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCountResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCountResponse::GetCountResponse() -{ - m_StatusIsSet = false; - m_Count = 0.0; - m_CountIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCountResponse::~GetCountResponse() -{ -} - -void GetCountResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetCountResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCountResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); - if(!fieldValue.is_null()) - { - double refVal_setCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCount); - setCount(refVal_setCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCountResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCountResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - double refVal_setCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); - setCount(refVal_setCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetCountResponse::getStatus() const -{ - return m_Status; -} - - -void GetCountResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCountResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCountResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -double GetCountResponse::getCount() const -{ - return m_Count; -} - -void GetCountResponse::setCount(double value) -{ - m_Count = value; - m_CountIsSet = true; -} - -bool GetCountResponse::countIsSet() const -{ - return m_CountIsSet; -} - -void GetCountResponse::unsetCount() -{ - m_CountIsSet = false; -} -utility::string_t GetCountResponse::getReason() const -{ - return m_Reason; -} - - -void GetCountResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCountResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCountResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCountResponse::getCode() const -{ - return m_Code; -} - - -void GetCountResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCountResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCountResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCountResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCountResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCountResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCountResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCountResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCountResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCountResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCountResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCountResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCountResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCountResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCountResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCountResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCountResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCountResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCountResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCountResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCountResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCountResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCountResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetCountsResponse.cpp b/client/src/model/GetCountsResponse.cpp deleted file mode 100644 index 0289fea..0000000 --- a/client/src/model/GetCountsResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetCountsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetCountsResponse::GetCountsResponse() -{ - m_TotalCount = 0.0; - m_TotalCountIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetCountsResponse::~GetCountsResponse() -{ -} - -void GetCountsResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetCountsResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_TotalCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("totalCount"))] = ModelBase::toJson(m_TotalCount); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetCountsResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("totalCount"))); - if(!fieldValue.is_null()) - { - double refVal_setTotalCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setTotalCount); - setTotalCount(refVal_setTotalCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetCountsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_TotalCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("totalCount")), m_TotalCount)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetCountsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) - { - double refVal_setTotalCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("totalCount"))), refVal_setTotalCount ); - setTotalCount(refVal_setTotalCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -double GetCountsResponse::getTotalCount() const -{ - return m_TotalCount; -} - -void GetCountsResponse::setTotalCount(double value) -{ - m_TotalCount = value; - m_TotalCountIsSet = true; -} - -bool GetCountsResponse::totalCountIsSet() const -{ - return m_TotalCountIsSet; -} - -void GetCountsResponse::unsetTotalCount() -{ - m_TotalCountIsSet = false; -} -std::shared_ptr GetCountsResponse::getStatus() const -{ - return m_Status; -} - - -void GetCountsResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetCountsResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetCountsResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetCountsResponse::getReason() const -{ - return m_Reason; -} - - -void GetCountsResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetCountsResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetCountsResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetCountsResponse::getCode() const -{ - return m_Code; -} - - -void GetCountsResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetCountsResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetCountsResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetCountsResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetCountsResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetCountsResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetCountsResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetCountsResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetCountsResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetCountsResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetCountsResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetCountsResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetCountsResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetCountsResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetCountsResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetCountsResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetCountsResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetCountsResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetCountsResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetCountsResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetCountsResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetCountsResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetCountsResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetEmailTemplateDefinitionsResponse_1.cpp b/client/src/model/GetEmailTemplateDefinitionsResponse_1.cpp deleted file mode 100644 index 76b7479..0000000 --- a/client/src/model/GetEmailTemplateDefinitionsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetEmailTemplateDefinitionsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetEmailTemplateDefinitionsResponse_1::GetEmailTemplateDefinitionsResponse_1() -{ - m_StatusIsSet = false; - m_DefinitionsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetEmailTemplateDefinitionsResponse_1::~GetEmailTemplateDefinitionsResponse_1() -{ -} - -void GetEmailTemplateDefinitionsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetEmailTemplateDefinitionsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_DefinitionsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("definitions"))] = ModelBase::toJson(m_Definitions); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetEmailTemplateDefinitionsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("definitions")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("definitions"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setDefinitions; - ok &= ModelBase::fromJson(fieldValue, refVal_setDefinitions); - setDefinitions(refVal_setDefinitions); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetEmailTemplateDefinitionsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_DefinitionsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("definitions")), m_Definitions)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetEmailTemplateDefinitionsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("definitions")))) - { - std::vector> refVal_setDefinitions; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("definitions"))), refVal_setDefinitions ); - setDefinitions(refVal_setDefinitions); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetEmailTemplateDefinitionsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetEmailTemplateDefinitionsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetEmailTemplateDefinitionsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetEmailTemplateDefinitionsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetEmailTemplateDefinitionsResponse_1::getDefinitions() const -{ - return m_Definitions; -} - - -void GetEmailTemplateDefinitionsResponse_1::setDefinitions(const std::vector>& value) -{ - m_Definitions = value; - m_DefinitionsIsSet = true; -} - -bool GetEmailTemplateDefinitionsResponse_1::definitionsIsSet() const -{ - return m_DefinitionsIsSet; -} - -void GetEmailTemplateDefinitionsResponse_1::unsetDefinitions() -{ - m_DefinitionsIsSet = false; -} -utility::string_t GetEmailTemplateDefinitionsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetEmailTemplateDefinitionsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetEmailTemplateDefinitionsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetEmailTemplateDefinitionsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetEmailTemplateDefinitionsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetEmailTemplateDefinitionsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetEmailTemplateDefinitionsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetEmailTemplateDefinitionsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetEmailTemplateDefinitionsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetEmailTemplateDefinitionsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetEmailTemplateDefinitionsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetEmailTemplateDefinitionsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetEmailTemplateDefinitionsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetEmailTemplateDefinitionsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetEmailTemplateDefinitionsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetEmailTemplateDefinitionsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetEmailTemplateDefinitionsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetEmailTemplateDefinitionsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetEmailTemplateDefinitionsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetEmailTemplateDefinitionsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetEmailTemplateDefinitionsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetEmailTemplateDefinitionsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetEmailTemplateDefinitionsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetEmailTemplateDefinitionsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetEmailTemplateDefinitionsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetEmailTemplateDefinitionsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetEmailTemplateDefinitionsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetEmailTemplateDefinitionsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetEmailTemplateRenderErrorsResponse_1.cpp b/client/src/model/GetEmailTemplateRenderErrorsResponse_1.cpp deleted file mode 100644 index 29ed2d3..0000000 --- a/client/src/model/GetEmailTemplateRenderErrorsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetEmailTemplateRenderErrorsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetEmailTemplateRenderErrorsResponse_1::GetEmailTemplateRenderErrorsResponse_1() -{ - m_StatusIsSet = false; - m_RenderErrorsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetEmailTemplateRenderErrorsResponse_1::~GetEmailTemplateRenderErrorsResponse_1() -{ -} - -void GetEmailTemplateRenderErrorsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetEmailTemplateRenderErrorsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_RenderErrorsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("renderErrors"))] = ModelBase::toJson(m_RenderErrors); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetEmailTemplateRenderErrorsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("renderErrors")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("renderErrors"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setRenderErrors; - ok &= ModelBase::fromJson(fieldValue, refVal_setRenderErrors); - setRenderErrors(refVal_setRenderErrors); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetEmailTemplateRenderErrorsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_RenderErrorsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("renderErrors")), m_RenderErrors)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetEmailTemplateRenderErrorsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("renderErrors")))) - { - std::vector> refVal_setRenderErrors; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("renderErrors"))), refVal_setRenderErrors ); - setRenderErrors(refVal_setRenderErrors); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetEmailTemplateRenderErrorsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetEmailTemplateRenderErrorsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetEmailTemplateRenderErrorsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetEmailTemplateRenderErrorsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetEmailTemplateRenderErrorsResponse_1::getRenderErrors() const -{ - return m_RenderErrors; -} - - -void GetEmailTemplateRenderErrorsResponse_1::setRenderErrors(const std::vector>& value) -{ - m_RenderErrors = value; - m_RenderErrorsIsSet = true; -} - -bool GetEmailTemplateRenderErrorsResponse_1::renderErrorsIsSet() const -{ - return m_RenderErrorsIsSet; -} - -void GetEmailTemplateRenderErrorsResponse_1::unsetRenderErrors() -{ - m_RenderErrorsIsSet = false; -} -utility::string_t GetEmailTemplateRenderErrorsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetEmailTemplateRenderErrorsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetEmailTemplateRenderErrorsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetEmailTemplateRenderErrorsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetEmailTemplateRenderErrorsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetEmailTemplateRenderErrorsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetEmailTemplateRenderErrorsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetEmailTemplateRenderErrorsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetEmailTemplateRenderErrorsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetEmailTemplateRenderErrorsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetEmailTemplateRenderErrorsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetEmailTemplateRenderErrorsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetEmailTemplateRenderErrorsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetEmailTemplateRenderErrorsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetEmailTemplateRenderErrorsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetEmailTemplateRenderErrorsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetEmailTemplateRenderErrorsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetEmailTemplateRenderErrorsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetEmailTemplateRenderErrorsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetEmailTemplateRenderErrorsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetEmailTemplateRenderErrorsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetEmailTemplateRenderErrorsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetEmailTemplateRenderErrorsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetEmailTemplateRenderErrorsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetEmailTemplateRenderErrorsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetEmailTemplateRenderErrorsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetEmailTemplateRenderErrorsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetEmailTemplateRenderErrorsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetEmailTemplateResponse_1.cpp b/client/src/model/GetEmailTemplateResponse_1.cpp deleted file mode 100644 index b392373..0000000 --- a/client/src/model/GetEmailTemplateResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetEmailTemplateResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetEmailTemplateResponse_1::GetEmailTemplateResponse_1() -{ - m_StatusIsSet = false; - m_EmailTemplateIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetEmailTemplateResponse_1::~GetEmailTemplateResponse_1() -{ -} - -void GetEmailTemplateResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetEmailTemplateResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_EmailTemplateIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))] = ModelBase::toJson(m_EmailTemplate); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetEmailTemplateResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setEmailTemplate; - ok &= ModelBase::fromJson(fieldValue, refVal_setEmailTemplate); - setEmailTemplate(refVal_setEmailTemplate); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetEmailTemplateResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_EmailTemplateIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailTemplate")), m_EmailTemplate)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetEmailTemplateResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate")))) - { - std::shared_ptr refVal_setEmailTemplate; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplate"))), refVal_setEmailTemplate ); - setEmailTemplate(refVal_setEmailTemplate); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetEmailTemplateResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetEmailTemplateResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetEmailTemplateResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetEmailTemplateResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetEmailTemplateResponse_1::getEmailTemplate() const -{ - return m_EmailTemplate; -} - - -void GetEmailTemplateResponse_1::setEmailTemplate(const std::shared_ptr& value) -{ - m_EmailTemplate = value; - m_EmailTemplateIsSet = true; -} - -bool GetEmailTemplateResponse_1::emailTemplateIsSet() const -{ - return m_EmailTemplateIsSet; -} - -void GetEmailTemplateResponse_1::unsetEmailTemplate() -{ - m_EmailTemplateIsSet = false; -} -utility::string_t GetEmailTemplateResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetEmailTemplateResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetEmailTemplateResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetEmailTemplateResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetEmailTemplateResponse_1::getCode() const -{ - return m_Code; -} - - -void GetEmailTemplateResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetEmailTemplateResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetEmailTemplateResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetEmailTemplateResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetEmailTemplateResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetEmailTemplateResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetEmailTemplateResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetEmailTemplateResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetEmailTemplateResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetEmailTemplateResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetEmailTemplateResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetEmailTemplateResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetEmailTemplateResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetEmailTemplateResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetEmailTemplateResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetEmailTemplateResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetEmailTemplateResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetEmailTemplateResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetEmailTemplateResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetEmailTemplateResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetEmailTemplateResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetEmailTemplateResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetEmailTemplateResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetEmailTemplatesResponse_1.cpp b/client/src/model/GetEmailTemplatesResponse_1.cpp deleted file mode 100644 index 6352c26..0000000 --- a/client/src/model/GetEmailTemplatesResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetEmailTemplatesResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetEmailTemplatesResponse_1::GetEmailTemplatesResponse_1() -{ - m_StatusIsSet = false; - m_EmailTemplatesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetEmailTemplatesResponse_1::~GetEmailTemplatesResponse_1() -{ -} - -void GetEmailTemplatesResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetEmailTemplatesResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_EmailTemplatesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))] = ModelBase::toJson(m_EmailTemplates); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetEmailTemplatesResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailTemplates")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setEmailTemplates; - ok &= ModelBase::fromJson(fieldValue, refVal_setEmailTemplates); - setEmailTemplates(refVal_setEmailTemplates); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetEmailTemplatesResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_EmailTemplatesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailTemplates")), m_EmailTemplates)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetEmailTemplatesResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplates")))) - { - std::vector> refVal_setEmailTemplates; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailTemplates"))), refVal_setEmailTemplates ); - setEmailTemplates(refVal_setEmailTemplates); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetEmailTemplatesResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetEmailTemplatesResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetEmailTemplatesResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetEmailTemplatesResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetEmailTemplatesResponse_1::getEmailTemplates() const -{ - return m_EmailTemplates; -} - - -void GetEmailTemplatesResponse_1::setEmailTemplates(const std::vector>& value) -{ - m_EmailTemplates = value; - m_EmailTemplatesIsSet = true; -} - -bool GetEmailTemplatesResponse_1::emailTemplatesIsSet() const -{ - return m_EmailTemplatesIsSet; -} - -void GetEmailTemplatesResponse_1::unsetEmailTemplates() -{ - m_EmailTemplatesIsSet = false; -} -utility::string_t GetEmailTemplatesResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetEmailTemplatesResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetEmailTemplatesResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetEmailTemplatesResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetEmailTemplatesResponse_1::getCode() const -{ - return m_Code; -} - - -void GetEmailTemplatesResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetEmailTemplatesResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetEmailTemplatesResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetEmailTemplatesResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetEmailTemplatesResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetEmailTemplatesResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetEmailTemplatesResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetEmailTemplatesResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetEmailTemplatesResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetEmailTemplatesResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetEmailTemplatesResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetEmailTemplatesResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetEmailTemplatesResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetEmailTemplatesResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetEmailTemplatesResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetEmailTemplatesResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetEmailTemplatesResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetEmailTemplatesResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetEmailTemplatesResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetEmailTemplatesResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetEmailTemplatesResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetEmailTemplatesResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetEmailTemplatesResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetEventLogResponse_1.cpp b/client/src/model/GetEventLogResponse_1.cpp deleted file mode 100644 index 05deda1..0000000 --- a/client/src/model/GetEventLogResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetEventLogResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetEventLogResponse_1::GetEventLogResponse_1() -{ - m_EventsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetEventLogResponse_1::~GetEventLogResponse_1() -{ -} - -void GetEventLogResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetEventLogResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_EventsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("events"))] = ModelBase::toJson(m_Events); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetEventLogResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("events")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("events"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setEvents; - ok &= ModelBase::fromJson(fieldValue, refVal_setEvents); - setEvents(refVal_setEvents); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetEventLogResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_EventsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("events")), m_Events)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetEventLogResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("events")))) - { - std::vector> refVal_setEvents; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("events"))), refVal_setEvents ); - setEvents(refVal_setEvents); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetEventLogResponse_1::getEvents() const -{ - return m_Events; -} - - -void GetEventLogResponse_1::setEvents(const std::vector>& value) -{ - m_Events = value; - m_EventsIsSet = true; -} - -bool GetEventLogResponse_1::eventsIsSet() const -{ - return m_EventsIsSet; -} - -void GetEventLogResponse_1::unsetEvents() -{ - m_EventsIsSet = false; -} -std::shared_ptr GetEventLogResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetEventLogResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetEventLogResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetEventLogResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetEventLogResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetEventLogResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetEventLogResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetEventLogResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetEventLogResponse_1::getCode() const -{ - return m_Code; -} - - -void GetEventLogResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetEventLogResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetEventLogResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetEventLogResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetEventLogResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetEventLogResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetEventLogResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetEventLogResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetEventLogResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetEventLogResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetEventLogResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetEventLogResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetEventLogResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetEventLogResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetEventLogResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetEventLogResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetEventLogResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetEventLogResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetEventLogResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetEventLogResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetEventLogResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetEventLogResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetEventLogResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetFeedPostsPublicResponse.cpp b/client/src/model/GetFeedPostsPublicResponse.cpp deleted file mode 100644 index 3ffd7d2..0000000 --- a/client/src/model/GetFeedPostsPublicResponse.cpp +++ /dev/null @@ -1,752 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetFeedPostsPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetFeedPostsPublicResponse::GetFeedPostsPublicResponse() -{ - m_MyReactsIsSet = false; - m_StatusIsSet = false; - m_FeedPostsIsSet = false; - m_UrlIdWS = utility::conversions::to_string_t(""); - m_UrlIdWSIsSet = false; - m_UserIdWS = utility::conversions::to_string_t(""); - m_UserIdWSIsSet = false; - m_TenantIdWS = utility::conversions::to_string_t(""); - m_TenantIdWSIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetFeedPostsPublicResponse::~GetFeedPostsPublicResponse() -{ -} - -void GetFeedPostsPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetFeedPostsPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_MyReactsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("myReacts"))] = ModelBase::toJson(m_MyReacts); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_FeedPostsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); - } - if(m_User.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); - } - if(m_UrlIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); - } - if(m_UserIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userIdWS"))] = ModelBase::toJson(m_UserIdWS); - } - if(m_TenantIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))] = ModelBase::toJson(m_TenantIdWS); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetFeedPostsPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("myReacts")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("myReacts"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setMyReacts; - ok &= ModelBase::fromJson(fieldValue, refVal_setMyReacts); - setMyReacts(refVal_setMyReacts); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setFeedPosts; - ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPosts); - setFeedPosts(refVal_setFeedPosts); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUrlIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdWS); - setUrlIdWS(refVal_setUrlIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdWS); - setUserIdWS(refVal_setUserIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTenantIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantIdWS); - setTenantIdWS(refVal_setTenantIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetFeedPostsPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_MyReactsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("myReacts")), m_MyReacts)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_FeedPostsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPosts")), m_FeedPosts)); - } - if(m_User.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); - } - if(m_UrlIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdWS")), m_UrlIdWS)); - } - if(m_UserIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdWS")), m_UserIdWS)); - } - if(m_TenantIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")), m_TenantIdWS)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetFeedPostsPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("myReacts")))) - { - std::map> refVal_setMyReacts; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("myReacts"))), refVal_setMyReacts ); - setMyReacts(refVal_setMyReacts); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) - { - std::vector> refVal_setFeedPosts; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))), refVal_setFeedPosts ); - setFeedPosts(refVal_setFeedPosts); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) - { - utility::string_t refVal_setUrlIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))), refVal_setUrlIdWS ); - setUrlIdWS(refVal_setUrlIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS")))) - { - utility::string_t refVal_setUserIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdWS"))), refVal_setUserIdWS ); - setUserIdWS(refVal_setUserIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS")))) - { - utility::string_t refVal_setTenantIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantIdWS"))), refVal_setTenantIdWS ); - setTenantIdWS(refVal_setTenantIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::map> GetFeedPostsPublicResponse::getMyReacts() const -{ - return m_MyReacts; -} - - -void GetFeedPostsPublicResponse::setMyReacts(const std::map>& value) -{ - m_MyReacts = value; - m_MyReactsIsSet = true; -} - -bool GetFeedPostsPublicResponse::myReactsIsSet() const -{ - return m_MyReactsIsSet; -} - -void GetFeedPostsPublicResponse::unsetMyReacts() -{ - m_MyReactsIsSet = false; -} -std::shared_ptr GetFeedPostsPublicResponse::getStatus() const -{ - return m_Status; -} - - -void GetFeedPostsPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetFeedPostsPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetFeedPostsPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetFeedPostsPublicResponse::getFeedPosts() const -{ - return m_FeedPosts; -} - - -void GetFeedPostsPublicResponse::setFeedPosts(const std::vector>& value) -{ - m_FeedPosts = value; - m_FeedPostsIsSet = true; -} - -bool GetFeedPostsPublicResponse::feedPostsIsSet() const -{ - return m_FeedPostsIsSet; -} - -void GetFeedPostsPublicResponse::unsetFeedPosts() -{ - m_FeedPostsIsSet = false; -} -std::shared_ptr GetFeedPostsPublicResponse::getUser() const -{ - return m_User.get(); -} - - -void GetFeedPostsPublicResponse::setUser(const std::shared_ptr& value) -{ - m_User = value; -} - -bool GetFeedPostsPublicResponse::userIsSet() const -{ - return m_User.has_value(); -} - -void GetFeedPostsPublicResponse::unsetUser() -{ - m_User.reset(); -} -utility::string_t GetFeedPostsPublicResponse::getUrlIdWS() const -{ - return m_UrlIdWS; -} - - -void GetFeedPostsPublicResponse::setUrlIdWS(const utility::string_t& value) -{ - m_UrlIdWS = value; - m_UrlIdWSIsSet = true; -} - -bool GetFeedPostsPublicResponse::urlIdWSIsSet() const -{ - return m_UrlIdWSIsSet; -} - -void GetFeedPostsPublicResponse::unsetUrlIdWS() -{ - m_UrlIdWSIsSet = false; -} -utility::string_t GetFeedPostsPublicResponse::getUserIdWS() const -{ - return m_UserIdWS; -} - - -void GetFeedPostsPublicResponse::setUserIdWS(const utility::string_t& value) -{ - m_UserIdWS = value; - m_UserIdWSIsSet = true; -} - -bool GetFeedPostsPublicResponse::userIdWSIsSet() const -{ - return m_UserIdWSIsSet; -} - -void GetFeedPostsPublicResponse::unsetUserIdWS() -{ - m_UserIdWSIsSet = false; -} -utility::string_t GetFeedPostsPublicResponse::getTenantIdWS() const -{ - return m_TenantIdWS; -} - - -void GetFeedPostsPublicResponse::setTenantIdWS(const utility::string_t& value) -{ - m_TenantIdWS = value; - m_TenantIdWSIsSet = true; -} - -bool GetFeedPostsPublicResponse::tenantIdWSIsSet() const -{ - return m_TenantIdWSIsSet; -} - -void GetFeedPostsPublicResponse::unsetTenantIdWS() -{ - m_TenantIdWSIsSet = false; -} -utility::string_t GetFeedPostsPublicResponse::getReason() const -{ - return m_Reason; -} - - -void GetFeedPostsPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetFeedPostsPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetFeedPostsPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetFeedPostsPublicResponse::getCode() const -{ - return m_Code; -} - - -void GetFeedPostsPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetFeedPostsPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetFeedPostsPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetFeedPostsPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetFeedPostsPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetFeedPostsPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetFeedPostsPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetFeedPostsPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetFeedPostsPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetFeedPostsPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetFeedPostsPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetFeedPostsPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetFeedPostsPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetFeedPostsPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetFeedPostsPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetFeedPostsPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetFeedPostsPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetFeedPostsPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetFeedPostsPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetFeedPostsPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetFeedPostsPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetFeedPostsPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetFeedPostsPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetFeedPostsResponse_1.cpp b/client/src/model/GetFeedPostsResponse_1.cpp deleted file mode 100644 index 14132d9..0000000 --- a/client/src/model/GetFeedPostsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetFeedPostsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetFeedPostsResponse_1::GetFeedPostsResponse_1() -{ - m_StatusIsSet = false; - m_FeedPostsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetFeedPostsResponse_1::~GetFeedPostsResponse_1() -{ -} - -void GetFeedPostsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetFeedPostsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_FeedPostsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("feedPosts"))] = ModelBase::toJson(m_FeedPosts); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetFeedPostsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setFeedPosts; - ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPosts); - setFeedPosts(refVal_setFeedPosts); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetFeedPostsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_FeedPostsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPosts")), m_FeedPosts)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetFeedPostsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts")))) - { - std::vector> refVal_setFeedPosts; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPosts"))), refVal_setFeedPosts ); - setFeedPosts(refVal_setFeedPosts); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetFeedPostsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetFeedPostsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetFeedPostsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetFeedPostsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetFeedPostsResponse_1::getFeedPosts() const -{ - return m_FeedPosts; -} - - -void GetFeedPostsResponse_1::setFeedPosts(const std::vector>& value) -{ - m_FeedPosts = value; - m_FeedPostsIsSet = true; -} - -bool GetFeedPostsResponse_1::feedPostsIsSet() const -{ - return m_FeedPostsIsSet; -} - -void GetFeedPostsResponse_1::unsetFeedPosts() -{ - m_FeedPostsIsSet = false; -} -utility::string_t GetFeedPostsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetFeedPostsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetFeedPostsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetFeedPostsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetFeedPostsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetFeedPostsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetFeedPostsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetFeedPostsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetFeedPostsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetFeedPostsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetFeedPostsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetFeedPostsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetFeedPostsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetFeedPostsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetFeedPostsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetFeedPostsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetFeedPostsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetFeedPostsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetFeedPostsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetFeedPostsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetFeedPostsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetFeedPostsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetFeedPostsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetFeedPostsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetFeedPostsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetFeedPostsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetFeedPostsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetFeedPostsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetFeedPostsStatsResponse.cpp b/client/src/model/GetFeedPostsStatsResponse.cpp deleted file mode 100644 index a543fe9..0000000 --- a/client/src/model/GetFeedPostsStatsResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetFeedPostsStatsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetFeedPostsStatsResponse::GetFeedPostsStatsResponse() -{ - m_StatusIsSet = false; - m_StatsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetFeedPostsStatsResponse::~GetFeedPostsStatsResponse() -{ -} - -void GetFeedPostsStatsResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetFeedPostsStatsResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_StatsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetFeedPostsStatsResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("stats")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("stats"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setStats; - ok &= ModelBase::fromJson(fieldValue, refVal_setStats); - setStats(refVal_setStats); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetFeedPostsStatsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_StatsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("stats")), m_Stats)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetFeedPostsStatsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("stats")))) - { - std::map> refVal_setStats; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("stats"))), refVal_setStats ); - setStats(refVal_setStats); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetFeedPostsStatsResponse::getStatus() const -{ - return m_Status; -} - - -void GetFeedPostsStatsResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetFeedPostsStatsResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetFeedPostsStatsResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map> GetFeedPostsStatsResponse::getStats() const -{ - return m_Stats; -} - - -void GetFeedPostsStatsResponse::setStats(const std::map>& value) -{ - m_Stats = value; - m_StatsIsSet = true; -} - -bool GetFeedPostsStatsResponse::statsIsSet() const -{ - return m_StatsIsSet; -} - -void GetFeedPostsStatsResponse::unsetStats() -{ - m_StatsIsSet = false; -} -utility::string_t GetFeedPostsStatsResponse::getReason() const -{ - return m_Reason; -} - - -void GetFeedPostsStatsResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetFeedPostsStatsResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetFeedPostsStatsResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetFeedPostsStatsResponse::getCode() const -{ - return m_Code; -} - - -void GetFeedPostsStatsResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetFeedPostsStatsResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetFeedPostsStatsResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetFeedPostsStatsResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetFeedPostsStatsResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetFeedPostsStatsResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetFeedPostsStatsResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetFeedPostsStatsResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetFeedPostsStatsResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetFeedPostsStatsResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetFeedPostsStatsResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetFeedPostsStatsResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetFeedPostsStatsResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetFeedPostsStatsResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetFeedPostsStatsResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetFeedPostsStatsResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetFeedPostsStatsResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetFeedPostsStatsResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetFeedPostsStatsResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetFeedPostsStatsResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetFeedPostsStatsResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetFeedPostsStatsResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetFeedPostsStatsResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetGifLargeResponse.cpp b/client/src/model/GetGifLargeResponse.cpp deleted file mode 100644 index 26969e8..0000000 --- a/client/src/model/GetGifLargeResponse.cpp +++ /dev/null @@ -1,512 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetGifLargeResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetGifLargeResponse::GetGifLargeResponse() -{ - m_Src = utility::conversions::to_string_t(""); - m_SrcIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetGifLargeResponse::~GetGifLargeResponse() -{ -} - -void GetGifLargeResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetGifLargeResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_SrcIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("src"))] = ModelBase::toJson(m_Src); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetGifLargeResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("src")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("src"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSrc; - ok &= ModelBase::fromJson(fieldValue, refVal_setSrc); - setSrc(refVal_setSrc); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetGifLargeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_SrcIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("src")), m_Src)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetGifLargeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("src")))) - { - utility::string_t refVal_setSrc; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("src"))), refVal_setSrc ); - setSrc(refVal_setSrc); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t GetGifLargeResponse::getSrc() const -{ - return m_Src; -} - - -void GetGifLargeResponse::setSrc(const utility::string_t& value) -{ - m_Src = value; - m_SrcIsSet = true; -} - -bool GetGifLargeResponse::srcIsSet() const -{ - return m_SrcIsSet; -} - -void GetGifLargeResponse::unsetSrc() -{ - m_SrcIsSet = false; -} -std::shared_ptr GetGifLargeResponse::getStatus() const -{ - return m_Status; -} - - -void GetGifLargeResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetGifLargeResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetGifLargeResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetGifLargeResponse::getReason() const -{ - return m_Reason; -} - - -void GetGifLargeResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetGifLargeResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetGifLargeResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetGifLargeResponse::getCode() const -{ - return m_Code; -} - - -void GetGifLargeResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetGifLargeResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetGifLargeResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetGifLargeResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetGifLargeResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetGifLargeResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetGifLargeResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetGifLargeResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetGifLargeResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetGifLargeResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetGifLargeResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetGifLargeResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetGifLargeResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetGifLargeResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetGifLargeResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetGifLargeResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetGifLargeResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetGifLargeResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetGifLargeResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetGifLargeResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetGifLargeResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetGifLargeResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetGifLargeResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetGifsSearchResponse.cpp b/client/src/model/GetGifsSearchResponse.cpp index 817e2a6..0a5c149 100644 --- a/client/src/model/GetGifsSearchResponse.cpp +++ b/client/src/model/GetGifsSearchResponse.cpp @@ -24,17 +24,6 @@ GetGifsSearchResponse::GetGifsSearchResponse() m_StatusIsSet = false; m_Code = utility::conversions::to_string_t(""); m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; } GetGifsSearchResponse::~GetGifsSearchResponse() @@ -64,36 +53,6 @@ web::json::value GetGifsSearchResponse::toJson() const val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } return val; } @@ -134,72 +93,6 @@ bool GetGifsSearchResponse::fromJson(const web::json::value& val) } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } return ok; } @@ -222,30 +115,6 @@ void GetGifsSearchResponse::toMultipart(std::shared_ptr multi { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } } bool GetGifsSearchResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -275,42 +144,6 @@ bool GetGifsSearchResponse::fromMultiPart(std::shared_ptr mul ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); setCode(refVal_setCode); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } return ok; } @@ -378,130 +211,6 @@ void GetGifsSearchResponse::unsetCode() { m_CodeIsSet = false; } -utility::string_t GetGifsSearchResponse::getReason() const -{ - return m_Reason; -} - - -void GetGifsSearchResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetGifsSearchResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetGifsSearchResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetGifsSearchResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetGifsSearchResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetGifsSearchResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetGifsSearchResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetGifsSearchResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetGifsSearchResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetGifsSearchResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetGifsSearchResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetGifsSearchResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetGifsSearchResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetGifsSearchResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetGifsSearchResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetGifsSearchResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetGifsSearchResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetGifsSearchResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetGifsSearchResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetGifsSearchResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetGifsSearchResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetGifsSearchResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetGifsSearchResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} } } diff --git a/client/src/model/GetGlobalEventLogResponse.cpp b/client/src/model/GetGlobalEventLogResponse.cpp deleted file mode 100644 index 1903c2f..0000000 --- a/client/src/model/GetGlobalEventLogResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetGlobalEventLogResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetGlobalEventLogResponse::GetGlobalEventLogResponse() -{ - m_EventsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetGlobalEventLogResponse::~GetGlobalEventLogResponse() -{ -} - -void GetGlobalEventLogResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetGlobalEventLogResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_EventsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("events"))] = ModelBase::toJson(m_Events); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetGlobalEventLogResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("events")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("events"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setEvents; - ok &= ModelBase::fromJson(fieldValue, refVal_setEvents); - setEvents(refVal_setEvents); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetGlobalEventLogResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_EventsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("events")), m_Events)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetGlobalEventLogResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("events")))) - { - std::vector> refVal_setEvents; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("events"))), refVal_setEvents ); - setEvents(refVal_setEvents); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetGlobalEventLogResponse::getEvents() const -{ - return m_Events; -} - - -void GetGlobalEventLogResponse::setEvents(const std::vector>& value) -{ - m_Events = value; - m_EventsIsSet = true; -} - -bool GetGlobalEventLogResponse::eventsIsSet() const -{ - return m_EventsIsSet; -} - -void GetGlobalEventLogResponse::unsetEvents() -{ - m_EventsIsSet = false; -} -std::shared_ptr GetGlobalEventLogResponse::getStatus() const -{ - return m_Status; -} - - -void GetGlobalEventLogResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetGlobalEventLogResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetGlobalEventLogResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetGlobalEventLogResponse::getReason() const -{ - return m_Reason; -} - - -void GetGlobalEventLogResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetGlobalEventLogResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetGlobalEventLogResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetGlobalEventLogResponse::getCode() const -{ - return m_Code; -} - - -void GetGlobalEventLogResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetGlobalEventLogResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetGlobalEventLogResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetGlobalEventLogResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetGlobalEventLogResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetGlobalEventLogResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetGlobalEventLogResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetGlobalEventLogResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetGlobalEventLogResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetGlobalEventLogResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetGlobalEventLogResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetGlobalEventLogResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetGlobalEventLogResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetGlobalEventLogResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetGlobalEventLogResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetGlobalEventLogResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetGlobalEventLogResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetGlobalEventLogResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetGlobalEventLogResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetGlobalEventLogResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetGlobalEventLogResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetGlobalEventLogResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetGlobalEventLogResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetHashTagsResponse_1.cpp b/client/src/model/GetHashTagsResponse_1.cpp deleted file mode 100644 index d586229..0000000 --- a/client/src/model/GetHashTagsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetHashTagsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetHashTagsResponse_1::GetHashTagsResponse_1() -{ - m_StatusIsSet = false; - m_HashTagsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetHashTagsResponse_1::~GetHashTagsResponse_1() -{ -} - -void GetHashTagsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetHashTagsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_HashTagsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hashTags"))] = ModelBase::toJson(m_HashTags); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetHashTagsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hashTags")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hashTags"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setHashTags; - ok &= ModelBase::fromJson(fieldValue, refVal_setHashTags); - setHashTags(refVal_setHashTags); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetHashTagsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_HashTagsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hashTags")), m_HashTags)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetHashTagsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hashTags")))) - { - std::vector> refVal_setHashTags; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hashTags"))), refVal_setHashTags ); - setHashTags(refVal_setHashTags); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetHashTagsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetHashTagsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetHashTagsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetHashTagsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetHashTagsResponse_1::getHashTags() const -{ - return m_HashTags; -} - - -void GetHashTagsResponse_1::setHashTags(const std::vector>& value) -{ - m_HashTags = value; - m_HashTagsIsSet = true; -} - -bool GetHashTagsResponse_1::hashTagsIsSet() const -{ - return m_HashTagsIsSet; -} - -void GetHashTagsResponse_1::unsetHashTags() -{ - m_HashTagsIsSet = false; -} -utility::string_t GetHashTagsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetHashTagsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetHashTagsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetHashTagsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetHashTagsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetHashTagsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetHashTagsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetHashTagsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetHashTagsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetHashTagsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetHashTagsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetHashTagsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetHashTagsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetHashTagsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetHashTagsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetHashTagsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetHashTagsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetHashTagsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetHashTagsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetHashTagsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetHashTagsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetHashTagsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetHashTagsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetHashTagsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetHashTagsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetHashTagsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetHashTagsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetHashTagsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetLogsResponse.cpp b/client/src/model/GetLogsResponse.cpp deleted file mode 100644 index 6fa92b5..0000000 --- a/client/src/model/GetLogsResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetLogsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetLogsResponse::GetLogsResponse() -{ - m_LogsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetLogsResponse::~GetLogsResponse() -{ -} - -void GetLogsResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetLogsResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_LogsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("logs"))] = ModelBase::toJson(m_Logs); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetLogsResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("logs")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("logs"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setLogs; - ok &= ModelBase::fromJson(fieldValue, refVal_setLogs); - setLogs(refVal_setLogs); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetLogsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_LogsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("logs")), m_Logs)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetLogsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("logs")))) - { - std::vector> refVal_setLogs; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("logs"))), refVal_setLogs ); - setLogs(refVal_setLogs); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetLogsResponse::getLogs() const -{ - return m_Logs; -} - - -void GetLogsResponse::setLogs(const std::vector>& value) -{ - m_Logs = value; - m_LogsIsSet = true; -} - -bool GetLogsResponse::logsIsSet() const -{ - return m_LogsIsSet; -} - -void GetLogsResponse::unsetLogs() -{ - m_LogsIsSet = false; -} -std::shared_ptr GetLogsResponse::getStatus() const -{ - return m_Status; -} - - -void GetLogsResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetLogsResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetLogsResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetLogsResponse::getReason() const -{ - return m_Reason; -} - - -void GetLogsResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetLogsResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetLogsResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetLogsResponse::getCode() const -{ - return m_Code; -} - - -void GetLogsResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetLogsResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetLogsResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetLogsResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetLogsResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetLogsResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetLogsResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetLogsResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetLogsResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetLogsResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetLogsResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetLogsResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetLogsResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetLogsResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetLogsResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetLogsResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetLogsResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetLogsResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetLogsResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetLogsResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetLogsResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetLogsResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetLogsResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetManualBadgesForUserResponse.cpp b/client/src/model/GetManualBadgesForUserResponse.cpp deleted file mode 100644 index 0f0e5ea..0000000 --- a/client/src/model/GetManualBadgesForUserResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetManualBadgesForUserResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetManualBadgesForUserResponse::GetManualBadgesForUserResponse() -{ - m_BadgesIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetManualBadgesForUserResponse::~GetManualBadgesForUserResponse() -{ -} - -void GetManualBadgesForUserResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetManualBadgesForUserResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_BadgesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetManualBadgesForUserResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setBadges; - ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); - setBadges(refVal_setBadges); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetManualBadgesForUserResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_BadgesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetManualBadgesForUserResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) - { - std::vector> refVal_setBadges; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); - setBadges(refVal_setBadges); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetManualBadgesForUserResponse::getBadges() const -{ - return m_Badges; -} - - -void GetManualBadgesForUserResponse::setBadges(const std::vector>& value) -{ - m_Badges = value; - m_BadgesIsSet = true; -} - -bool GetManualBadgesForUserResponse::badgesIsSet() const -{ - return m_BadgesIsSet; -} - -void GetManualBadgesForUserResponse::unsetBadges() -{ - m_BadgesIsSet = false; -} -std::shared_ptr GetManualBadgesForUserResponse::getStatus() const -{ - return m_Status; -} - - -void GetManualBadgesForUserResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetManualBadgesForUserResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetManualBadgesForUserResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetManualBadgesForUserResponse::getReason() const -{ - return m_Reason; -} - - -void GetManualBadgesForUserResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetManualBadgesForUserResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetManualBadgesForUserResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetManualBadgesForUserResponse::getCode() const -{ - return m_Code; -} - - -void GetManualBadgesForUserResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetManualBadgesForUserResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetManualBadgesForUserResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetManualBadgesForUserResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetManualBadgesForUserResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetManualBadgesForUserResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetManualBadgesForUserResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetManualBadgesForUserResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetManualBadgesForUserResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetManualBadgesForUserResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetManualBadgesForUserResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetManualBadgesForUserResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetManualBadgesForUserResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetManualBadgesForUserResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetManualBadgesForUserResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetManualBadgesForUserResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetManualBadgesForUserResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetManualBadgesForUserResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetManualBadgesForUserResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetManualBadgesForUserResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetManualBadgesForUserResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetManualBadgesForUserResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetManualBadgesForUserResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetManualBadgesResponse.cpp b/client/src/model/GetManualBadgesResponse.cpp deleted file mode 100644 index b136486..0000000 --- a/client/src/model/GetManualBadgesResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetManualBadgesResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetManualBadgesResponse::GetManualBadgesResponse() -{ - m_BadgesIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetManualBadgesResponse::~GetManualBadgesResponse() -{ -} - -void GetManualBadgesResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetManualBadgesResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_BadgesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetManualBadgesResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setBadges; - ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); - setBadges(refVal_setBadges); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetManualBadgesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_BadgesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetManualBadgesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) - { - std::vector> refVal_setBadges; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); - setBadges(refVal_setBadges); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetManualBadgesResponse::getBadges() const -{ - return m_Badges; -} - - -void GetManualBadgesResponse::setBadges(const std::vector>& value) -{ - m_Badges = value; - m_BadgesIsSet = true; -} - -bool GetManualBadgesResponse::badgesIsSet() const -{ - return m_BadgesIsSet; -} - -void GetManualBadgesResponse::unsetBadges() -{ - m_BadgesIsSet = false; -} -std::shared_ptr GetManualBadgesResponse::getStatus() const -{ - return m_Status; -} - - -void GetManualBadgesResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetManualBadgesResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetManualBadgesResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetManualBadgesResponse::getReason() const -{ - return m_Reason; -} - - -void GetManualBadgesResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetManualBadgesResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetManualBadgesResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetManualBadgesResponse::getCode() const -{ - return m_Code; -} - - -void GetManualBadgesResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetManualBadgesResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetManualBadgesResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetManualBadgesResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetManualBadgesResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetManualBadgesResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetManualBadgesResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetManualBadgesResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetManualBadgesResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetManualBadgesResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetManualBadgesResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetManualBadgesResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetManualBadgesResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetManualBadgesResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetManualBadgesResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetManualBadgesResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetManualBadgesResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetManualBadgesResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetManualBadgesResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetManualBadgesResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetManualBadgesResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetManualBadgesResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetManualBadgesResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetModerationCommentResponse.cpp b/client/src/model/GetModerationCommentResponse.cpp deleted file mode 100644 index d1e7f80..0000000 --- a/client/src/model/GetModerationCommentResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetModerationCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetModerationCommentResponse::GetModerationCommentResponse() -{ - m_CommentIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetModerationCommentResponse::~GetModerationCommentResponse() -{ -} - -void GetModerationCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetModerationCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetModerationCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetModerationCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetModerationCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetModerationCommentResponse::getComment() const -{ - return m_Comment; -} - - -void GetModerationCommentResponse::setComment(const std::shared_ptr& value) -{ - m_Comment = value; - m_CommentIsSet = true; -} - -bool GetModerationCommentResponse::commentIsSet() const -{ - return m_CommentIsSet; -} - -void GetModerationCommentResponse::unsetComment() -{ - m_CommentIsSet = false; -} -std::shared_ptr GetModerationCommentResponse::getStatus() const -{ - return m_Status; -} - - -void GetModerationCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetModerationCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetModerationCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetModerationCommentResponse::getReason() const -{ - return m_Reason; -} - - -void GetModerationCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetModerationCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetModerationCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetModerationCommentResponse::getCode() const -{ - return m_Code; -} - - -void GetModerationCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetModerationCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetModerationCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetModerationCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetModerationCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetModerationCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetModerationCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetModerationCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetModerationCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetModerationCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetModerationCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetModerationCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetModerationCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetModerationCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetModerationCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetModerationCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetModerationCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetModerationCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetModerationCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetModerationCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetModerationCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetModerationCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetModerationCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetModerationCommentTextResponse.cpp b/client/src/model/GetModerationCommentTextResponse.cpp deleted file mode 100644 index 1927822..0000000 --- a/client/src/model/GetModerationCommentTextResponse.cpp +++ /dev/null @@ -1,509 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetModerationCommentTextResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetModerationCommentTextResponse::GetModerationCommentTextResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetModerationCommentTextResponse::~GetModerationCommentTextResponse() -{ -} - -void GetModerationCommentTextResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetModerationCommentTextResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_Comment.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment.get()); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetModerationCommentTextResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetModerationCommentTextResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_Comment.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment.get())); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetModerationCommentTextResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - utility::string_t refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t GetModerationCommentTextResponse::getComment() const -{ - return m_Comment.get(); -} - - -void GetModerationCommentTextResponse::setComment(const utility::string_t& value) -{ - m_Comment = value; -} - -bool GetModerationCommentTextResponse::commentIsSet() const -{ - return m_Comment.has_value(); -} - -void GetModerationCommentTextResponse::unsetComment() -{ - m_Comment.reset(); -} -std::shared_ptr GetModerationCommentTextResponse::getStatus() const -{ - return m_Status; -} - - -void GetModerationCommentTextResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetModerationCommentTextResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetModerationCommentTextResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetModerationCommentTextResponse::getReason() const -{ - return m_Reason; -} - - -void GetModerationCommentTextResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetModerationCommentTextResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetModerationCommentTextResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetModerationCommentTextResponse::getCode() const -{ - return m_Code; -} - - -void GetModerationCommentTextResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetModerationCommentTextResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetModerationCommentTextResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetModerationCommentTextResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetModerationCommentTextResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetModerationCommentTextResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetModerationCommentTextResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetModerationCommentTextResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetModerationCommentTextResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetModerationCommentTextResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetModerationCommentTextResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetModerationCommentTextResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetModerationCommentTextResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetModerationCommentTextResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetModerationCommentTextResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetModerationCommentTextResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetModerationCommentTextResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetModerationCommentTextResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetModerationCommentTextResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetModerationCommentTextResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetModerationCommentTextResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetModerationCommentTextResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetModerationCommentTextResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetModeratorResponse_1.cpp b/client/src/model/GetModeratorResponse_1.cpp deleted file mode 100644 index 691d7a4..0000000 --- a/client/src/model/GetModeratorResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetModeratorResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetModeratorResponse_1::GetModeratorResponse_1() -{ - m_StatusIsSet = false; - m_ModeratorIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetModeratorResponse_1::~GetModeratorResponse_1() -{ -} - -void GetModeratorResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetModeratorResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ModeratorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moderator"))] = ModelBase::toJson(m_Moderator); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetModeratorResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderator")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderator"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setModerator; - ok &= ModelBase::fromJson(fieldValue, refVal_setModerator); - setModerator(refVal_setModerator); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetModeratorResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ModeratorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderator")), m_Moderator)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetModeratorResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderator")))) - { - std::shared_ptr refVal_setModerator; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderator"))), refVal_setModerator ); - setModerator(refVal_setModerator); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetModeratorResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetModeratorResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetModeratorResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetModeratorResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetModeratorResponse_1::getModerator() const -{ - return m_Moderator; -} - - -void GetModeratorResponse_1::setModerator(const std::shared_ptr& value) -{ - m_Moderator = value; - m_ModeratorIsSet = true; -} - -bool GetModeratorResponse_1::moderatorIsSet() const -{ - return m_ModeratorIsSet; -} - -void GetModeratorResponse_1::unsetModerator() -{ - m_ModeratorIsSet = false; -} -utility::string_t GetModeratorResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetModeratorResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetModeratorResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetModeratorResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetModeratorResponse_1::getCode() const -{ - return m_Code; -} - - -void GetModeratorResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetModeratorResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetModeratorResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetModeratorResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetModeratorResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetModeratorResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetModeratorResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetModeratorResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetModeratorResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetModeratorResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetModeratorResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetModeratorResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetModeratorResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetModeratorResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetModeratorResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetModeratorResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetModeratorResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetModeratorResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetModeratorResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetModeratorResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetModeratorResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetModeratorResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetModeratorResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetModeratorsResponse_1.cpp b/client/src/model/GetModeratorsResponse_1.cpp deleted file mode 100644 index 79c5cef..0000000 --- a/client/src/model/GetModeratorsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetModeratorsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetModeratorsResponse_1::GetModeratorsResponse_1() -{ - m_StatusIsSet = false; - m_ModeratorsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetModeratorsResponse_1::~GetModeratorsResponse_1() -{ -} - -void GetModeratorsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetModeratorsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ModeratorsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moderators"))] = ModelBase::toJson(m_Moderators); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetModeratorsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moderators")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moderators"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setModerators; - ok &= ModelBase::fromJson(fieldValue, refVal_setModerators); - setModerators(refVal_setModerators); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetModeratorsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ModeratorsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moderators")), m_Moderators)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetModeratorsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moderators")))) - { - std::vector> refVal_setModerators; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moderators"))), refVal_setModerators ); - setModerators(refVal_setModerators); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetModeratorsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetModeratorsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetModeratorsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetModeratorsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetModeratorsResponse_1::getModerators() const -{ - return m_Moderators; -} - - -void GetModeratorsResponse_1::setModerators(const std::vector>& value) -{ - m_Moderators = value; - m_ModeratorsIsSet = true; -} - -bool GetModeratorsResponse_1::moderatorsIsSet() const -{ - return m_ModeratorsIsSet; -} - -void GetModeratorsResponse_1::unsetModerators() -{ - m_ModeratorsIsSet = false; -} -utility::string_t GetModeratorsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetModeratorsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetModeratorsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetModeratorsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetModeratorsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetModeratorsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetModeratorsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetModeratorsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetModeratorsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetModeratorsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetModeratorsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetModeratorsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetModeratorsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetModeratorsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetModeratorsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetModeratorsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetModeratorsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetModeratorsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetModeratorsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetModeratorsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetModeratorsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetModeratorsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetModeratorsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetModeratorsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetModeratorsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetModeratorsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetModeratorsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetModeratorsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetNotificationCountResponse_1.cpp b/client/src/model/GetNotificationCountResponse_1.cpp deleted file mode 100644 index 4fa5620..0000000 --- a/client/src/model/GetNotificationCountResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetNotificationCountResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetNotificationCountResponse_1::GetNotificationCountResponse_1() -{ - m_StatusIsSet = false; - m_Count = 0.0; - m_CountIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetNotificationCountResponse_1::~GetNotificationCountResponse_1() -{ -} - -void GetNotificationCountResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetNotificationCountResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetNotificationCountResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); - if(!fieldValue.is_null()) - { - double refVal_setCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCount); - setCount(refVal_setCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetNotificationCountResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetNotificationCountResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - double refVal_setCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); - setCount(refVal_setCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetNotificationCountResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetNotificationCountResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetNotificationCountResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetNotificationCountResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -double GetNotificationCountResponse_1::getCount() const -{ - return m_Count; -} - -void GetNotificationCountResponse_1::setCount(double value) -{ - m_Count = value; - m_CountIsSet = true; -} - -bool GetNotificationCountResponse_1::countIsSet() const -{ - return m_CountIsSet; -} - -void GetNotificationCountResponse_1::unsetCount() -{ - m_CountIsSet = false; -} -utility::string_t GetNotificationCountResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetNotificationCountResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetNotificationCountResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetNotificationCountResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetNotificationCountResponse_1::getCode() const -{ - return m_Code; -} - - -void GetNotificationCountResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetNotificationCountResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetNotificationCountResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetNotificationCountResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetNotificationCountResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetNotificationCountResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetNotificationCountResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetNotificationCountResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetNotificationCountResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetNotificationCountResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetNotificationCountResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetNotificationCountResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetNotificationCountResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetNotificationCountResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetNotificationCountResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetNotificationCountResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetNotificationCountResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetNotificationCountResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetNotificationCountResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetNotificationCountResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetNotificationCountResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetNotificationCountResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetNotificationCountResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetNotificationsResponse_1.cpp b/client/src/model/GetNotificationsResponse_1.cpp deleted file mode 100644 index 12042c0..0000000 --- a/client/src/model/GetNotificationsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetNotificationsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetNotificationsResponse_1::GetNotificationsResponse_1() -{ - m_StatusIsSet = false; - m_NotificationsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetNotificationsResponse_1::~GetNotificationsResponse_1() -{ -} - -void GetNotificationsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetNotificationsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_NotificationsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("notifications"))] = ModelBase::toJson(m_Notifications); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetNotificationsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notifications")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notifications"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setNotifications; - ok &= ModelBase::fromJson(fieldValue, refVal_setNotifications); - setNotifications(refVal_setNotifications); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetNotificationsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_NotificationsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notifications")), m_Notifications)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetNotificationsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notifications")))) - { - std::vector> refVal_setNotifications; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notifications"))), refVal_setNotifications ); - setNotifications(refVal_setNotifications); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetNotificationsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetNotificationsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetNotificationsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetNotificationsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetNotificationsResponse_1::getNotifications() const -{ - return m_Notifications; -} - - -void GetNotificationsResponse_1::setNotifications(const std::vector>& value) -{ - m_Notifications = value; - m_NotificationsIsSet = true; -} - -bool GetNotificationsResponse_1::notificationsIsSet() const -{ - return m_NotificationsIsSet; -} - -void GetNotificationsResponse_1::unsetNotifications() -{ - m_NotificationsIsSet = false; -} -utility::string_t GetNotificationsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetNotificationsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetNotificationsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetNotificationsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetNotificationsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetNotificationsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetNotificationsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetNotificationsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetNotificationsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetNotificationsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetNotificationsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetNotificationsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetNotificationsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetNotificationsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetNotificationsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetNotificationsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetNotificationsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetNotificationsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetNotificationsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetNotificationsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetNotificationsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetNotificationsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetNotificationsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetNotificationsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetNotificationsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetNotificationsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetNotificationsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetNotificationsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetOfflineUsersResponse.cpp b/client/src/model/GetOfflineUsersResponse.cpp deleted file mode 100644 index 3f4acbd..0000000 --- a/client/src/model/GetOfflineUsersResponse.cpp +++ /dev/null @@ -1,603 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetOfflineUsersResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetOfflineUsersResponse::GetOfflineUsersResponse() -{ - m_UsersIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetOfflineUsersResponse::~GetOfflineUsersResponse() -{ -} - -void GetOfflineUsersResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetOfflineUsersResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_NextAfterUserId.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId.get()); - } - if(m_NextAfterName.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))] = ModelBase::toJson(m_NextAfterName.get()); - } - if(m_UsersIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetOfflineUsersResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setNextAfterUserId; - ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterUserId); - setNextAfterUserId(refVal_setNextAfterUserId); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setNextAfterName; - ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterName); - setNextAfterName(refVal_setNextAfterName); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); - setUsers(refVal_setUsers); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetOfflineUsersResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_NextAfterUserId.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId.get())); - } - if(m_NextAfterName.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName.get())); - } - if(m_UsersIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetOfflineUsersResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) - { - utility::string_t refVal_setNextAfterUserId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))), refVal_setNextAfterUserId ); - setNextAfterUserId(refVal_setNextAfterUserId); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) - { - utility::string_t refVal_setNextAfterName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))), refVal_setNextAfterName ); - setNextAfterName(refVal_setNextAfterName); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); - setUsers(refVal_setUsers); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t GetOfflineUsersResponse::getNextAfterUserId() const -{ - return m_NextAfterUserId.get(); -} - - -void GetOfflineUsersResponse::setNextAfterUserId(const utility::string_t& value) -{ - m_NextAfterUserId = value; -} - -bool GetOfflineUsersResponse::nextAfterUserIdIsSet() const -{ - return m_NextAfterUserId.has_value(); -} - -void GetOfflineUsersResponse::unsetNextAfterUserId() -{ - m_NextAfterUserId.reset(); -} -utility::string_t GetOfflineUsersResponse::getNextAfterName() const -{ - return m_NextAfterName.get(); -} - - -void GetOfflineUsersResponse::setNextAfterName(const utility::string_t& value) -{ - m_NextAfterName = value; -} - -bool GetOfflineUsersResponse::nextAfterNameIsSet() const -{ - return m_NextAfterName.has_value(); -} - -void GetOfflineUsersResponse::unsetNextAfterName() -{ - m_NextAfterName.reset(); -} -std::vector> GetOfflineUsersResponse::getUsers() const -{ - return m_Users; -} - - -void GetOfflineUsersResponse::setUsers(const std::vector>& value) -{ - m_Users = value; - m_UsersIsSet = true; -} - -bool GetOfflineUsersResponse::usersIsSet() const -{ - return m_UsersIsSet; -} - -void GetOfflineUsersResponse::unsetUsers() -{ - m_UsersIsSet = false; -} -std::shared_ptr GetOfflineUsersResponse::getStatus() const -{ - return m_Status; -} - - -void GetOfflineUsersResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetOfflineUsersResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetOfflineUsersResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetOfflineUsersResponse::getReason() const -{ - return m_Reason; -} - - -void GetOfflineUsersResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetOfflineUsersResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetOfflineUsersResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetOfflineUsersResponse::getCode() const -{ - return m_Code; -} - - -void GetOfflineUsersResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetOfflineUsersResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetOfflineUsersResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetOfflineUsersResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetOfflineUsersResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetOfflineUsersResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetOfflineUsersResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetOfflineUsersResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetOfflineUsersResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetOfflineUsersResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetOfflineUsersResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetOfflineUsersResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetOfflineUsersResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetOfflineUsersResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetOfflineUsersResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetOfflineUsersResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetOfflineUsersResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetOfflineUsersResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetOfflineUsersResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetOfflineUsersResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetOfflineUsersResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetOfflineUsersResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetOfflineUsersResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetOnlineUsersResponse.cpp b/client/src/model/GetOnlineUsersResponse.cpp deleted file mode 100644 index 34f3c0a..0000000 --- a/client/src/model/GetOnlineUsersResponse.cpp +++ /dev/null @@ -1,699 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetOnlineUsersResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetOnlineUsersResponse::GetOnlineUsersResponse() -{ - m_TotalCount = 0.0; - m_TotalCountIsSet = false; - m_AnonCount = 0.0; - m_AnonCountIsSet = false; - m_UsersIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetOnlineUsersResponse::~GetOnlineUsersResponse() -{ -} - -void GetOnlineUsersResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetOnlineUsersResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_NextAfterUserId.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))] = ModelBase::toJson(m_NextAfterUserId.get()); - } - if(m_NextAfterName.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))] = ModelBase::toJson(m_NextAfterName.get()); - } - if(m_TotalCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("totalCount"))] = ModelBase::toJson(m_TotalCount); - } - if(m_AnonCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("anonCount"))] = ModelBase::toJson(m_AnonCount); - } - if(m_UsersIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetOnlineUsersResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setNextAfterUserId; - ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterUserId); - setNextAfterUserId(refVal_setNextAfterUserId); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setNextAfterName; - ok &= ModelBase::fromJson(fieldValue, refVal_setNextAfterName); - setNextAfterName(refVal_setNextAfterName); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("totalCount"))); - if(!fieldValue.is_null()) - { - double refVal_setTotalCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setTotalCount); - setTotalCount(refVal_setTotalCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("anonCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("anonCount"))); - if(!fieldValue.is_null()) - { - double refVal_setAnonCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setAnonCount); - setAnonCount(refVal_setAnonCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); - setUsers(refVal_setUsers); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetOnlineUsersResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_NextAfterUserId.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")), m_NextAfterUserId.get())); - } - if(m_NextAfterName.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextAfterName")), m_NextAfterName.get())); - } - if(m_TotalCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("totalCount")), m_TotalCount)); - } - if(m_AnonCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("anonCount")), m_AnonCount)); - } - if(m_UsersIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetOnlineUsersResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId")))) - { - utility::string_t refVal_setNextAfterUserId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterUserId"))), refVal_setNextAfterUserId ); - setNextAfterUserId(refVal_setNextAfterUserId); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName")))) - { - utility::string_t refVal_setNextAfterName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextAfterName"))), refVal_setNextAfterName ); - setNextAfterName(refVal_setNextAfterName); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("totalCount")))) - { - double refVal_setTotalCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("totalCount"))), refVal_setTotalCount ); - setTotalCount(refVal_setTotalCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("anonCount")))) - { - double refVal_setAnonCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("anonCount"))), refVal_setAnonCount ); - setAnonCount(refVal_setAnonCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); - setUsers(refVal_setUsers); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t GetOnlineUsersResponse::getNextAfterUserId() const -{ - return m_NextAfterUserId.get(); -} - - -void GetOnlineUsersResponse::setNextAfterUserId(const utility::string_t& value) -{ - m_NextAfterUserId = value; -} - -bool GetOnlineUsersResponse::nextAfterUserIdIsSet() const -{ - return m_NextAfterUserId.has_value(); -} - -void GetOnlineUsersResponse::unsetNextAfterUserId() -{ - m_NextAfterUserId.reset(); -} -utility::string_t GetOnlineUsersResponse::getNextAfterName() const -{ - return m_NextAfterName.get(); -} - - -void GetOnlineUsersResponse::setNextAfterName(const utility::string_t& value) -{ - m_NextAfterName = value; -} - -bool GetOnlineUsersResponse::nextAfterNameIsSet() const -{ - return m_NextAfterName.has_value(); -} - -void GetOnlineUsersResponse::unsetNextAfterName() -{ - m_NextAfterName.reset(); -} -double GetOnlineUsersResponse::getTotalCount() const -{ - return m_TotalCount; -} - -void GetOnlineUsersResponse::setTotalCount(double value) -{ - m_TotalCount = value; - m_TotalCountIsSet = true; -} - -bool GetOnlineUsersResponse::totalCountIsSet() const -{ - return m_TotalCountIsSet; -} - -void GetOnlineUsersResponse::unsetTotalCount() -{ - m_TotalCountIsSet = false; -} -double GetOnlineUsersResponse::getAnonCount() const -{ - return m_AnonCount; -} - -void GetOnlineUsersResponse::setAnonCount(double value) -{ - m_AnonCount = value; - m_AnonCountIsSet = true; -} - -bool GetOnlineUsersResponse::anonCountIsSet() const -{ - return m_AnonCountIsSet; -} - -void GetOnlineUsersResponse::unsetAnonCount() -{ - m_AnonCountIsSet = false; -} -std::vector> GetOnlineUsersResponse::getUsers() const -{ - return m_Users; -} - - -void GetOnlineUsersResponse::setUsers(const std::vector>& value) -{ - m_Users = value; - m_UsersIsSet = true; -} - -bool GetOnlineUsersResponse::usersIsSet() const -{ - return m_UsersIsSet; -} - -void GetOnlineUsersResponse::unsetUsers() -{ - m_UsersIsSet = false; -} -std::shared_ptr GetOnlineUsersResponse::getStatus() const -{ - return m_Status; -} - - -void GetOnlineUsersResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetOnlineUsersResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetOnlineUsersResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetOnlineUsersResponse::getReason() const -{ - return m_Reason; -} - - -void GetOnlineUsersResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetOnlineUsersResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetOnlineUsersResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetOnlineUsersResponse::getCode() const -{ - return m_Code; -} - - -void GetOnlineUsersResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetOnlineUsersResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetOnlineUsersResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetOnlineUsersResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetOnlineUsersResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetOnlineUsersResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetOnlineUsersResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetOnlineUsersResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetOnlineUsersResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetOnlineUsersResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetOnlineUsersResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetOnlineUsersResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetOnlineUsersResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetOnlineUsersResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetOnlineUsersResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetOnlineUsersResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetOnlineUsersResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetOnlineUsersResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetOnlineUsersResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetOnlineUsersResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetOnlineUsersResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetOnlineUsersResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetOnlineUsersResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetPagesPublicResponse.cpp b/client/src/model/GetPagesPublicResponse.cpp deleted file mode 100644 index 4b65f4e..0000000 --- a/client/src/model/GetPagesPublicResponse.cpp +++ /dev/null @@ -1,557 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetPagesPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetPagesPublicResponse::GetPagesPublicResponse() -{ - m_PagesIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetPagesPublicResponse::~GetPagesPublicResponse() -{ -} - -void GetPagesPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetPagesPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_NextCursor.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("nextCursor"))] = ModelBase::toJson(m_NextCursor.get()); - } - if(m_PagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetPagesPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("nextCursor")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("nextCursor"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setNextCursor; - ok &= ModelBase::fromJson(fieldValue, refVal_setNextCursor); - setNextCursor(refVal_setNextCursor); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pages")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pages"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setPages; - ok &= ModelBase::fromJson(fieldValue, refVal_setPages); - setPages(refVal_setPages); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetPagesPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_NextCursor.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("nextCursor")), m_NextCursor.get())); - } - if(m_PagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pages")), m_Pages)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetPagesPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("nextCursor")))) - { - utility::string_t refVal_setNextCursor; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("nextCursor"))), refVal_setNextCursor ); - setNextCursor(refVal_setNextCursor); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pages")))) - { - std::vector> refVal_setPages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pages"))), refVal_setPages ); - setPages(refVal_setPages); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t GetPagesPublicResponse::getNextCursor() const -{ - return m_NextCursor.get(); -} - - -void GetPagesPublicResponse::setNextCursor(const utility::string_t& value) -{ - m_NextCursor = value; -} - -bool GetPagesPublicResponse::nextCursorIsSet() const -{ - return m_NextCursor.has_value(); -} - -void GetPagesPublicResponse::unsetNextCursor() -{ - m_NextCursor.reset(); -} -std::vector> GetPagesPublicResponse::getPages() const -{ - return m_Pages; -} - - -void GetPagesPublicResponse::setPages(const std::vector>& value) -{ - m_Pages = value; - m_PagesIsSet = true; -} - -bool GetPagesPublicResponse::pagesIsSet() const -{ - return m_PagesIsSet; -} - -void GetPagesPublicResponse::unsetPages() -{ - m_PagesIsSet = false; -} -std::shared_ptr GetPagesPublicResponse::getStatus() const -{ - return m_Status; -} - - -void GetPagesPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetPagesPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetPagesPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetPagesPublicResponse::getReason() const -{ - return m_Reason; -} - - -void GetPagesPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetPagesPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetPagesPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetPagesPublicResponse::getCode() const -{ - return m_Code; -} - - -void GetPagesPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetPagesPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetPagesPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetPagesPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetPagesPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetPagesPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetPagesPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetPagesPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetPagesPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetPagesPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetPagesPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetPagesPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetPagesPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetPagesPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetPagesPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetPagesPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetPagesPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetPagesPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetPagesPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetPagesPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetPagesPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetPagesPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetPagesPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetPendingWebhookEventCountResponse_1.cpp b/client/src/model/GetPendingWebhookEventCountResponse_1.cpp deleted file mode 100644 index 45e1f4a..0000000 --- a/client/src/model/GetPendingWebhookEventCountResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetPendingWebhookEventCountResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetPendingWebhookEventCountResponse_1::GetPendingWebhookEventCountResponse_1() -{ - m_StatusIsSet = false; - m_Count = 0.0; - m_CountIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetPendingWebhookEventCountResponse_1::~GetPendingWebhookEventCountResponse_1() -{ -} - -void GetPendingWebhookEventCountResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetPendingWebhookEventCountResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetPendingWebhookEventCountResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); - if(!fieldValue.is_null()) - { - double refVal_setCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCount); - setCount(refVal_setCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetPendingWebhookEventCountResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetPendingWebhookEventCountResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - double refVal_setCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); - setCount(refVal_setCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetPendingWebhookEventCountResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetPendingWebhookEventCountResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetPendingWebhookEventCountResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetPendingWebhookEventCountResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -double GetPendingWebhookEventCountResponse_1::getCount() const -{ - return m_Count; -} - -void GetPendingWebhookEventCountResponse_1::setCount(double value) -{ - m_Count = value; - m_CountIsSet = true; -} - -bool GetPendingWebhookEventCountResponse_1::countIsSet() const -{ - return m_CountIsSet; -} - -void GetPendingWebhookEventCountResponse_1::unsetCount() -{ - m_CountIsSet = false; -} -utility::string_t GetPendingWebhookEventCountResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetPendingWebhookEventCountResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetPendingWebhookEventCountResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetPendingWebhookEventCountResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetPendingWebhookEventCountResponse_1::getCode() const -{ - return m_Code; -} - - -void GetPendingWebhookEventCountResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetPendingWebhookEventCountResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetPendingWebhookEventCountResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetPendingWebhookEventCountResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetPendingWebhookEventCountResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetPendingWebhookEventCountResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetPendingWebhookEventCountResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetPendingWebhookEventCountResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetPendingWebhookEventCountResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetPendingWebhookEventCountResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetPendingWebhookEventCountResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetPendingWebhookEventCountResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetPendingWebhookEventCountResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetPendingWebhookEventCountResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetPendingWebhookEventCountResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetPendingWebhookEventCountResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetPendingWebhookEventCountResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetPendingWebhookEventCountResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetPendingWebhookEventCountResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetPendingWebhookEventCountResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetPendingWebhookEventCountResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetPendingWebhookEventCountResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetPendingWebhookEventCountResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetPendingWebhookEventsResponse_1.cpp b/client/src/model/GetPendingWebhookEventsResponse_1.cpp deleted file mode 100644 index 9c46d68..0000000 --- a/client/src/model/GetPendingWebhookEventsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetPendingWebhookEventsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetPendingWebhookEventsResponse_1::GetPendingWebhookEventsResponse_1() -{ - m_StatusIsSet = false; - m_PendingWebhookEventsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetPendingWebhookEventsResponse_1::~GetPendingWebhookEventsResponse_1() -{ -} - -void GetPendingWebhookEventsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetPendingWebhookEventsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_PendingWebhookEventsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))] = ModelBase::toJson(m_PendingWebhookEvents); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetPendingWebhookEventsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setPendingWebhookEvents; - ok &= ModelBase::fromJson(fieldValue, refVal_setPendingWebhookEvents); - setPendingWebhookEvents(refVal_setPendingWebhookEvents); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetPendingWebhookEventsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_PendingWebhookEventsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents")), m_PendingWebhookEvents)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetPendingWebhookEventsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents")))) - { - std::vector> refVal_setPendingWebhookEvents; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pendingWebhookEvents"))), refVal_setPendingWebhookEvents ); - setPendingWebhookEvents(refVal_setPendingWebhookEvents); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetPendingWebhookEventsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetPendingWebhookEventsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetPendingWebhookEventsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetPendingWebhookEventsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetPendingWebhookEventsResponse_1::getPendingWebhookEvents() const -{ - return m_PendingWebhookEvents; -} - - -void GetPendingWebhookEventsResponse_1::setPendingWebhookEvents(const std::vector>& value) -{ - m_PendingWebhookEvents = value; - m_PendingWebhookEventsIsSet = true; -} - -bool GetPendingWebhookEventsResponse_1::pendingWebhookEventsIsSet() const -{ - return m_PendingWebhookEventsIsSet; -} - -void GetPendingWebhookEventsResponse_1::unsetPendingWebhookEvents() -{ - m_PendingWebhookEventsIsSet = false; -} -utility::string_t GetPendingWebhookEventsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetPendingWebhookEventsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetPendingWebhookEventsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetPendingWebhookEventsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetPendingWebhookEventsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetPendingWebhookEventsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetPendingWebhookEventsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetPendingWebhookEventsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetPendingWebhookEventsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetPendingWebhookEventsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetPendingWebhookEventsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetPendingWebhookEventsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetPendingWebhookEventsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetPendingWebhookEventsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetPendingWebhookEventsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetPendingWebhookEventsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetPendingWebhookEventsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetPendingWebhookEventsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetPendingWebhookEventsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetPendingWebhookEventsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetPendingWebhookEventsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetPendingWebhookEventsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetPendingWebhookEventsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetPendingWebhookEventsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetPendingWebhookEventsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetPendingWebhookEventsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetPendingWebhookEventsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetPendingWebhookEventsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetPreBanSummaryResponse.cpp b/client/src/model/GetPreBanSummaryResponse.cpp deleted file mode 100644 index dc9e50a..0000000 --- a/client/src/model/GetPreBanSummaryResponse.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetPreBanSummaryResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetPreBanSummaryResponse::GetPreBanSummaryResponse() -{ - m_StatusIsSet = false; - m_UsernamesIsSet = false; - m_Count = 0.0; - m_CountIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetPreBanSummaryResponse::~GetPreBanSummaryResponse() -{ -} - -void GetPreBanSummaryResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetPreBanSummaryResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UsernamesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("usernames"))] = ModelBase::toJson(m_Usernames); - } - if(m_CountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetPreBanSummaryResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("usernames")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("usernames"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setUsernames; - ok &= ModelBase::fromJson(fieldValue, refVal_setUsernames); - setUsernames(refVal_setUsernames); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); - if(!fieldValue.is_null()) - { - double refVal_setCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCount); - setCount(refVal_setCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetPreBanSummaryResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UsernamesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("usernames")), m_Usernames)); - } - if(m_CountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetPreBanSummaryResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("usernames")))) - { - std::vector refVal_setUsernames; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("usernames"))), refVal_setUsernames ); - setUsernames(refVal_setUsernames); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - double refVal_setCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); - setCount(refVal_setCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetPreBanSummaryResponse::getStatus() const -{ - return m_Status; -} - - -void GetPreBanSummaryResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetPreBanSummaryResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetPreBanSummaryResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector GetPreBanSummaryResponse::getUsernames() const -{ - return m_Usernames; -} - - -void GetPreBanSummaryResponse::setUsernames(const std::vector& value) -{ - m_Usernames = value; - m_UsernamesIsSet = true; -} - -bool GetPreBanSummaryResponse::usernamesIsSet() const -{ - return m_UsernamesIsSet; -} - -void GetPreBanSummaryResponse::unsetUsernames() -{ - m_UsernamesIsSet = false; -} -double GetPreBanSummaryResponse::getCount() const -{ - return m_Count; -} - -void GetPreBanSummaryResponse::setCount(double value) -{ - m_Count = value; - m_CountIsSet = true; -} - -bool GetPreBanSummaryResponse::countIsSet() const -{ - return m_CountIsSet; -} - -void GetPreBanSummaryResponse::unsetCount() -{ - m_CountIsSet = false; -} -utility::string_t GetPreBanSummaryResponse::getReason() const -{ - return m_Reason; -} - - -void GetPreBanSummaryResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetPreBanSummaryResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetPreBanSummaryResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetPreBanSummaryResponse::getCode() const -{ - return m_Code; -} - - -void GetPreBanSummaryResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetPreBanSummaryResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetPreBanSummaryResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetPreBanSummaryResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetPreBanSummaryResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetPreBanSummaryResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetPreBanSummaryResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetPreBanSummaryResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetPreBanSummaryResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetPreBanSummaryResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetPreBanSummaryResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetPreBanSummaryResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetPreBanSummaryResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetPreBanSummaryResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetPreBanSummaryResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetPreBanSummaryResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetPreBanSummaryResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetPreBanSummaryResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetPreBanSummaryResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetPreBanSummaryResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetPreBanSummaryResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetPreBanSummaryResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetPreBanSummaryResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetQuestionConfigResponse_1.cpp b/client/src/model/GetQuestionConfigResponse_1.cpp deleted file mode 100644 index 624c3b2..0000000 --- a/client/src/model/GetQuestionConfigResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetQuestionConfigResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetQuestionConfigResponse_1::GetQuestionConfigResponse_1() -{ - m_StatusIsSet = false; - m_QuestionConfigIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetQuestionConfigResponse_1::~GetQuestionConfigResponse_1() -{ -} - -void GetQuestionConfigResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetQuestionConfigResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionConfig"))] = ModelBase::toJson(m_QuestionConfig); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetQuestionConfigResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setQuestionConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionConfig); - setQuestionConfig(refVal_setQuestionConfig); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetQuestionConfigResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionConfig")), m_QuestionConfig)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetQuestionConfigResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig")))) - { - std::shared_ptr refVal_setQuestionConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionConfig"))), refVal_setQuestionConfig ); - setQuestionConfig(refVal_setQuestionConfig); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetQuestionConfigResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetQuestionConfigResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetQuestionConfigResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetQuestionConfigResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetQuestionConfigResponse_1::getQuestionConfig() const -{ - return m_QuestionConfig; -} - - -void GetQuestionConfigResponse_1::setQuestionConfig(const std::shared_ptr& value) -{ - m_QuestionConfig = value; - m_QuestionConfigIsSet = true; -} - -bool GetQuestionConfigResponse_1::questionConfigIsSet() const -{ - return m_QuestionConfigIsSet; -} - -void GetQuestionConfigResponse_1::unsetQuestionConfig() -{ - m_QuestionConfigIsSet = false; -} -utility::string_t GetQuestionConfigResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetQuestionConfigResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetQuestionConfigResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetQuestionConfigResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetQuestionConfigResponse_1::getCode() const -{ - return m_Code; -} - - -void GetQuestionConfigResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetQuestionConfigResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetQuestionConfigResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetQuestionConfigResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetQuestionConfigResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetQuestionConfigResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetQuestionConfigResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetQuestionConfigResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetQuestionConfigResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetQuestionConfigResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetQuestionConfigResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetQuestionConfigResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetQuestionConfigResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetQuestionConfigResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetQuestionConfigResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetQuestionConfigResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetQuestionConfigResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetQuestionConfigResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetQuestionConfigResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetQuestionConfigResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetQuestionConfigResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetQuestionConfigResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetQuestionConfigResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetQuestionConfigsResponse_1.cpp b/client/src/model/GetQuestionConfigsResponse_1.cpp deleted file mode 100644 index 56371f8..0000000 --- a/client/src/model/GetQuestionConfigsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetQuestionConfigsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetQuestionConfigsResponse_1::GetQuestionConfigsResponse_1() -{ - m_StatusIsSet = false; - m_QuestionConfigsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetQuestionConfigsResponse_1::~GetQuestionConfigsResponse_1() -{ -} - -void GetQuestionConfigsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetQuestionConfigsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionConfigsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))] = ModelBase::toJson(m_QuestionConfigs); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetQuestionConfigsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionConfigs")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setQuestionConfigs; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionConfigs); - setQuestionConfigs(refVal_setQuestionConfigs); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetQuestionConfigsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionConfigsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionConfigs")), m_QuestionConfigs)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetQuestionConfigsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionConfigs")))) - { - std::vector> refVal_setQuestionConfigs; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionConfigs"))), refVal_setQuestionConfigs ); - setQuestionConfigs(refVal_setQuestionConfigs); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetQuestionConfigsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetQuestionConfigsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetQuestionConfigsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetQuestionConfigsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetQuestionConfigsResponse_1::getQuestionConfigs() const -{ - return m_QuestionConfigs; -} - - -void GetQuestionConfigsResponse_1::setQuestionConfigs(const std::vector>& value) -{ - m_QuestionConfigs = value; - m_QuestionConfigsIsSet = true; -} - -bool GetQuestionConfigsResponse_1::questionConfigsIsSet() const -{ - return m_QuestionConfigsIsSet; -} - -void GetQuestionConfigsResponse_1::unsetQuestionConfigs() -{ - m_QuestionConfigsIsSet = false; -} -utility::string_t GetQuestionConfigsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetQuestionConfigsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetQuestionConfigsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetQuestionConfigsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetQuestionConfigsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetQuestionConfigsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetQuestionConfigsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetQuestionConfigsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetQuestionConfigsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetQuestionConfigsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetQuestionConfigsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetQuestionConfigsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetQuestionConfigsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetQuestionConfigsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetQuestionConfigsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetQuestionConfigsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetQuestionConfigsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetQuestionConfigsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetQuestionConfigsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetQuestionConfigsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetQuestionConfigsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetQuestionConfigsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetQuestionConfigsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetQuestionConfigsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetQuestionConfigsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetQuestionConfigsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetQuestionConfigsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetQuestionConfigsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetQuestionResultResponse_1.cpp b/client/src/model/GetQuestionResultResponse_1.cpp deleted file mode 100644 index ea10cda..0000000 --- a/client/src/model/GetQuestionResultResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetQuestionResultResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetQuestionResultResponse_1::GetQuestionResultResponse_1() -{ - m_StatusIsSet = false; - m_QuestionResultIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetQuestionResultResponse_1::~GetQuestionResultResponse_1() -{ -} - -void GetQuestionResultResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetQuestionResultResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionResultIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionResult"))] = ModelBase::toJson(m_QuestionResult); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetQuestionResultResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionResult"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setQuestionResult; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionResult); - setQuestionResult(refVal_setQuestionResult); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetQuestionResultResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionResultIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionResult")), m_QuestionResult)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetQuestionResultResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionResult")))) - { - std::shared_ptr refVal_setQuestionResult; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionResult"))), refVal_setQuestionResult ); - setQuestionResult(refVal_setQuestionResult); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetQuestionResultResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetQuestionResultResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetQuestionResultResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetQuestionResultResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetQuestionResultResponse_1::getQuestionResult() const -{ - return m_QuestionResult; -} - - -void GetQuestionResultResponse_1::setQuestionResult(const std::shared_ptr& value) -{ - m_QuestionResult = value; - m_QuestionResultIsSet = true; -} - -bool GetQuestionResultResponse_1::questionResultIsSet() const -{ - return m_QuestionResultIsSet; -} - -void GetQuestionResultResponse_1::unsetQuestionResult() -{ - m_QuestionResultIsSet = false; -} -utility::string_t GetQuestionResultResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetQuestionResultResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetQuestionResultResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetQuestionResultResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetQuestionResultResponse_1::getCode() const -{ - return m_Code; -} - - -void GetQuestionResultResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetQuestionResultResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetQuestionResultResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetQuestionResultResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetQuestionResultResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetQuestionResultResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetQuestionResultResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetQuestionResultResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetQuestionResultResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetQuestionResultResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetQuestionResultResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetQuestionResultResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetQuestionResultResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetQuestionResultResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetQuestionResultResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetQuestionResultResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetQuestionResultResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetQuestionResultResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetQuestionResultResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetQuestionResultResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetQuestionResultResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetQuestionResultResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetQuestionResultResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetQuestionResultsResponse_1.cpp b/client/src/model/GetQuestionResultsResponse_1.cpp deleted file mode 100644 index 2f2cb8c..0000000 --- a/client/src/model/GetQuestionResultsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetQuestionResultsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetQuestionResultsResponse_1::GetQuestionResultsResponse_1() -{ - m_StatusIsSet = false; - m_QuestionResultsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetQuestionResultsResponse_1::~GetQuestionResultsResponse_1() -{ -} - -void GetQuestionResultsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetQuestionResultsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_QuestionResultsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("questionResults"))] = ModelBase::toJson(m_QuestionResults); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetQuestionResultsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("questionResults")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("questionResults"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setQuestionResults; - ok &= ModelBase::fromJson(fieldValue, refVal_setQuestionResults); - setQuestionResults(refVal_setQuestionResults); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetQuestionResultsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_QuestionResultsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("questionResults")), m_QuestionResults)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetQuestionResultsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("questionResults")))) - { - std::vector> refVal_setQuestionResults; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("questionResults"))), refVal_setQuestionResults ); - setQuestionResults(refVal_setQuestionResults); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetQuestionResultsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetQuestionResultsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetQuestionResultsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetQuestionResultsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetQuestionResultsResponse_1::getQuestionResults() const -{ - return m_QuestionResults; -} - - -void GetQuestionResultsResponse_1::setQuestionResults(const std::vector>& value) -{ - m_QuestionResults = value; - m_QuestionResultsIsSet = true; -} - -bool GetQuestionResultsResponse_1::questionResultsIsSet() const -{ - return m_QuestionResultsIsSet; -} - -void GetQuestionResultsResponse_1::unsetQuestionResults() -{ - m_QuestionResultsIsSet = false; -} -utility::string_t GetQuestionResultsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetQuestionResultsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetQuestionResultsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetQuestionResultsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetQuestionResultsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetQuestionResultsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetQuestionResultsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetQuestionResultsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetQuestionResultsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetQuestionResultsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetQuestionResultsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetQuestionResultsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetQuestionResultsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetQuestionResultsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetQuestionResultsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetQuestionResultsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetQuestionResultsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetQuestionResultsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetQuestionResultsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetQuestionResultsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetQuestionResultsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetQuestionResultsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetQuestionResultsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetQuestionResultsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetQuestionResultsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetQuestionResultsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetQuestionResultsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetQuestionResultsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetSearchCommentsSummaryResponse.cpp b/client/src/model/GetSearchCommentsSummaryResponse.cpp deleted file mode 100644 index 97bfe27..0000000 --- a/client/src/model/GetSearchCommentsSummaryResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetSearchCommentsSummaryResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetSearchCommentsSummaryResponse::GetSearchCommentsSummaryResponse() -{ - m_CommentCount = 0; - m_CommentCountIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetSearchCommentsSummaryResponse::~GetSearchCommentsSummaryResponse() -{ -} - -void GetSearchCommentsSummaryResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetSearchCommentsSummaryResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetSearchCommentsSummaryResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setCommentCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); - setCommentCount(refVal_setCommentCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetSearchCommentsSummaryResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetSearchCommentsSummaryResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) - { - int32_t refVal_setCommentCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); - setCommentCount(refVal_setCommentCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -int32_t GetSearchCommentsSummaryResponse::getCommentCount() const -{ - return m_CommentCount; -} - -void GetSearchCommentsSummaryResponse::setCommentCount(int32_t value) -{ - m_CommentCount = value; - m_CommentCountIsSet = true; -} - -bool GetSearchCommentsSummaryResponse::commentCountIsSet() const -{ - return m_CommentCountIsSet; -} - -void GetSearchCommentsSummaryResponse::unsetCommentCount() -{ - m_CommentCountIsSet = false; -} -std::shared_ptr GetSearchCommentsSummaryResponse::getStatus() const -{ - return m_Status; -} - - -void GetSearchCommentsSummaryResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetSearchCommentsSummaryResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetSearchCommentsSummaryResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetSearchCommentsSummaryResponse::getReason() const -{ - return m_Reason; -} - - -void GetSearchCommentsSummaryResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetSearchCommentsSummaryResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetSearchCommentsSummaryResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetSearchCommentsSummaryResponse::getCode() const -{ - return m_Code; -} - - -void GetSearchCommentsSummaryResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetSearchCommentsSummaryResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetSearchCommentsSummaryResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetSearchCommentsSummaryResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetSearchCommentsSummaryResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetSearchCommentsSummaryResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetSearchCommentsSummaryResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetSearchCommentsSummaryResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetSearchCommentsSummaryResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetSearchCommentsSummaryResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetSearchCommentsSummaryResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetSearchCommentsSummaryResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetSearchCommentsSummaryResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetSearchCommentsSummaryResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetSearchCommentsSummaryResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetSearchCommentsSummaryResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetSearchCommentsSummaryResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetSearchCommentsSummaryResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetSearchCommentsSummaryResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetSearchCommentsSummaryResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetSearchCommentsSummaryResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetSearchCommentsSummaryResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetSearchCommentsSummaryResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetSearchPagesResponse.cpp b/client/src/model/GetSearchPagesResponse.cpp deleted file mode 100644 index bde43ff..0000000 --- a/client/src/model/GetSearchPagesResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetSearchPagesResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetSearchPagesResponse::GetSearchPagesResponse() -{ - m_PagesIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetSearchPagesResponse::~GetSearchPagesResponse() -{ -} - -void GetSearchPagesResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetSearchPagesResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_PagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetSearchPagesResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pages")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pages"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setPages; - ok &= ModelBase::fromJson(fieldValue, refVal_setPages); - setPages(refVal_setPages); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetSearchPagesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_PagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pages")), m_Pages)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetSearchPagesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pages")))) - { - std::vector> refVal_setPages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pages"))), refVal_setPages ); - setPages(refVal_setPages); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetSearchPagesResponse::getPages() const -{ - return m_Pages; -} - - -void GetSearchPagesResponse::setPages(const std::vector>& value) -{ - m_Pages = value; - m_PagesIsSet = true; -} - -bool GetSearchPagesResponse::pagesIsSet() const -{ - return m_PagesIsSet; -} - -void GetSearchPagesResponse::unsetPages() -{ - m_PagesIsSet = false; -} -std::shared_ptr GetSearchPagesResponse::getStatus() const -{ - return m_Status; -} - - -void GetSearchPagesResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetSearchPagesResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetSearchPagesResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetSearchPagesResponse::getReason() const -{ - return m_Reason; -} - - -void GetSearchPagesResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetSearchPagesResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetSearchPagesResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetSearchPagesResponse::getCode() const -{ - return m_Code; -} - - -void GetSearchPagesResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetSearchPagesResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetSearchPagesResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetSearchPagesResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetSearchPagesResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetSearchPagesResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetSearchPagesResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetSearchPagesResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetSearchPagesResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetSearchPagesResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetSearchPagesResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetSearchPagesResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetSearchPagesResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetSearchPagesResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetSearchPagesResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetSearchPagesResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetSearchPagesResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetSearchPagesResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetSearchPagesResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetSearchPagesResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetSearchPagesResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetSearchPagesResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetSearchPagesResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetSearchSitesResponse.cpp b/client/src/model/GetSearchSitesResponse.cpp deleted file mode 100644 index b181e44..0000000 --- a/client/src/model/GetSearchSitesResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetSearchSitesResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetSearchSitesResponse::GetSearchSitesResponse() -{ - m_SitesIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetSearchSitesResponse::~GetSearchSitesResponse() -{ -} - -void GetSearchSitesResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetSearchSitesResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_SitesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("sites"))] = ModelBase::toJson(m_Sites); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetSearchSitesResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sites")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sites"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setSites; - ok &= ModelBase::fromJson(fieldValue, refVal_setSites); - setSites(refVal_setSites); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetSearchSitesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_SitesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sites")), m_Sites)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetSearchSitesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sites")))) - { - std::vector> refVal_setSites; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sites"))), refVal_setSites ); - setSites(refVal_setSites); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetSearchSitesResponse::getSites() const -{ - return m_Sites; -} - - -void GetSearchSitesResponse::setSites(const std::vector>& value) -{ - m_Sites = value; - m_SitesIsSet = true; -} - -bool GetSearchSitesResponse::sitesIsSet() const -{ - return m_SitesIsSet; -} - -void GetSearchSitesResponse::unsetSites() -{ - m_SitesIsSet = false; -} -std::shared_ptr GetSearchSitesResponse::getStatus() const -{ - return m_Status; -} - - -void GetSearchSitesResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetSearchSitesResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetSearchSitesResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetSearchSitesResponse::getReason() const -{ - return m_Reason; -} - - -void GetSearchSitesResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetSearchSitesResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetSearchSitesResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetSearchSitesResponse::getCode() const -{ - return m_Code; -} - - -void GetSearchSitesResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetSearchSitesResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetSearchSitesResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetSearchSitesResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetSearchSitesResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetSearchSitesResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetSearchSitesResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetSearchSitesResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetSearchSitesResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetSearchSitesResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetSearchSitesResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetSearchSitesResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetSearchSitesResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetSearchSitesResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetSearchSitesResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetSearchSitesResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetSearchSitesResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetSearchSitesResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetSearchSitesResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetSearchSitesResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetSearchSitesResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetSearchSitesResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetSearchSitesResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetSearchSuggestResponse.cpp b/client/src/model/GetSearchSuggestResponse.cpp deleted file mode 100644 index a99dac9..0000000 --- a/client/src/model/GetSearchSuggestResponse.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetSearchSuggestResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetSearchSuggestResponse::GetSearchSuggestResponse() -{ - m_StatusIsSet = false; - m_PagesIsSet = false; - m_UsersIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetSearchSuggestResponse::~GetSearchSuggestResponse() -{ -} - -void GetSearchSuggestResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetSearchSuggestResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_PagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pages"))] = ModelBase::toJson(m_Pages); - } - if(m_UsersIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetSearchSuggestResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pages")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pages"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setPages; - ok &= ModelBase::fromJson(fieldValue, refVal_setPages); - setPages(refVal_setPages); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); - setUsers(refVal_setUsers); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetSearchSuggestResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_PagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pages")), m_Pages)); - } - if(m_UsersIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetSearchSuggestResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pages")))) - { - std::vector> refVal_setPages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pages"))), refVal_setPages ); - setPages(refVal_setPages); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); - setUsers(refVal_setUsers); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetSearchSuggestResponse::getStatus() const -{ - return m_Status; -} - - -void GetSearchSuggestResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetSearchSuggestResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetSearchSuggestResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetSearchSuggestResponse::getPages() const -{ - return m_Pages; -} - - -void GetSearchSuggestResponse::setPages(const std::vector>& value) -{ - m_Pages = value; - m_PagesIsSet = true; -} - -bool GetSearchSuggestResponse::pagesIsSet() const -{ - return m_PagesIsSet; -} - -void GetSearchSuggestResponse::unsetPages() -{ - m_PagesIsSet = false; -} -std::vector> GetSearchSuggestResponse::getUsers() const -{ - return m_Users; -} - - -void GetSearchSuggestResponse::setUsers(const std::vector>& value) -{ - m_Users = value; - m_UsersIsSet = true; -} - -bool GetSearchSuggestResponse::usersIsSet() const -{ - return m_UsersIsSet; -} - -void GetSearchSuggestResponse::unsetUsers() -{ - m_UsersIsSet = false; -} -utility::string_t GetSearchSuggestResponse::getCode() const -{ - return m_Code; -} - - -void GetSearchSuggestResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetSearchSuggestResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetSearchSuggestResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetSearchSuggestResponse::getReason() const -{ - return m_Reason; -} - - -void GetSearchSuggestResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetSearchSuggestResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetSearchSuggestResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetSearchSuggestResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetSearchSuggestResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetSearchSuggestResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetSearchSuggestResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetSearchSuggestResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetSearchSuggestResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetSearchSuggestResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetSearchSuggestResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetSearchSuggestResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetSearchSuggestResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetSearchSuggestResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetSearchSuggestResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetSearchSuggestResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetSearchSuggestResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetSearchSuggestResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetSearchSuggestResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetSearchSuggestResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetSearchSuggestResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetSearchSuggestResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetSearchSuggestResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetSearchUsersResponse.cpp b/client/src/model/GetSearchUsersResponse.cpp deleted file mode 100644 index c9dad45..0000000 --- a/client/src/model/GetSearchUsersResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetSearchUsersResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetSearchUsersResponse::GetSearchUsersResponse() -{ - m_UsersIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetSearchUsersResponse::~GetSearchUsersResponse() -{ -} - -void GetSearchUsersResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetSearchUsersResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_UsersIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetSearchUsersResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); - setUsers(refVal_setUsers); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetSearchUsersResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_UsersIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetSearchUsersResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); - setUsers(refVal_setUsers); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetSearchUsersResponse::getUsers() const -{ - return m_Users; -} - - -void GetSearchUsersResponse::setUsers(const std::vector>& value) -{ - m_Users = value; - m_UsersIsSet = true; -} - -bool GetSearchUsersResponse::usersIsSet() const -{ - return m_UsersIsSet; -} - -void GetSearchUsersResponse::unsetUsers() -{ - m_UsersIsSet = false; -} -std::shared_ptr GetSearchUsersResponse::getStatus() const -{ - return m_Status; -} - - -void GetSearchUsersResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetSearchUsersResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetSearchUsersResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetSearchUsersResponse::getReason() const -{ - return m_Reason; -} - - -void GetSearchUsersResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetSearchUsersResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetSearchUsersResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetSearchUsersResponse::getCode() const -{ - return m_Code; -} - - -void GetSearchUsersResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetSearchUsersResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetSearchUsersResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetSearchUsersResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetSearchUsersResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetSearchUsersResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetSearchUsersResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetSearchUsersResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetSearchUsersResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetSearchUsersResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetSearchUsersResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetSearchUsersResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetSearchUsersResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetSearchUsersResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetSearchUsersResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetSearchUsersResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetSearchUsersResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetSearchUsersResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetSearchUsersResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetSearchUsersResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetSearchUsersResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetSearchUsersResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetSearchUsersResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantDailyUsagesResponse_1.cpp b/client/src/model/GetTenantDailyUsagesResponse_1.cpp deleted file mode 100644 index e3794a7..0000000 --- a/client/src/model/GetTenantDailyUsagesResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantDailyUsagesResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantDailyUsagesResponse_1::GetTenantDailyUsagesResponse_1() -{ - m_StatusIsSet = false; - m_TenantDailyUsagesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantDailyUsagesResponse_1::~GetTenantDailyUsagesResponse_1() -{ -} - -void GetTenantDailyUsagesResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantDailyUsagesResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantDailyUsagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))] = ModelBase::toJson(m_TenantDailyUsages); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantDailyUsagesResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setTenantDailyUsages; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantDailyUsages); - setTenantDailyUsages(refVal_setTenantDailyUsages); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantDailyUsagesResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantDailyUsagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages")), m_TenantDailyUsages)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantDailyUsagesResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages")))) - { - std::vector> refVal_setTenantDailyUsages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantDailyUsages"))), refVal_setTenantDailyUsages ); - setTenantDailyUsages(refVal_setTenantDailyUsages); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantDailyUsagesResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetTenantDailyUsagesResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantDailyUsagesResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantDailyUsagesResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetTenantDailyUsagesResponse_1::getTenantDailyUsages() const -{ - return m_TenantDailyUsages; -} - - -void GetTenantDailyUsagesResponse_1::setTenantDailyUsages(const std::vector>& value) -{ - m_TenantDailyUsages = value; - m_TenantDailyUsagesIsSet = true; -} - -bool GetTenantDailyUsagesResponse_1::tenantDailyUsagesIsSet() const -{ - return m_TenantDailyUsagesIsSet; -} - -void GetTenantDailyUsagesResponse_1::unsetTenantDailyUsages() -{ - m_TenantDailyUsagesIsSet = false; -} -utility::string_t GetTenantDailyUsagesResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetTenantDailyUsagesResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantDailyUsagesResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantDailyUsagesResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantDailyUsagesResponse_1::getCode() const -{ - return m_Code; -} - - -void GetTenantDailyUsagesResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantDailyUsagesResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantDailyUsagesResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantDailyUsagesResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantDailyUsagesResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantDailyUsagesResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantDailyUsagesResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantDailyUsagesResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantDailyUsagesResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantDailyUsagesResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantDailyUsagesResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantDailyUsagesResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantDailyUsagesResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantDailyUsagesResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantDailyUsagesResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantDailyUsagesResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantDailyUsagesResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantDailyUsagesResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantDailyUsagesResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantDailyUsagesResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantDailyUsagesResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantDailyUsagesResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantDailyUsagesResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantPackageResponse_1.cpp b/client/src/model/GetTenantPackageResponse_1.cpp deleted file mode 100644 index bf3ecba..0000000 --- a/client/src/model/GetTenantPackageResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantPackageResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantPackageResponse_1::GetTenantPackageResponse_1() -{ - m_StatusIsSet = false; - m_TenantPackageIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantPackageResponse_1::~GetTenantPackageResponse_1() -{ -} - -void GetTenantPackageResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantPackageResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantPackageIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))] = ModelBase::toJson(m_TenantPackage); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantPackageResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenantPackage; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantPackage); - setTenantPackage(refVal_setTenantPackage); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantPackageResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantPackageIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantPackage")), m_TenantPackage)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantPackageResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage")))) - { - std::shared_ptr refVal_setTenantPackage; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackage"))), refVal_setTenantPackage ); - setTenantPackage(refVal_setTenantPackage); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantPackageResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetTenantPackageResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantPackageResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantPackageResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetTenantPackageResponse_1::getTenantPackage() const -{ - return m_TenantPackage; -} - - -void GetTenantPackageResponse_1::setTenantPackage(const std::shared_ptr& value) -{ - m_TenantPackage = value; - m_TenantPackageIsSet = true; -} - -bool GetTenantPackageResponse_1::tenantPackageIsSet() const -{ - return m_TenantPackageIsSet; -} - -void GetTenantPackageResponse_1::unsetTenantPackage() -{ - m_TenantPackageIsSet = false; -} -utility::string_t GetTenantPackageResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetTenantPackageResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantPackageResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantPackageResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantPackageResponse_1::getCode() const -{ - return m_Code; -} - - -void GetTenantPackageResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantPackageResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantPackageResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantPackageResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantPackageResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantPackageResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantPackageResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantPackageResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantPackageResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantPackageResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantPackageResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantPackageResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantPackageResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantPackageResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantPackageResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantPackageResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantPackageResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantPackageResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantPackageResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantPackageResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantPackageResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantPackageResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantPackageResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantPackagesResponse_1.cpp b/client/src/model/GetTenantPackagesResponse_1.cpp deleted file mode 100644 index 5d48f0a..0000000 --- a/client/src/model/GetTenantPackagesResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantPackagesResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantPackagesResponse_1::GetTenantPackagesResponse_1() -{ - m_StatusIsSet = false; - m_TenantPackagesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantPackagesResponse_1::~GetTenantPackagesResponse_1() -{ -} - -void GetTenantPackagesResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantPackagesResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantPackagesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))] = ModelBase::toJson(m_TenantPackages); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantPackagesResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantPackages")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setTenantPackages; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantPackages); - setTenantPackages(refVal_setTenantPackages); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantPackagesResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantPackagesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantPackages")), m_TenantPackages)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantPackagesResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackages")))) - { - std::vector> refVal_setTenantPackages; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantPackages"))), refVal_setTenantPackages ); - setTenantPackages(refVal_setTenantPackages); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantPackagesResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetTenantPackagesResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantPackagesResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantPackagesResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetTenantPackagesResponse_1::getTenantPackages() const -{ - return m_TenantPackages; -} - - -void GetTenantPackagesResponse_1::setTenantPackages(const std::vector>& value) -{ - m_TenantPackages = value; - m_TenantPackagesIsSet = true; -} - -bool GetTenantPackagesResponse_1::tenantPackagesIsSet() const -{ - return m_TenantPackagesIsSet; -} - -void GetTenantPackagesResponse_1::unsetTenantPackages() -{ - m_TenantPackagesIsSet = false; -} -utility::string_t GetTenantPackagesResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetTenantPackagesResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantPackagesResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantPackagesResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantPackagesResponse_1::getCode() const -{ - return m_Code; -} - - -void GetTenantPackagesResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantPackagesResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantPackagesResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantPackagesResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantPackagesResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantPackagesResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantPackagesResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantPackagesResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantPackagesResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantPackagesResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantPackagesResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantPackagesResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantPackagesResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantPackagesResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantPackagesResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantPackagesResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantPackagesResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantPackagesResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantPackagesResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantPackagesResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantPackagesResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantPackagesResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantPackagesResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantResponse_1.cpp b/client/src/model/GetTenantResponse_1.cpp deleted file mode 100644 index 50b8776..0000000 --- a/client/src/model/GetTenantResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantResponse_1::GetTenantResponse_1() -{ - m_StatusIsSet = false; - m_TenantIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantResponse_1::~GetTenantResponse_1() -{ -} - -void GetTenantResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenant"))] = ModelBase::toJson(m_Tenant); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenant")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenant"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenant; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenant); - setTenant(refVal_setTenant); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenant")), m_Tenant)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenant")))) - { - std::shared_ptr refVal_setTenant; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenant"))), refVal_setTenant ); - setTenant(refVal_setTenant); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetTenantResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetTenantResponse_1::getTenant() const -{ - return m_Tenant; -} - - -void GetTenantResponse_1::setTenant(const std::shared_ptr& value) -{ - m_Tenant = value; - m_TenantIsSet = true; -} - -bool GetTenantResponse_1::tenantIsSet() const -{ - return m_TenantIsSet; -} - -void GetTenantResponse_1::unsetTenant() -{ - m_TenantIsSet = false; -} -utility::string_t GetTenantResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetTenantResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantResponse_1::getCode() const -{ - return m_Code; -} - - -void GetTenantResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantUserResponse_1.cpp b/client/src/model/GetTenantUserResponse_1.cpp deleted file mode 100644 index d02509a..0000000 --- a/client/src/model/GetTenantUserResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantUserResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantUserResponse_1::GetTenantUserResponse_1() -{ - m_StatusIsSet = false; - m_TenantUserIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantUserResponse_1::~GetTenantUserResponse_1() -{ -} - -void GetTenantUserResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantUserResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantUserIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantUser"))] = ModelBase::toJson(m_TenantUser); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantUserResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTenantUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantUser); - setTenantUser(refVal_setTenantUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantUserResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantUserIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantUser")), m_TenantUser)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantUserResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser")))) - { - std::shared_ptr refVal_setTenantUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantUser"))), refVal_setTenantUser ); - setTenantUser(refVal_setTenantUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantUserResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetTenantUserResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantUserResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantUserResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetTenantUserResponse_1::getTenantUser() const -{ - return m_TenantUser; -} - - -void GetTenantUserResponse_1::setTenantUser(const std::shared_ptr& value) -{ - m_TenantUser = value; - m_TenantUserIsSet = true; -} - -bool GetTenantUserResponse_1::tenantUserIsSet() const -{ - return m_TenantUserIsSet; -} - -void GetTenantUserResponse_1::unsetTenantUser() -{ - m_TenantUserIsSet = false; -} -utility::string_t GetTenantUserResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetTenantUserResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantUserResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantUserResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantUserResponse_1::getCode() const -{ - return m_Code; -} - - -void GetTenantUserResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantUserResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantUserResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantUserResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantUserResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantUserResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantUserResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantUserResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantUserResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantUserResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantUserResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantUserResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantUserResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantUserResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantUserResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantUserResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantUserResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantUserResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantUserResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantUserResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantUserResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantUserResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantUserResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantUsersResponse_1.cpp b/client/src/model/GetTenantUsersResponse_1.cpp deleted file mode 100644 index 37562c8..0000000 --- a/client/src/model/GetTenantUsersResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantUsersResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantUsersResponse_1::GetTenantUsersResponse_1() -{ - m_StatusIsSet = false; - m_TenantUsersIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantUsersResponse_1::~GetTenantUsersResponse_1() -{ -} - -void GetTenantUsersResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantUsersResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantUsersIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))] = ModelBase::toJson(m_TenantUsers); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantUsersResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenantUsers")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setTenantUsers; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenantUsers); - setTenantUsers(refVal_setTenantUsers); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantUsersResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantUsersIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenantUsers")), m_TenantUsers)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantUsersResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenantUsers")))) - { - std::vector> refVal_setTenantUsers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenantUsers"))), refVal_setTenantUsers ); - setTenantUsers(refVal_setTenantUsers); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantUsersResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetTenantUsersResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantUsersResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantUsersResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetTenantUsersResponse_1::getTenantUsers() const -{ - return m_TenantUsers; -} - - -void GetTenantUsersResponse_1::setTenantUsers(const std::vector>& value) -{ - m_TenantUsers = value; - m_TenantUsersIsSet = true; -} - -bool GetTenantUsersResponse_1::tenantUsersIsSet() const -{ - return m_TenantUsersIsSet; -} - -void GetTenantUsersResponse_1::unsetTenantUsers() -{ - m_TenantUsersIsSet = false; -} -utility::string_t GetTenantUsersResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetTenantUsersResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantUsersResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantUsersResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantUsersResponse_1::getCode() const -{ - return m_Code; -} - - -void GetTenantUsersResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantUsersResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantUsersResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantUsersResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantUsersResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantUsersResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantUsersResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantUsersResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantUsersResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantUsersResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantUsersResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantUsersResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantUsersResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantUsersResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantUsersResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantUsersResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantUsersResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantUsersResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantUsersResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantUsersResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantUsersResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantUsersResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantUsersResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTenantsResponse_1.cpp b/client/src/model/GetTenantsResponse_1.cpp deleted file mode 100644 index 21d6fc0..0000000 --- a/client/src/model/GetTenantsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTenantsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTenantsResponse_1::GetTenantsResponse_1() -{ - m_StatusIsSet = false; - m_TenantsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTenantsResponse_1::~GetTenantsResponse_1() -{ -} - -void GetTenantsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetTenantsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TenantsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tenants"))] = ModelBase::toJson(m_Tenants); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTenantsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tenants")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tenants"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setTenants; - ok &= ModelBase::fromJson(fieldValue, refVal_setTenants); - setTenants(refVal_setTenants); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTenantsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TenantsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tenants")), m_Tenants)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTenantsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tenants")))) - { - std::vector> refVal_setTenants; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tenants"))), refVal_setTenants ); - setTenants(refVal_setTenants); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTenantsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetTenantsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTenantsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTenantsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetTenantsResponse_1::getTenants() const -{ - return m_Tenants; -} - - -void GetTenantsResponse_1::setTenants(const std::vector>& value) -{ - m_Tenants = value; - m_TenantsIsSet = true; -} - -bool GetTenantsResponse_1::tenantsIsSet() const -{ - return m_TenantsIsSet; -} - -void GetTenantsResponse_1::unsetTenants() -{ - m_TenantsIsSet = false; -} -utility::string_t GetTenantsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetTenantsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTenantsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTenantsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTenantsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetTenantsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTenantsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTenantsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTenantsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTenantsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTenantsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTenantsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTenantsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTenantsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTenantsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTenantsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTenantsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTenantsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTenantsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTenantsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTenantsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTenantsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTenantsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTenantsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTenantsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTenantsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTenantsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTenantsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTicketResponse_1.cpp b/client/src/model/GetTicketResponse_1.cpp deleted file mode 100644 index ea7130f..0000000 --- a/client/src/model/GetTicketResponse_1.cpp +++ /dev/null @@ -1,558 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTicketResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTicketResponse_1::GetTicketResponse_1() -{ - m_StatusIsSet = false; - m_TicketIsSet = false; - m_AvailableStatesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTicketResponse_1::~GetTicketResponse_1() -{ -} - -void GetTicketResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetTicketResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TicketIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("ticket"))] = ModelBase::toJson(m_Ticket); - } - if(m_AvailableStatesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("availableStates"))] = ModelBase::toJson(m_AvailableStates); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTicketResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ticket"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromJson(fieldValue, refVal_setTicket); - setTicket(refVal_setTicket); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("availableStates")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("availableStates"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setAvailableStates; - ok &= ModelBase::fromJson(fieldValue, refVal_setAvailableStates); - setAvailableStates(refVal_setAvailableStates); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTicketResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TicketIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ticket")), m_Ticket)); - } - if(m_AvailableStatesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("availableStates")), m_AvailableStates)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTicketResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ticket")))) - { - std::shared_ptr refVal_setTicket; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ticket"))), refVal_setTicket ); - setTicket(refVal_setTicket); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("availableStates")))) - { - std::vector refVal_setAvailableStates; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("availableStates"))), refVal_setAvailableStates ); - setAvailableStates(refVal_setAvailableStates); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTicketResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetTicketResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTicketResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTicketResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetTicketResponse_1::getTicket() const -{ - return m_Ticket; -} - - -void GetTicketResponse_1::setTicket(const std::shared_ptr& value) -{ - m_Ticket = value; - m_TicketIsSet = true; -} - -bool GetTicketResponse_1::ticketIsSet() const -{ - return m_TicketIsSet; -} - -void GetTicketResponse_1::unsetTicket() -{ - m_TicketIsSet = false; -} -std::vector GetTicketResponse_1::getAvailableStates() const -{ - return m_AvailableStates; -} - -void GetTicketResponse_1::setAvailableStates(std::vector value) -{ - m_AvailableStates = value; - m_AvailableStatesIsSet = true; -} - -bool GetTicketResponse_1::availableStatesIsSet() const -{ - return m_AvailableStatesIsSet; -} - -void GetTicketResponse_1::unsetAvailableStates() -{ - m_AvailableStatesIsSet = false; -} -utility::string_t GetTicketResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetTicketResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTicketResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTicketResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTicketResponse_1::getCode() const -{ - return m_Code; -} - - -void GetTicketResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTicketResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTicketResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTicketResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTicketResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTicketResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTicketResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTicketResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTicketResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTicketResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTicketResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTicketResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTicketResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTicketResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTicketResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTicketResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTicketResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTicketResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTicketResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTicketResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTicketResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTicketResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTicketResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTicketsResponse_1.cpp b/client/src/model/GetTicketsResponse_1.cpp deleted file mode 100644 index 93eb75f..0000000 --- a/client/src/model/GetTicketsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTicketsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTicketsResponse_1::GetTicketsResponse_1() -{ - m_StatusIsSet = false; - m_TicketsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTicketsResponse_1::~GetTicketsResponse_1() -{ -} - -void GetTicketsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetTicketsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TicketsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("tickets"))] = ModelBase::toJson(m_Tickets); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTicketsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("tickets")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tickets"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setTickets; - ok &= ModelBase::fromJson(fieldValue, refVal_setTickets); - setTickets(refVal_setTickets); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTicketsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TicketsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tickets")), m_Tickets)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTicketsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tickets")))) - { - std::vector> refVal_setTickets; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tickets"))), refVal_setTickets ); - setTickets(refVal_setTickets); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetTicketsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetTicketsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTicketsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTicketsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetTicketsResponse_1::getTickets() const -{ - return m_Tickets; -} - - -void GetTicketsResponse_1::setTickets(const std::vector>& value) -{ - m_Tickets = value; - m_TicketsIsSet = true; -} - -bool GetTicketsResponse_1::ticketsIsSet() const -{ - return m_TicketsIsSet; -} - -void GetTicketsResponse_1::unsetTickets() -{ - m_TicketsIsSet = false; -} -utility::string_t GetTicketsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetTicketsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTicketsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTicketsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTicketsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetTicketsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTicketsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTicketsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTicketsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTicketsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTicketsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTicketsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTicketsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTicketsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTicketsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTicketsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTicketsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTicketsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTicketsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTicketsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTicketsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTicketsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTicketsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTicketsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTicketsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTicketsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTicketsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTicketsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTranslationsResponse_1.cpp b/client/src/model/GetTranslationsResponse_1.cpp deleted file mode 100644 index ebc44aa..0000000 --- a/client/src/model/GetTranslationsResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTranslationsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTranslationsResponse_1::GetTranslationsResponse_1() -{ - m_TranslationsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTranslationsResponse_1::~GetTranslationsResponse_1() -{ -} - -void GetTranslationsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetTranslationsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_TranslationsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTranslationsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translations")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translations"))); - if(!fieldValue.is_null()) - { - std::map refVal_setTranslations; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslations); - setTranslations(refVal_setTranslations); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTranslationsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_TranslationsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTranslationsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translations")))) - { - std::map refVal_setTranslations; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translations"))), refVal_setTranslations ); - setTranslations(refVal_setTranslations); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::map GetTranslationsResponse_1::getTranslations() const -{ - return m_Translations; -} - - -void GetTranslationsResponse_1::setTranslations(const std::map& value) -{ - m_Translations = value; - m_TranslationsIsSet = true; -} - -bool GetTranslationsResponse_1::translationsIsSet() const -{ - return m_TranslationsIsSet; -} - -void GetTranslationsResponse_1::unsetTranslations() -{ - m_TranslationsIsSet = false; -} -std::shared_ptr GetTranslationsResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetTranslationsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTranslationsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTranslationsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetTranslationsResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetTranslationsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTranslationsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTranslationsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTranslationsResponse_1::getCode() const -{ - return m_Code; -} - - -void GetTranslationsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTranslationsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTranslationsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTranslationsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTranslationsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTranslationsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTranslationsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTranslationsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTranslationsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTranslationsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTranslationsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTranslationsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTranslationsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTranslationsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTranslationsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTranslationsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTranslationsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTranslationsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTranslationsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTranslationsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTranslationsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTranslationsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTranslationsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTrustFactorResponse.cpp b/client/src/model/GetTrustFactorResponse.cpp deleted file mode 100644 index d492056..0000000 --- a/client/src/model/GetTrustFactorResponse.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTrustFactorResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTrustFactorResponse::GetTrustFactorResponse() -{ - m_ManualTrustFactor = 0.0; - m_ManualTrustFactorIsSet = false; - m_AutoTrustFactor = 0.0; - m_AutoTrustFactorIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetTrustFactorResponse::~GetTrustFactorResponse() -{ -} - -void GetTrustFactorResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetTrustFactorResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_ManualTrustFactorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))] = ModelBase::toJson(m_ManualTrustFactor); - } - if(m_AutoTrustFactorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))] = ModelBase::toJson(m_AutoTrustFactor); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetTrustFactorResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))); - if(!fieldValue.is_null()) - { - double refVal_setManualTrustFactor; - ok &= ModelBase::fromJson(fieldValue, refVal_setManualTrustFactor); - setManualTrustFactor(refVal_setManualTrustFactor); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))); - if(!fieldValue.is_null()) - { - double refVal_setAutoTrustFactor; - ok &= ModelBase::fromJson(fieldValue, refVal_setAutoTrustFactor); - setAutoTrustFactor(refVal_setAutoTrustFactor); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetTrustFactorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_ManualTrustFactorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor")), m_ManualTrustFactor)); - } - if(m_AutoTrustFactorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor")), m_AutoTrustFactor)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetTrustFactorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor")))) - { - double refVal_setManualTrustFactor; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("manualTrustFactor"))), refVal_setManualTrustFactor ); - setManualTrustFactor(refVal_setManualTrustFactor); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor")))) - { - double refVal_setAutoTrustFactor; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("autoTrustFactor"))), refVal_setAutoTrustFactor ); - setAutoTrustFactor(refVal_setAutoTrustFactor); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -double GetTrustFactorResponse::getManualTrustFactor() const -{ - return m_ManualTrustFactor; -} - -void GetTrustFactorResponse::setManualTrustFactor(double value) -{ - m_ManualTrustFactor = value; - m_ManualTrustFactorIsSet = true; -} - -bool GetTrustFactorResponse::manualTrustFactorIsSet() const -{ - return m_ManualTrustFactorIsSet; -} - -void GetTrustFactorResponse::unsetManualTrustFactor() -{ - m_ManualTrustFactorIsSet = false; -} -double GetTrustFactorResponse::getAutoTrustFactor() const -{ - return m_AutoTrustFactor; -} - -void GetTrustFactorResponse::setAutoTrustFactor(double value) -{ - m_AutoTrustFactor = value; - m_AutoTrustFactorIsSet = true; -} - -bool GetTrustFactorResponse::autoTrustFactorIsSet() const -{ - return m_AutoTrustFactorIsSet; -} - -void GetTrustFactorResponse::unsetAutoTrustFactor() -{ - m_AutoTrustFactorIsSet = false; -} -std::shared_ptr GetTrustFactorResponse::getStatus() const -{ - return m_Status; -} - - -void GetTrustFactorResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTrustFactorResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTrustFactorResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetTrustFactorResponse::getReason() const -{ - return m_Reason; -} - - -void GetTrustFactorResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTrustFactorResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTrustFactorResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTrustFactorResponse::getCode() const -{ - return m_Code; -} - - -void GetTrustFactorResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTrustFactorResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTrustFactorResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTrustFactorResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTrustFactorResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTrustFactorResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTrustFactorResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTrustFactorResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTrustFactorResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTrustFactorResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTrustFactorResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTrustFactorResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTrustFactorResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTrustFactorResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTrustFactorResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTrustFactorResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTrustFactorResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTrustFactorResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTrustFactorResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTrustFactorResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTrustFactorResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTrustFactorResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTrustFactorResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserBadgeProgressByIdResponse.cpp b/client/src/model/GetUserBadgeProgressByIdResponse.cpp deleted file mode 100644 index fe0b2cc..0000000 --- a/client/src/model/GetUserBadgeProgressByIdResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserBadgeProgressByIdResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserBadgeProgressByIdResponse::GetUserBadgeProgressByIdResponse() -{ - m_StatusIsSet = false; - m_UserBadgeProgressIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserBadgeProgressByIdResponse::~GetUserBadgeProgressByIdResponse() -{ -} - -void GetUserBadgeProgressByIdResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserBadgeProgressByIdResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgeProgressIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))] = ModelBase::toJson(m_UserBadgeProgress); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserBadgeProgressByIdResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUserBadgeProgress; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadgeProgress); - setUserBadgeProgress(refVal_setUserBadgeProgress); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserBadgeProgressByIdResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgeProgressIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")), m_UserBadgeProgress)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserBadgeProgressByIdResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")))) - { - std::shared_ptr refVal_setUserBadgeProgress; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))), refVal_setUserBadgeProgress ); - setUserBadgeProgress(refVal_setUserBadgeProgress); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserBadgeProgressByIdResponse::getStatus() const -{ - return m_Status; -} - - -void GetUserBadgeProgressByIdResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserBadgeProgressByIdResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserBadgeProgressByIdResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetUserBadgeProgressByIdResponse::getUserBadgeProgress() const -{ - return m_UserBadgeProgress; -} - - -void GetUserBadgeProgressByIdResponse::setUserBadgeProgress(const std::shared_ptr& value) -{ - m_UserBadgeProgress = value; - m_UserBadgeProgressIsSet = true; -} - -bool GetUserBadgeProgressByIdResponse::userBadgeProgressIsSet() const -{ - return m_UserBadgeProgressIsSet; -} - -void GetUserBadgeProgressByIdResponse::unsetUserBadgeProgress() -{ - m_UserBadgeProgressIsSet = false; -} -utility::string_t GetUserBadgeProgressByIdResponse::getReason() const -{ - return m_Reason; -} - - -void GetUserBadgeProgressByIdResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserBadgeProgressByIdResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserBadgeProgressByIdResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserBadgeProgressByIdResponse::getCode() const -{ - return m_Code; -} - - -void GetUserBadgeProgressByIdResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserBadgeProgressByIdResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserBadgeProgressByIdResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserBadgeProgressByIdResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserBadgeProgressByIdResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserBadgeProgressByIdResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserBadgeProgressByIdResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserBadgeProgressByIdResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserBadgeProgressByIdResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserBadgeProgressByIdResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserBadgeProgressByIdResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserBadgeProgressByIdResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserBadgeProgressByIdResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserBadgeProgressByIdResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserBadgeProgressByIdResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserBadgeProgressByIdResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserBadgeProgressByIdResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserBadgeProgressByIdResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserBadgeProgressByIdResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserBadgeProgressByIdResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserBadgeProgressByIdResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserBadgeProgressByIdResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserBadgeProgressByIdResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserBadgeProgressByUserIdResponse.cpp b/client/src/model/GetUserBadgeProgressByUserIdResponse.cpp deleted file mode 100644 index 2462756..0000000 --- a/client/src/model/GetUserBadgeProgressByUserIdResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserBadgeProgressByUserIdResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserBadgeProgressByUserIdResponse::GetUserBadgeProgressByUserIdResponse() -{ - m_StatusIsSet = false; - m_UserBadgeProgressIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserBadgeProgressByUserIdResponse::~GetUserBadgeProgressByUserIdResponse() -{ -} - -void GetUserBadgeProgressByUserIdResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserBadgeProgressByUserIdResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgeProgressIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))] = ModelBase::toJson(m_UserBadgeProgress); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserBadgeProgressByUserIdResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUserBadgeProgress; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadgeProgress); - setUserBadgeProgress(refVal_setUserBadgeProgress); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserBadgeProgressByUserIdResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgeProgressIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")), m_UserBadgeProgress)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserBadgeProgressByUserIdResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress")))) - { - std::shared_ptr refVal_setUserBadgeProgress; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgress"))), refVal_setUserBadgeProgress ); - setUserBadgeProgress(refVal_setUserBadgeProgress); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserBadgeProgressByUserIdResponse::getStatus() const -{ - return m_Status; -} - - -void GetUserBadgeProgressByUserIdResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserBadgeProgressByUserIdResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserBadgeProgressByUserIdResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetUserBadgeProgressByUserIdResponse::getUserBadgeProgress() const -{ - return m_UserBadgeProgress; -} - - -void GetUserBadgeProgressByUserIdResponse::setUserBadgeProgress(const std::shared_ptr& value) -{ - m_UserBadgeProgress = value; - m_UserBadgeProgressIsSet = true; -} - -bool GetUserBadgeProgressByUserIdResponse::userBadgeProgressIsSet() const -{ - return m_UserBadgeProgressIsSet; -} - -void GetUserBadgeProgressByUserIdResponse::unsetUserBadgeProgress() -{ - m_UserBadgeProgressIsSet = false; -} -utility::string_t GetUserBadgeProgressByUserIdResponse::getReason() const -{ - return m_Reason; -} - - -void GetUserBadgeProgressByUserIdResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserBadgeProgressByUserIdResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserBadgeProgressByUserIdResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserBadgeProgressByUserIdResponse::getCode() const -{ - return m_Code; -} - - -void GetUserBadgeProgressByUserIdResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserBadgeProgressByUserIdResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserBadgeProgressByUserIdResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserBadgeProgressByUserIdResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserBadgeProgressByUserIdResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserBadgeProgressByUserIdResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserBadgeProgressByUserIdResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserBadgeProgressByUserIdResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserBadgeProgressByUserIdResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserBadgeProgressByUserIdResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserBadgeProgressByUserIdResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserBadgeProgressByUserIdResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserBadgeProgressByUserIdResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserBadgeProgressByUserIdResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserBadgeProgressByUserIdResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserBadgeProgressByUserIdResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserBadgeProgressByUserIdResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserBadgeProgressByUserIdResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserBadgeProgressByUserIdResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserBadgeProgressByUserIdResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserBadgeProgressByUserIdResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserBadgeProgressByUserIdResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserBadgeProgressByUserIdResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserBadgeProgressListResponse.cpp b/client/src/model/GetUserBadgeProgressListResponse.cpp deleted file mode 100644 index 8eccde7..0000000 --- a/client/src/model/GetUserBadgeProgressListResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserBadgeProgressListResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserBadgeProgressListResponse::GetUserBadgeProgressListResponse() -{ - m_StatusIsSet = false; - m_UserBadgeProgressesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserBadgeProgressListResponse::~GetUserBadgeProgressListResponse() -{ -} - -void GetUserBadgeProgressListResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserBadgeProgressListResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgeProgressesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))] = ModelBase::toJson(m_UserBadgeProgresses); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserBadgeProgressListResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUserBadgeProgresses; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadgeProgresses); - setUserBadgeProgresses(refVal_setUserBadgeProgresses); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserBadgeProgressListResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgeProgressesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses")), m_UserBadgeProgresses)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserBadgeProgressListResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses")))) - { - std::vector> refVal_setUserBadgeProgresses; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadgeProgresses"))), refVal_setUserBadgeProgresses ); - setUserBadgeProgresses(refVal_setUserBadgeProgresses); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserBadgeProgressListResponse::getStatus() const -{ - return m_Status; -} - - -void GetUserBadgeProgressListResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserBadgeProgressListResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserBadgeProgressListResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetUserBadgeProgressListResponse::getUserBadgeProgresses() const -{ - return m_UserBadgeProgresses; -} - - -void GetUserBadgeProgressListResponse::setUserBadgeProgresses(const std::vector>& value) -{ - m_UserBadgeProgresses = value; - m_UserBadgeProgressesIsSet = true; -} - -bool GetUserBadgeProgressListResponse::userBadgeProgressesIsSet() const -{ - return m_UserBadgeProgressesIsSet; -} - -void GetUserBadgeProgressListResponse::unsetUserBadgeProgresses() -{ - m_UserBadgeProgressesIsSet = false; -} -utility::string_t GetUserBadgeProgressListResponse::getReason() const -{ - return m_Reason; -} - - -void GetUserBadgeProgressListResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserBadgeProgressListResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserBadgeProgressListResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserBadgeProgressListResponse::getCode() const -{ - return m_Code; -} - - -void GetUserBadgeProgressListResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserBadgeProgressListResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserBadgeProgressListResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserBadgeProgressListResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserBadgeProgressListResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserBadgeProgressListResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserBadgeProgressListResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserBadgeProgressListResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserBadgeProgressListResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserBadgeProgressListResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserBadgeProgressListResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserBadgeProgressListResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserBadgeProgressListResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserBadgeProgressListResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserBadgeProgressListResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserBadgeProgressListResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserBadgeProgressListResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserBadgeProgressListResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserBadgeProgressListResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserBadgeProgressListResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserBadgeProgressListResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserBadgeProgressListResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserBadgeProgressListResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserBadgeResponse.cpp b/client/src/model/GetUserBadgeResponse.cpp deleted file mode 100644 index 2a4da04..0000000 --- a/client/src/model/GetUserBadgeResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserBadgeResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserBadgeResponse::GetUserBadgeResponse() -{ - m_StatusIsSet = false; - m_UserBadgeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserBadgeResponse::~GetUserBadgeResponse() -{ -} - -void GetUserBadgeResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserBadgeResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadge"))] = ModelBase::toJson(m_UserBadge); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserBadgeResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadge"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUserBadge; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadge); - setUserBadge(refVal_setUserBadge); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadge")), m_UserBadge)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadge")))) - { - std::shared_ptr refVal_setUserBadge; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadge"))), refVal_setUserBadge ); - setUserBadge(refVal_setUserBadge); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserBadgeResponse::getStatus() const -{ - return m_Status; -} - - -void GetUserBadgeResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserBadgeResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserBadgeResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetUserBadgeResponse::getUserBadge() const -{ - return m_UserBadge; -} - - -void GetUserBadgeResponse::setUserBadge(const std::shared_ptr& value) -{ - m_UserBadge = value; - m_UserBadgeIsSet = true; -} - -bool GetUserBadgeResponse::userBadgeIsSet() const -{ - return m_UserBadgeIsSet; -} - -void GetUserBadgeResponse::unsetUserBadge() -{ - m_UserBadgeIsSet = false; -} -utility::string_t GetUserBadgeResponse::getReason() const -{ - return m_Reason; -} - - -void GetUserBadgeResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserBadgeResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserBadgeResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserBadgeResponse::getCode() const -{ - return m_Code; -} - - -void GetUserBadgeResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserBadgeResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserBadgeResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserBadgeResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserBadgeResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserBadgeResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserBadgeResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserBadgeResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserBadgeResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserBadgeResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserBadgeResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserBadgeResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserBadgeResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserBadgeResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserBadgeResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserBadgeResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserBadgeResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserBadgeResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserBadgeResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserBadgeResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserBadgeResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserBadgeResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserBadgeResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserBadgesResponse.cpp b/client/src/model/GetUserBadgesResponse.cpp deleted file mode 100644 index 39ac783..0000000 --- a/client/src/model/GetUserBadgesResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserBadgesResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserBadgesResponse::GetUserBadgesResponse() -{ - m_StatusIsSet = false; - m_UserBadgesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserBadgesResponse::~GetUserBadgesResponse() -{ -} - -void GetUserBadgesResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserBadgesResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserBadgesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userBadges"))] = ModelBase::toJson(m_UserBadges); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserBadgesResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userBadges")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userBadges"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUserBadges; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserBadges); - setUserBadges(refVal_setUserBadges); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserBadgesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserBadgesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userBadges")), m_UserBadges)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserBadgesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userBadges")))) - { - std::vector> refVal_setUserBadges; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userBadges"))), refVal_setUserBadges ); - setUserBadges(refVal_setUserBadges); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserBadgesResponse::getStatus() const -{ - return m_Status; -} - - -void GetUserBadgesResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserBadgesResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserBadgesResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetUserBadgesResponse::getUserBadges() const -{ - return m_UserBadges; -} - - -void GetUserBadgesResponse::setUserBadges(const std::vector>& value) -{ - m_UserBadges = value; - m_UserBadgesIsSet = true; -} - -bool GetUserBadgesResponse::userBadgesIsSet() const -{ - return m_UserBadgesIsSet; -} - -void GetUserBadgesResponse::unsetUserBadges() -{ - m_UserBadgesIsSet = false; -} -utility::string_t GetUserBadgesResponse::getReason() const -{ - return m_Reason; -} - - -void GetUserBadgesResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserBadgesResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserBadgesResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserBadgesResponse::getCode() const -{ - return m_Code; -} - - -void GetUserBadgesResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserBadgesResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserBadgesResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserBadgesResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserBadgesResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserBadgesResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserBadgesResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserBadgesResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserBadgesResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserBadgesResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserBadgesResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserBadgesResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserBadgesResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserBadgesResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserBadgesResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserBadgesResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserBadgesResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserBadgesResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserBadgesResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserBadgesResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserBadgesResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserBadgesResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserBadgesResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserBanPreferenceResponse.cpp b/client/src/model/GetUserBanPreferenceResponse.cpp deleted file mode 100644 index bbc4c98..0000000 --- a/client/src/model/GetUserBanPreferenceResponse.cpp +++ /dev/null @@ -1,509 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserBanPreferenceResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserBanPreferenceResponse::GetUserBanPreferenceResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserBanPreferenceResponse::~GetUserBanPreferenceResponse() -{ -} - -void GetUserBanPreferenceResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserBanPreferenceResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_Preferences.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("preferences"))] = ModelBase::toJson(m_Preferences.get()); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserBanPreferenceResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("preferences")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("preferences"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setPreferences; - ok &= ModelBase::fromJson(fieldValue, refVal_setPreferences); - setPreferences(refVal_setPreferences); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserBanPreferenceResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_Preferences.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("preferences")), m_Preferences.get())); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserBanPreferenceResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("preferences")))) - { - std::shared_ptr refVal_setPreferences; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("preferences"))), refVal_setPreferences ); - setPreferences(refVal_setPreferences); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserBanPreferenceResponse::getPreferences() const -{ - return m_Preferences.get(); -} - - -void GetUserBanPreferenceResponse::setPreferences(const std::shared_ptr& value) -{ - m_Preferences = value; -} - -bool GetUserBanPreferenceResponse::preferencesIsSet() const -{ - return m_Preferences.has_value(); -} - -void GetUserBanPreferenceResponse::unsetPreferences() -{ - m_Preferences.reset(); -} -std::shared_ptr GetUserBanPreferenceResponse::getStatus() const -{ - return m_Status; -} - - -void GetUserBanPreferenceResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserBanPreferenceResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserBanPreferenceResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetUserBanPreferenceResponse::getReason() const -{ - return m_Reason; -} - - -void GetUserBanPreferenceResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserBanPreferenceResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserBanPreferenceResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserBanPreferenceResponse::getCode() const -{ - return m_Code; -} - - -void GetUserBanPreferenceResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserBanPreferenceResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserBanPreferenceResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserBanPreferenceResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserBanPreferenceResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserBanPreferenceResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserBanPreferenceResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserBanPreferenceResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserBanPreferenceResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserBanPreferenceResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserBanPreferenceResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserBanPreferenceResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserBanPreferenceResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserBanPreferenceResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserBanPreferenceResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserBanPreferenceResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserBanPreferenceResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserBanPreferenceResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserBanPreferenceResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserBanPreferenceResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserBanPreferenceResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserBanPreferenceResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserBanPreferenceResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserInternalProfileResponse_1.cpp b/client/src/model/GetUserInternalProfileResponse_1.cpp deleted file mode 100644 index 51068d1..0000000 --- a/client/src/model/GetUserInternalProfileResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserInternalProfileResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserInternalProfileResponse_1::GetUserInternalProfileResponse_1() -{ - m_ProfileIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserInternalProfileResponse_1::~GetUserInternalProfileResponse_1() -{ -} - -void GetUserInternalProfileResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserInternalProfileResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_ProfileIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("profile"))] = ModelBase::toJson(m_Profile); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserInternalProfileResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("profile")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("profile"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setProfile; - ok &= ModelBase::fromJson(fieldValue, refVal_setProfile); - setProfile(refVal_setProfile); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserInternalProfileResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_ProfileIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("profile")), m_Profile)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserInternalProfileResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("profile")))) - { - std::shared_ptr refVal_setProfile; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("profile"))), refVal_setProfile ); - setProfile(refVal_setProfile); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserInternalProfileResponse_1::getProfile() const -{ - return m_Profile; -} - - -void GetUserInternalProfileResponse_1::setProfile(const std::shared_ptr& value) -{ - m_Profile = value; - m_ProfileIsSet = true; -} - -bool GetUserInternalProfileResponse_1::profileIsSet() const -{ - return m_ProfileIsSet; -} - -void GetUserInternalProfileResponse_1::unsetProfile() -{ - m_ProfileIsSet = false; -} -std::shared_ptr GetUserInternalProfileResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetUserInternalProfileResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserInternalProfileResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserInternalProfileResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetUserInternalProfileResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetUserInternalProfileResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserInternalProfileResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserInternalProfileResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserInternalProfileResponse_1::getCode() const -{ - return m_Code; -} - - -void GetUserInternalProfileResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserInternalProfileResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserInternalProfileResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserInternalProfileResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserInternalProfileResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserInternalProfileResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserInternalProfileResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserInternalProfileResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserInternalProfileResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserInternalProfileResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserInternalProfileResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserInternalProfileResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserInternalProfileResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserInternalProfileResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserInternalProfileResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserInternalProfileResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserInternalProfileResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserInternalProfileResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserInternalProfileResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserInternalProfileResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserInternalProfileResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserInternalProfileResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserInternalProfileResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserNotificationCountResponse_1.cpp b/client/src/model/GetUserNotificationCountResponse_1.cpp deleted file mode 100644 index 377d48b..0000000 --- a/client/src/model/GetUserNotificationCountResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserNotificationCountResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserNotificationCountResponse_1::GetUserNotificationCountResponse_1() -{ - m_StatusIsSet = false; - m_Count = 0L; - m_CountIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserNotificationCountResponse_1::~GetUserNotificationCountResponse_1() -{ -} - -void GetUserNotificationCountResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserNotificationCountResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("count"))] = ModelBase::toJson(m_Count); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserNotificationCountResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("count"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCount); - setCount(refVal_setCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserNotificationCountResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("count")), m_Count)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserNotificationCountResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("count")))) - { - int64_t refVal_setCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("count"))), refVal_setCount ); - setCount(refVal_setCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserNotificationCountResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetUserNotificationCountResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserNotificationCountResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserNotificationCountResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -int64_t GetUserNotificationCountResponse_1::getCount() const -{ - return m_Count; -} - -void GetUserNotificationCountResponse_1::setCount(int64_t value) -{ - m_Count = value; - m_CountIsSet = true; -} - -bool GetUserNotificationCountResponse_1::countIsSet() const -{ - return m_CountIsSet; -} - -void GetUserNotificationCountResponse_1::unsetCount() -{ - m_CountIsSet = false; -} -utility::string_t GetUserNotificationCountResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetUserNotificationCountResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserNotificationCountResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserNotificationCountResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserNotificationCountResponse_1::getCode() const -{ - return m_Code; -} - - -void GetUserNotificationCountResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserNotificationCountResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserNotificationCountResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserNotificationCountResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserNotificationCountResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserNotificationCountResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserNotificationCountResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserNotificationCountResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserNotificationCountResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserNotificationCountResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserNotificationCountResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserNotificationCountResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserNotificationCountResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserNotificationCountResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserNotificationCountResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserNotificationCountResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserNotificationCountResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserNotificationCountResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserNotificationCountResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserNotificationCountResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserNotificationCountResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserNotificationCountResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserNotificationCountResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserNotificationsResponse.cpp b/client/src/model/GetUserNotificationsResponse.cpp deleted file mode 100644 index 15f8c2d..0000000 --- a/client/src/model/GetUserNotificationsResponse.cpp +++ /dev/null @@ -1,655 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserNotificationsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserNotificationsResponse::GetUserNotificationsResponse() -{ - m_TranslationsIsSet = false; - m_IsSubscribed = false; - m_IsSubscribedIsSet = false; - m_HasMore = false; - m_HasMoreIsSet = false; - m_NotificationsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserNotificationsResponse::~GetUserNotificationsResponse() -{ -} - -void GetUserNotificationsResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserNotificationsResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_TranslationsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); - } - if(m_IsSubscribedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))] = ModelBase::toJson(m_IsSubscribed); - } - if(m_HasMoreIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hasMore"))] = ModelBase::toJson(m_HasMore); - } - if(m_NotificationsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("notifications"))] = ModelBase::toJson(m_Notifications); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserNotificationsResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translations")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translations"))); - if(!fieldValue.is_null()) - { - std::map refVal_setTranslations; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslations); - setTranslations(refVal_setTranslations); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isSubscribed")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsSubscribed; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsSubscribed); - setIsSubscribed(refVal_setIsSubscribed); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hasMore"))); - if(!fieldValue.is_null()) - { - bool refVal_setHasMore; - ok &= ModelBase::fromJson(fieldValue, refVal_setHasMore); - setHasMore(refVal_setHasMore); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notifications")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notifications"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setNotifications; - ok &= ModelBase::fromJson(fieldValue, refVal_setNotifications); - setNotifications(refVal_setNotifications); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserNotificationsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_TranslationsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); - } - if(m_IsSubscribedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isSubscribed")), m_IsSubscribed)); - } - if(m_HasMoreIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hasMore")), m_HasMore)); - } - if(m_NotificationsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notifications")), m_Notifications)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserNotificationsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translations")))) - { - std::map refVal_setTranslations; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translations"))), refVal_setTranslations ); - setTranslations(refVal_setTranslations); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isSubscribed")))) - { - bool refVal_setIsSubscribed; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isSubscribed"))), refVal_setIsSubscribed ); - setIsSubscribed(refVal_setIsSubscribed); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hasMore")))) - { - bool refVal_setHasMore; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hasMore"))), refVal_setHasMore ); - setHasMore(refVal_setHasMore); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notifications")))) - { - std::vector> refVal_setNotifications; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notifications"))), refVal_setNotifications ); - setNotifications(refVal_setNotifications); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::map GetUserNotificationsResponse::getTranslations() const -{ - return m_Translations; -} - - -void GetUserNotificationsResponse::setTranslations(const std::map& value) -{ - m_Translations = value; - m_TranslationsIsSet = true; -} - -bool GetUserNotificationsResponse::translationsIsSet() const -{ - return m_TranslationsIsSet; -} - -void GetUserNotificationsResponse::unsetTranslations() -{ - m_TranslationsIsSet = false; -} -bool GetUserNotificationsResponse::isIsSubscribed() const -{ - return m_IsSubscribed; -} - -void GetUserNotificationsResponse::setIsSubscribed(bool value) -{ - m_IsSubscribed = value; - m_IsSubscribedIsSet = true; -} - -bool GetUserNotificationsResponse::isSubscribedIsSet() const -{ - return m_IsSubscribedIsSet; -} - -void GetUserNotificationsResponse::unsetIsSubscribed() -{ - m_IsSubscribedIsSet = false; -} -bool GetUserNotificationsResponse::isHasMore() const -{ - return m_HasMore; -} - -void GetUserNotificationsResponse::setHasMore(bool value) -{ - m_HasMore = value; - m_HasMoreIsSet = true; -} - -bool GetUserNotificationsResponse::hasMoreIsSet() const -{ - return m_HasMoreIsSet; -} - -void GetUserNotificationsResponse::unsetHasMore() -{ - m_HasMoreIsSet = false; -} -std::vector> GetUserNotificationsResponse::getNotifications() const -{ - return m_Notifications; -} - - -void GetUserNotificationsResponse::setNotifications(const std::vector>& value) -{ - m_Notifications = value; - m_NotificationsIsSet = true; -} - -bool GetUserNotificationsResponse::notificationsIsSet() const -{ - return m_NotificationsIsSet; -} - -void GetUserNotificationsResponse::unsetNotifications() -{ - m_NotificationsIsSet = false; -} -std::shared_ptr GetUserNotificationsResponse::getStatus() const -{ - return m_Status; -} - - -void GetUserNotificationsResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserNotificationsResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserNotificationsResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetUserNotificationsResponse::getReason() const -{ - return m_Reason; -} - - -void GetUserNotificationsResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserNotificationsResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserNotificationsResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserNotificationsResponse::getCode() const -{ - return m_Code; -} - - -void GetUserNotificationsResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserNotificationsResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserNotificationsResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserNotificationsResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserNotificationsResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserNotificationsResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserNotificationsResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserNotificationsResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserNotificationsResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserNotificationsResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserNotificationsResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserNotificationsResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserNotificationsResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserNotificationsResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserNotificationsResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserNotificationsResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserNotificationsResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserNotificationsResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserNotificationsResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserNotificationsResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserNotificationsResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserNotificationsResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserNotificationsResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserPresenceStatusesResponse_1.cpp b/client/src/model/GetUserPresenceStatusesResponse_1.cpp deleted file mode 100644 index 8efb3cf..0000000 --- a/client/src/model/GetUserPresenceStatusesResponse_1.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserPresenceStatusesResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserPresenceStatusesResponse_1::GetUserPresenceStatusesResponse_1() -{ - m_StatusIsSet = false; - m_UserIdsOnlineIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserPresenceStatusesResponse_1::~GetUserPresenceStatusesResponse_1() -{ -} - -void GetUserPresenceStatusesResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserPresenceStatusesResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserIdsOnlineIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))] = ModelBase::toJson(m_UserIdsOnline); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserPresenceStatusesResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))); - if(!fieldValue.is_null()) - { - std::map refVal_setUserIdsOnline; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserIdsOnline); - setUserIdsOnline(refVal_setUserIdsOnline); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserPresenceStatusesResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserIdsOnlineIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIdsOnline")), m_UserIdsOnline)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserPresenceStatusesResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline")))) - { - std::map refVal_setUserIdsOnline; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIdsOnline"))), refVal_setUserIdsOnline ); - setUserIdsOnline(refVal_setUserIdsOnline); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserPresenceStatusesResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetUserPresenceStatusesResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserPresenceStatusesResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserPresenceStatusesResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map GetUserPresenceStatusesResponse_1::getUserIdsOnline() const -{ - return m_UserIdsOnline; -} - -void GetUserPresenceStatusesResponse_1::setUserIdsOnline(std::map value) -{ - m_UserIdsOnline = value; - m_UserIdsOnlineIsSet = true; -} - -bool GetUserPresenceStatusesResponse_1::userIdsOnlineIsSet() const -{ - return m_UserIdsOnlineIsSet; -} - -void GetUserPresenceStatusesResponse_1::unsetUserIdsOnline() -{ - m_UserIdsOnlineIsSet = false; -} -utility::string_t GetUserPresenceStatusesResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetUserPresenceStatusesResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserPresenceStatusesResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserPresenceStatusesResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserPresenceStatusesResponse_1::getCode() const -{ - return m_Code; -} - - -void GetUserPresenceStatusesResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserPresenceStatusesResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserPresenceStatusesResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserPresenceStatusesResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserPresenceStatusesResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserPresenceStatusesResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserPresenceStatusesResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserPresenceStatusesResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserPresenceStatusesResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserPresenceStatusesResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserPresenceStatusesResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserPresenceStatusesResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserPresenceStatusesResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserPresenceStatusesResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserPresenceStatusesResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserPresenceStatusesResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserPresenceStatusesResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserPresenceStatusesResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserPresenceStatusesResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserPresenceStatusesResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserPresenceStatusesResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserPresenceStatusesResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserPresenceStatusesResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserReactsPublicResponse.cpp b/client/src/model/GetUserReactsPublicResponse.cpp deleted file mode 100644 index c1d884a..0000000 --- a/client/src/model/GetUserReactsPublicResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserReactsPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserReactsPublicResponse::GetUserReactsPublicResponse() -{ - m_StatusIsSet = false; - m_ReactsIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserReactsPublicResponse::~GetUserReactsPublicResponse() -{ -} - -void GetUserReactsPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserReactsPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReactsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reacts"))] = ModelBase::toJson(m_Reacts); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserReactsPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reacts")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reacts"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setReacts; - ok &= ModelBase::fromJson(fieldValue, refVal_setReacts); - setReacts(refVal_setReacts); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserReactsPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReactsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reacts")), m_Reacts)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserReactsPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reacts")))) - { - std::map> refVal_setReacts; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reacts"))), refVal_setReacts ); - setReacts(refVal_setReacts); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserReactsPublicResponse::getStatus() const -{ - return m_Status; -} - - -void GetUserReactsPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserReactsPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserReactsPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map> GetUserReactsPublicResponse::getReacts() const -{ - return m_Reacts; -} - - -void GetUserReactsPublicResponse::setReacts(const std::map>& value) -{ - m_Reacts = value; - m_ReactsIsSet = true; -} - -bool GetUserReactsPublicResponse::reactsIsSet() const -{ - return m_ReactsIsSet; -} - -void GetUserReactsPublicResponse::unsetReacts() -{ - m_ReactsIsSet = false; -} -utility::string_t GetUserReactsPublicResponse::getReason() const -{ - return m_Reason; -} - - -void GetUserReactsPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserReactsPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserReactsPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserReactsPublicResponse::getCode() const -{ - return m_Code; -} - - -void GetUserReactsPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserReactsPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserReactsPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserReactsPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserReactsPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserReactsPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserReactsPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserReactsPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserReactsPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserReactsPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserReactsPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserReactsPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserReactsPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserReactsPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserReactsPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserReactsPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserReactsPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserReactsPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserReactsPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserReactsPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserReactsPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserReactsPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserReactsPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUserResponse_1.cpp b/client/src/model/GetUserResponse_1.cpp deleted file mode 100644 index d167807..0000000 --- a/client/src/model/GetUserResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUserResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUserResponse_1::GetUserResponse_1() -{ - m_StatusIsSet = false; - m_UserIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUserResponse_1::~GetUserResponse_1() -{ -} - -void GetUserResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetUserResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_UserIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUserResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUserResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_UserIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUserResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetUserResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetUserResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUserResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUserResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr GetUserResponse_1::getUser() const -{ - return m_User; -} - - -void GetUserResponse_1::setUser(const std::shared_ptr& value) -{ - m_User = value; - m_UserIsSet = true; -} - -bool GetUserResponse_1::userIsSet() const -{ - return m_UserIsSet; -} - -void GetUserResponse_1::unsetUser() -{ - m_UserIsSet = false; -} -utility::string_t GetUserResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetUserResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUserResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUserResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUserResponse_1::getCode() const -{ - return m_Code; -} - - -void GetUserResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUserResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUserResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUserResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUserResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUserResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUserResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUserResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUserResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUserResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUserResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUserResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUserResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUserResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUserResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUserResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUserResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUserResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUserResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUserResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUserResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUserResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUserResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetUsersInfoResponse.cpp b/client/src/model/GetUsersInfoResponse.cpp deleted file mode 100644 index 603d513..0000000 --- a/client/src/model/GetUsersInfoResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetUsersInfoResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetUsersInfoResponse::GetUsersInfoResponse() -{ - m_UsersIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetUsersInfoResponse::~GetUsersInfoResponse() -{ -} - -void GetUsersInfoResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetUsersInfoResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_UsersIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetUsersInfoResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); - setUsers(refVal_setUsers); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetUsersInfoResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_UsersIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetUsersInfoResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); - setUsers(refVal_setUsers); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> GetUsersInfoResponse::getUsers() const -{ - return m_Users; -} - - -void GetUsersInfoResponse::setUsers(const std::vector>& value) -{ - m_Users = value; - m_UsersIsSet = true; -} - -bool GetUsersInfoResponse::usersIsSet() const -{ - return m_UsersIsSet; -} - -void GetUsersInfoResponse::unsetUsers() -{ - m_UsersIsSet = false; -} -std::shared_ptr GetUsersInfoResponse::getStatus() const -{ - return m_Status; -} - - -void GetUsersInfoResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetUsersInfoResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetUsersInfoResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetUsersInfoResponse::getReason() const -{ - return m_Reason; -} - - -void GetUsersInfoResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetUsersInfoResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetUsersInfoResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetUsersInfoResponse::getCode() const -{ - return m_Code; -} - - -void GetUsersInfoResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetUsersInfoResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetUsersInfoResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetUsersInfoResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetUsersInfoResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetUsersInfoResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetUsersInfoResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetUsersInfoResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetUsersInfoResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetUsersInfoResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetUsersInfoResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetUsersInfoResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetUsersInfoResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetUsersInfoResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetUsersInfoResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetUsersInfoResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetUsersInfoResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetUsersInfoResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetUsersInfoResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetUsersInfoResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetUsersInfoResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetUsersInfoResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetUsersInfoResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetV1PageLikesResponse.cpp b/client/src/model/GetV1PageLikesResponse.cpp deleted file mode 100644 index f2e3f3c..0000000 --- a/client/src/model/GetV1PageLikesResponse.cpp +++ /dev/null @@ -1,656 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetV1PageLikesResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetV1PageLikesResponse::GetV1PageLikesResponse() -{ - m_UrlIdWS = utility::conversions::to_string_t(""); - m_UrlIdWSIsSet = false; - m_DidLike = false; - m_DidLikeIsSet = false; - m_CommentCount = 0; - m_CommentCountIsSet = false; - m_LikeCount = 0; - m_LikeCountIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetV1PageLikesResponse::~GetV1PageLikesResponse() -{ -} - -void GetV1PageLikesResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetV1PageLikesResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_UrlIdWSIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))] = ModelBase::toJson(m_UrlIdWS); - } - if(m_DidLikeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("didLike"))] = ModelBase::toJson(m_DidLike); - } - if(m_CommentCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentCount"))] = ModelBase::toJson(m_CommentCount); - } - if(m_LikeCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("likeCount"))] = ModelBase::toJson(m_LikeCount); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetV1PageLikesResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setUrlIdWS; - ok &= ModelBase::fromJson(fieldValue, refVal_setUrlIdWS); - setUrlIdWS(refVal_setUrlIdWS); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("didLike")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("didLike"))); - if(!fieldValue.is_null()) - { - bool refVal_setDidLike; - ok &= ModelBase::fromJson(fieldValue, refVal_setDidLike); - setDidLike(refVal_setDidLike); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentCount"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setCommentCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentCount); - setCommentCount(refVal_setCommentCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("likeCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("likeCount"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setLikeCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setLikeCount); - setLikeCount(refVal_setLikeCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetV1PageLikesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_UrlIdWSIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("urlIdWS")), m_UrlIdWS)); - } - if(m_DidLikeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("didLike")), m_DidLike)); - } - if(m_CommentCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentCount")), m_CommentCount)); - } - if(m_LikeCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("likeCount")), m_LikeCount)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetV1PageLikesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS")))) - { - utility::string_t refVal_setUrlIdWS; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("urlIdWS"))), refVal_setUrlIdWS ); - setUrlIdWS(refVal_setUrlIdWS); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("didLike")))) - { - bool refVal_setDidLike; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("didLike"))), refVal_setDidLike ); - setDidLike(refVal_setDidLike); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentCount")))) - { - int32_t refVal_setCommentCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentCount"))), refVal_setCommentCount ); - setCommentCount(refVal_setCommentCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("likeCount")))) - { - int32_t refVal_setLikeCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("likeCount"))), refVal_setLikeCount ); - setLikeCount(refVal_setLikeCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t GetV1PageLikesResponse::getUrlIdWS() const -{ - return m_UrlIdWS; -} - - -void GetV1PageLikesResponse::setUrlIdWS(const utility::string_t& value) -{ - m_UrlIdWS = value; - m_UrlIdWSIsSet = true; -} - -bool GetV1PageLikesResponse::urlIdWSIsSet() const -{ - return m_UrlIdWSIsSet; -} - -void GetV1PageLikesResponse::unsetUrlIdWS() -{ - m_UrlIdWSIsSet = false; -} -bool GetV1PageLikesResponse::isDidLike() const -{ - return m_DidLike; -} - -void GetV1PageLikesResponse::setDidLike(bool value) -{ - m_DidLike = value; - m_DidLikeIsSet = true; -} - -bool GetV1PageLikesResponse::didLikeIsSet() const -{ - return m_DidLikeIsSet; -} - -void GetV1PageLikesResponse::unsetDidLike() -{ - m_DidLikeIsSet = false; -} -int32_t GetV1PageLikesResponse::getCommentCount() const -{ - return m_CommentCount; -} - -void GetV1PageLikesResponse::setCommentCount(int32_t value) -{ - m_CommentCount = value; - m_CommentCountIsSet = true; -} - -bool GetV1PageLikesResponse::commentCountIsSet() const -{ - return m_CommentCountIsSet; -} - -void GetV1PageLikesResponse::unsetCommentCount() -{ - m_CommentCountIsSet = false; -} -int32_t GetV1PageLikesResponse::getLikeCount() const -{ - return m_LikeCount; -} - -void GetV1PageLikesResponse::setLikeCount(int32_t value) -{ - m_LikeCount = value; - m_LikeCountIsSet = true; -} - -bool GetV1PageLikesResponse::likeCountIsSet() const -{ - return m_LikeCountIsSet; -} - -void GetV1PageLikesResponse::unsetLikeCount() -{ - m_LikeCountIsSet = false; -} -std::shared_ptr GetV1PageLikesResponse::getStatus() const -{ - return m_Status; -} - - -void GetV1PageLikesResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetV1PageLikesResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetV1PageLikesResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetV1PageLikesResponse::getReason() const -{ - return m_Reason; -} - - -void GetV1PageLikesResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetV1PageLikesResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetV1PageLikesResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetV1PageLikesResponse::getCode() const -{ - return m_Code; -} - - -void GetV1PageLikesResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetV1PageLikesResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetV1PageLikesResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetV1PageLikesResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetV1PageLikesResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetV1PageLikesResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetV1PageLikesResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetV1PageLikesResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetV1PageLikesResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetV1PageLikesResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetV1PageLikesResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetV1PageLikesResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetV1PageLikesResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetV1PageLikesResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetV1PageLikesResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetV1PageLikesResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetV1PageLikesResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetV1PageLikesResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetV1PageLikesResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetV1PageLikesResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetV1PageLikesResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetV1PageLikesResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetV1PageLikesResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetV2PageReactUsersResponse_1.cpp b/client/src/model/GetV2PageReactUsersResponse_1.cpp deleted file mode 100644 index a7f78c9..0000000 --- a/client/src/model/GetV2PageReactUsersResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetV2PageReactUsersResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetV2PageReactUsersResponse_1::GetV2PageReactUsersResponse_1() -{ - m_UserNamesIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetV2PageReactUsersResponse_1::~GetV2PageReactUsersResponse_1() -{ -} - -void GetV2PageReactUsersResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetV2PageReactUsersResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_UserNamesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userNames"))] = ModelBase::toJson(m_UserNames); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetV2PageReactUsersResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userNames")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userNames"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setUserNames; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserNames); - setUserNames(refVal_setUserNames); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetV2PageReactUsersResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_UserNamesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userNames")), m_UserNames)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetV2PageReactUsersResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userNames")))) - { - std::vector refVal_setUserNames; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userNames"))), refVal_setUserNames ); - setUserNames(refVal_setUserNames); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector GetV2PageReactUsersResponse_1::getUserNames() const -{ - return m_UserNames; -} - - -void GetV2PageReactUsersResponse_1::setUserNames(const std::vector& value) -{ - m_UserNames = value; - m_UserNamesIsSet = true; -} - -bool GetV2PageReactUsersResponse_1::userNamesIsSet() const -{ - return m_UserNamesIsSet; -} - -void GetV2PageReactUsersResponse_1::unsetUserNames() -{ - m_UserNamesIsSet = false; -} -std::shared_ptr GetV2PageReactUsersResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetV2PageReactUsersResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetV2PageReactUsersResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetV2PageReactUsersResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetV2PageReactUsersResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetV2PageReactUsersResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetV2PageReactUsersResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetV2PageReactUsersResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetV2PageReactUsersResponse_1::getCode() const -{ - return m_Code; -} - - -void GetV2PageReactUsersResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetV2PageReactUsersResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetV2PageReactUsersResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetV2PageReactUsersResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetV2PageReactUsersResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetV2PageReactUsersResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetV2PageReactUsersResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetV2PageReactUsersResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetV2PageReactUsersResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetV2PageReactUsersResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetV2PageReactUsersResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetV2PageReactUsersResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetV2PageReactUsersResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetV2PageReactUsersResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetV2PageReactUsersResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetV2PageReactUsersResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetV2PageReactUsersResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetV2PageReactUsersResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetV2PageReactUsersResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetV2PageReactUsersResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetV2PageReactUsersResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetV2PageReactUsersResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetV2PageReactUsersResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetV2PageReactsResponse.cpp b/client/src/model/GetV2PageReactsResponse.cpp deleted file mode 100644 index 8307acc..0000000 --- a/client/src/model/GetV2PageReactsResponse.cpp +++ /dev/null @@ -1,558 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetV2PageReactsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetV2PageReactsResponse::GetV2PageReactsResponse() -{ - m_ReactedIdsIsSet = false; - m_CountsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetV2PageReactsResponse::~GetV2PageReactsResponse() -{ -} - -void GetV2PageReactsResponse::validate() -{ - // TODO: implement validation -} - -web::json::value GetV2PageReactsResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_ReactedIdsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reactedIds"))] = ModelBase::toJson(m_ReactedIds); - } - if(m_CountsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("counts"))] = ModelBase::toJson(m_Counts); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetV2PageReactsResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reactedIds")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reactedIds"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setReactedIds; - ok &= ModelBase::fromJson(fieldValue, refVal_setReactedIds); - setReactedIds(refVal_setReactedIds); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("counts")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("counts"))); - if(!fieldValue.is_null()) - { - std::map refVal_setCounts; - ok &= ModelBase::fromJson(fieldValue, refVal_setCounts); - setCounts(refVal_setCounts); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetV2PageReactsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_ReactedIdsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reactedIds")), m_ReactedIds)); - } - if(m_CountsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("counts")), m_Counts)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetV2PageReactsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reactedIds")))) - { - std::vector refVal_setReactedIds; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reactedIds"))), refVal_setReactedIds ); - setReactedIds(refVal_setReactedIds); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("counts")))) - { - std::map refVal_setCounts; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("counts"))), refVal_setCounts ); - setCounts(refVal_setCounts); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector GetV2PageReactsResponse::getReactedIds() const -{ - return m_ReactedIds; -} - - -void GetV2PageReactsResponse::setReactedIds(const std::vector& value) -{ - m_ReactedIds = value; - m_ReactedIdsIsSet = true; -} - -bool GetV2PageReactsResponse::reactedIdsIsSet() const -{ - return m_ReactedIdsIsSet; -} - -void GetV2PageReactsResponse::unsetReactedIds() -{ - m_ReactedIdsIsSet = false; -} -std::map GetV2PageReactsResponse::getCounts() const -{ - return m_Counts; -} - -void GetV2PageReactsResponse::setCounts(std::map value) -{ - m_Counts = value; - m_CountsIsSet = true; -} - -bool GetV2PageReactsResponse::countsIsSet() const -{ - return m_CountsIsSet; -} - -void GetV2PageReactsResponse::unsetCounts() -{ - m_CountsIsSet = false; -} -std::shared_ptr GetV2PageReactsResponse::getStatus() const -{ - return m_Status; -} - - -void GetV2PageReactsResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetV2PageReactsResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetV2PageReactsResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetV2PageReactsResponse::getReason() const -{ - return m_Reason; -} - - -void GetV2PageReactsResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetV2PageReactsResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetV2PageReactsResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetV2PageReactsResponse::getCode() const -{ - return m_Code; -} - - -void GetV2PageReactsResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetV2PageReactsResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetV2PageReactsResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetV2PageReactsResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetV2PageReactsResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetV2PageReactsResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetV2PageReactsResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetV2PageReactsResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetV2PageReactsResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetV2PageReactsResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetV2PageReactsResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetV2PageReactsResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetV2PageReactsResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetV2PageReactsResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetV2PageReactsResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetV2PageReactsResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetV2PageReactsResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetV2PageReactsResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetV2PageReactsResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetV2PageReactsResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetV2PageReactsResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetV2PageReactsResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetV2PageReactsResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetVotesForUserResponse_1.cpp b/client/src/model/GetVotesForUserResponse_1.cpp deleted file mode 100644 index acfc6df..0000000 --- a/client/src/model/GetVotesForUserResponse_1.cpp +++ /dev/null @@ -1,607 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetVotesForUserResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetVotesForUserResponse_1::GetVotesForUserResponse_1() -{ - m_StatusIsSet = false; - m_AppliedAuthorizedVotesIsSet = false; - m_AppliedAnonymousVotesIsSet = false; - m_PendingVotesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetVotesForUserResponse_1::~GetVotesForUserResponse_1() -{ -} - -void GetVotesForUserResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetVotesForUserResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_AppliedAuthorizedVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))] = ModelBase::toJson(m_AppliedAuthorizedVotes); - } - if(m_AppliedAnonymousVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))] = ModelBase::toJson(m_AppliedAnonymousVotes); - } - if(m_PendingVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))] = ModelBase::toJson(m_PendingVotes); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetVotesForUserResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setAppliedAuthorizedVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAuthorizedVotes); - setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setAppliedAnonymousVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAnonymousVotes); - setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setPendingVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setPendingVotes); - setPendingVotes(refVal_setPendingVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetVotesForUserResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_AppliedAuthorizedVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")), m_AppliedAuthorizedVotes)); - } - if(m_AppliedAnonymousVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")), m_AppliedAnonymousVotes)); - } - if(m_PendingVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pendingVotes")), m_PendingVotes)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetVotesForUserResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) - { - std::vector> refVal_setAppliedAuthorizedVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))), refVal_setAppliedAuthorizedVotes ); - setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) - { - std::vector> refVal_setAppliedAnonymousVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))), refVal_setAppliedAnonymousVotes ); - setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) - { - std::vector> refVal_setPendingVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))), refVal_setPendingVotes ); - setPendingVotes(refVal_setPendingVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetVotesForUserResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetVotesForUserResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetVotesForUserResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetVotesForUserResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetVotesForUserResponse_1::getAppliedAuthorizedVotes() const -{ - return m_AppliedAuthorizedVotes; -} - - -void GetVotesForUserResponse_1::setAppliedAuthorizedVotes(const std::vector>& value) -{ - m_AppliedAuthorizedVotes = value; - m_AppliedAuthorizedVotesIsSet = true; -} - -bool GetVotesForUserResponse_1::appliedAuthorizedVotesIsSet() const -{ - return m_AppliedAuthorizedVotesIsSet; -} - -void GetVotesForUserResponse_1::unsetAppliedAuthorizedVotes() -{ - m_AppliedAuthorizedVotesIsSet = false; -} -std::vector> GetVotesForUserResponse_1::getAppliedAnonymousVotes() const -{ - return m_AppliedAnonymousVotes; -} - - -void GetVotesForUserResponse_1::setAppliedAnonymousVotes(const std::vector>& value) -{ - m_AppliedAnonymousVotes = value; - m_AppliedAnonymousVotesIsSet = true; -} - -bool GetVotesForUserResponse_1::appliedAnonymousVotesIsSet() const -{ - return m_AppliedAnonymousVotesIsSet; -} - -void GetVotesForUserResponse_1::unsetAppliedAnonymousVotes() -{ - m_AppliedAnonymousVotesIsSet = false; -} -std::vector> GetVotesForUserResponse_1::getPendingVotes() const -{ - return m_PendingVotes; -} - - -void GetVotesForUserResponse_1::setPendingVotes(const std::vector>& value) -{ - m_PendingVotes = value; - m_PendingVotesIsSet = true; -} - -bool GetVotesForUserResponse_1::pendingVotesIsSet() const -{ - return m_PendingVotesIsSet; -} - -void GetVotesForUserResponse_1::unsetPendingVotes() -{ - m_PendingVotesIsSet = false; -} -utility::string_t GetVotesForUserResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetVotesForUserResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetVotesForUserResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetVotesForUserResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetVotesForUserResponse_1::getCode() const -{ - return m_Code; -} - - -void GetVotesForUserResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetVotesForUserResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetVotesForUserResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetVotesForUserResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetVotesForUserResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetVotesForUserResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetVotesForUserResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetVotesForUserResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetVotesForUserResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetVotesForUserResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetVotesForUserResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetVotesForUserResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetVotesForUserResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetVotesForUserResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetVotesForUserResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetVotesForUserResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetVotesForUserResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetVotesForUserResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetVotesForUserResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetVotesForUserResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetVotesForUserResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetVotesForUserResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetVotesForUserResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetVotesResponse_1.cpp b/client/src/model/GetVotesResponse_1.cpp deleted file mode 100644 index 4597874..0000000 --- a/client/src/model/GetVotesResponse_1.cpp +++ /dev/null @@ -1,607 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetVotesResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetVotesResponse_1::GetVotesResponse_1() -{ - m_StatusIsSet = false; - m_AppliedAuthorizedVotesIsSet = false; - m_AppliedAnonymousVotesIsSet = false; - m_PendingVotesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -GetVotesResponse_1::~GetVotesResponse_1() -{ -} - -void GetVotesResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value GetVotesResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_AppliedAuthorizedVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))] = ModelBase::toJson(m_AppliedAuthorizedVotes); - } - if(m_AppliedAnonymousVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))] = ModelBase::toJson(m_AppliedAnonymousVotes); - } - if(m_PendingVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))] = ModelBase::toJson(m_PendingVotes); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool GetVotesResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setAppliedAuthorizedVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAuthorizedVotes); - setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setAppliedAnonymousVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setAppliedAnonymousVotes); - setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setPendingVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setPendingVotes); - setPendingVotes(refVal_setPendingVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void GetVotesResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_AppliedAuthorizedVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")), m_AppliedAuthorizedVotes)); - } - if(m_AppliedAnonymousVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")), m_AppliedAnonymousVotes)); - } - if(m_PendingVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("pendingVotes")), m_PendingVotes)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool GetVotesResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes")))) - { - std::vector> refVal_setAppliedAuthorizedVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAuthorizedVotes"))), refVal_setAppliedAuthorizedVotes ); - setAppliedAuthorizedVotes(refVal_setAppliedAuthorizedVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes")))) - { - std::vector> refVal_setAppliedAnonymousVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("appliedAnonymousVotes"))), refVal_setAppliedAnonymousVotes ); - setAppliedAnonymousVotes(refVal_setAppliedAnonymousVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes")))) - { - std::vector> refVal_setPendingVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("pendingVotes"))), refVal_setPendingVotes ); - setPendingVotes(refVal_setPendingVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr GetVotesResponse_1::getStatus() const -{ - return m_Status; -} - - -void GetVotesResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetVotesResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetVotesResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> GetVotesResponse_1::getAppliedAuthorizedVotes() const -{ - return m_AppliedAuthorizedVotes; -} - - -void GetVotesResponse_1::setAppliedAuthorizedVotes(const std::vector>& value) -{ - m_AppliedAuthorizedVotes = value; - m_AppliedAuthorizedVotesIsSet = true; -} - -bool GetVotesResponse_1::appliedAuthorizedVotesIsSet() const -{ - return m_AppliedAuthorizedVotesIsSet; -} - -void GetVotesResponse_1::unsetAppliedAuthorizedVotes() -{ - m_AppliedAuthorizedVotesIsSet = false; -} -std::vector> GetVotesResponse_1::getAppliedAnonymousVotes() const -{ - return m_AppliedAnonymousVotes; -} - - -void GetVotesResponse_1::setAppliedAnonymousVotes(const std::vector>& value) -{ - m_AppliedAnonymousVotes = value; - m_AppliedAnonymousVotesIsSet = true; -} - -bool GetVotesResponse_1::appliedAnonymousVotesIsSet() const -{ - return m_AppliedAnonymousVotesIsSet; -} - -void GetVotesResponse_1::unsetAppliedAnonymousVotes() -{ - m_AppliedAnonymousVotesIsSet = false; -} -std::vector> GetVotesResponse_1::getPendingVotes() const -{ - return m_PendingVotes; -} - - -void GetVotesResponse_1::setPendingVotes(const std::vector>& value) -{ - m_PendingVotes = value; - m_PendingVotesIsSet = true; -} - -bool GetVotesResponse_1::pendingVotesIsSet() const -{ - return m_PendingVotesIsSet; -} - -void GetVotesResponse_1::unsetPendingVotes() -{ - m_PendingVotesIsSet = false; -} -utility::string_t GetVotesResponse_1::getReason() const -{ - return m_Reason; -} - - -void GetVotesResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetVotesResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetVotesResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetVotesResponse_1::getCode() const -{ - return m_Code; -} - - -void GetVotesResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetVotesResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetVotesResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetVotesResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetVotesResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetVotesResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetVotesResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetVotesResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetVotesResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetVotesResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetVotesResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetVotesResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetVotesResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetVotesResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetVotesResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetVotesResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetVotesResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetVotesResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetVotesResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetVotesResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetVotesResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetVotesResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetVotesResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/LockCommentResponse.cpp b/client/src/model/LockCommentResponse.cpp deleted file mode 100644 index 0a488c9..0000000 --- a/client/src/model/LockCommentResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/LockCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -LockCommentResponse::LockCommentResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -LockCommentResponse::~LockCommentResponse() -{ -} - -void LockCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value LockCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool LockCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void LockCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool LockCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr LockCommentResponse::getStatus() const -{ - return m_Status; -} - - -void LockCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool LockCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void LockCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t LockCommentResponse::getReason() const -{ - return m_Reason; -} - - -void LockCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool LockCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void LockCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t LockCommentResponse::getCode() const -{ - return m_Code; -} - - -void LockCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool LockCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void LockCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t LockCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void LockCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool LockCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void LockCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t LockCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void LockCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool LockCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void LockCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t LockCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void LockCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool LockCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void LockCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t LockCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void LockCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool LockCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void LockCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr LockCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void LockCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool LockCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void LockCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PatchHashTagResponse.cpp b/client/src/model/PatchHashTagResponse.cpp deleted file mode 100644 index f486659..0000000 --- a/client/src/model/PatchHashTagResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PatchHashTagResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PatchHashTagResponse::PatchHashTagResponse() -{ - m_StatusIsSet = false; - m_HashTagIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PatchHashTagResponse::~PatchHashTagResponse() -{ -} - -void PatchHashTagResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PatchHashTagResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_HashTagIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("hashTag"))] = ModelBase::toJson(m_HashTag); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PatchHashTagResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("hashTag")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("hashTag"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setHashTag; - ok &= ModelBase::fromJson(fieldValue, refVal_setHashTag); - setHashTag(refVal_setHashTag); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PatchHashTagResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_HashTagIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("hashTag")), m_HashTag)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PatchHashTagResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("hashTag")))) - { - std::shared_ptr refVal_setHashTag; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("hashTag"))), refVal_setHashTag ); - setHashTag(refVal_setHashTag); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PatchHashTagResponse::getStatus() const -{ - return m_Status; -} - - -void PatchHashTagResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PatchHashTagResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PatchHashTagResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr PatchHashTagResponse::getHashTag() const -{ - return m_HashTag; -} - - -void PatchHashTagResponse::setHashTag(const std::shared_ptr& value) -{ - m_HashTag = value; - m_HashTagIsSet = true; -} - -bool PatchHashTagResponse::hashTagIsSet() const -{ - return m_HashTagIsSet; -} - -void PatchHashTagResponse::unsetHashTag() -{ - m_HashTagIsSet = false; -} -utility::string_t PatchHashTagResponse::getReason() const -{ - return m_Reason; -} - - -void PatchHashTagResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PatchHashTagResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PatchHashTagResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PatchHashTagResponse::getCode() const -{ - return m_Code; -} - - -void PatchHashTagResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PatchHashTagResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PatchHashTagResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PatchHashTagResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PatchHashTagResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PatchHashTagResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PatchHashTagResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PatchHashTagResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PatchHashTagResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PatchHashTagResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PatchHashTagResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PatchHashTagResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PatchHashTagResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PatchHashTagResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PatchHashTagResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PatchHashTagResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PatchHashTagResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PatchHashTagResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PatchHashTagResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PatchHashTagResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PatchHashTagResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PatchHashTagResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PatchHashTagResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PinCommentResponse.cpp b/client/src/model/PinCommentResponse.cpp deleted file mode 100644 index 6799585..0000000 --- a/client/src/model/PinCommentResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PinCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PinCommentResponse::PinCommentResponse() -{ - m_CommentPositionsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PinCommentResponse::~PinCommentResponse() -{ -} - -void PinCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PinCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentPositionsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentPositions"))] = ModelBase::toJson(m_CommentPositions); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PinCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentPositions")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentPositions"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setCommentPositions; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentPositions); - setCommentPositions(refVal_setCommentPositions); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PinCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentPositionsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentPositions")), m_CommentPositions)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PinCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentPositions")))) - { - std::map> refVal_setCommentPositions; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentPositions"))), refVal_setCommentPositions ); - setCommentPositions(refVal_setCommentPositions); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::map> PinCommentResponse::getCommentPositions() const -{ - return m_CommentPositions; -} - - -void PinCommentResponse::setCommentPositions(const std::map>& value) -{ - m_CommentPositions = value; - m_CommentPositionsIsSet = true; -} - -bool PinCommentResponse::commentPositionsIsSet() const -{ - return m_CommentPositionsIsSet; -} - -void PinCommentResponse::unsetCommentPositions() -{ - m_CommentPositionsIsSet = false; -} -std::shared_ptr PinCommentResponse::getStatus() const -{ - return m_Status; -} - - -void PinCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PinCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PinCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PinCommentResponse::getReason() const -{ - return m_Reason; -} - - -void PinCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PinCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PinCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PinCommentResponse::getCode() const -{ - return m_Code; -} - - -void PinCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PinCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PinCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PinCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PinCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PinCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PinCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PinCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PinCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PinCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PinCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PinCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PinCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PinCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PinCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PinCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PinCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PinCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PinCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PinCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PinCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PinCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PinCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostAdjustCommentVotesResponse.cpp b/client/src/model/PostAdjustCommentVotesResponse.cpp deleted file mode 100644 index 5e6d410..0000000 --- a/client/src/model/PostAdjustCommentVotesResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostAdjustCommentVotesResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostAdjustCommentVotesResponse::PostAdjustCommentVotesResponse() -{ - m_StatusIsSet = false; - m_NewCommentVotes = 0; - m_NewCommentVotesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostAdjustCommentVotesResponse::~PostAdjustCommentVotesResponse() -{ -} - -void PostAdjustCommentVotesResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostAdjustCommentVotesResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_NewCommentVotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("newCommentVotes"))] = ModelBase::toJson(m_NewCommentVotes); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostAdjustCommentVotesResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setNewCommentVotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setNewCommentVotes); - setNewCommentVotes(refVal_setNewCommentVotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostAdjustCommentVotesResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_NewCommentVotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("newCommentVotes")), m_NewCommentVotes)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostAdjustCommentVotesResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes")))) - { - int32_t refVal_setNewCommentVotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("newCommentVotes"))), refVal_setNewCommentVotes ); - setNewCommentVotes(refVal_setNewCommentVotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostAdjustCommentVotesResponse::getStatus() const -{ - return m_Status; -} - - -void PostAdjustCommentVotesResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostAdjustCommentVotesResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostAdjustCommentVotesResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -int32_t PostAdjustCommentVotesResponse::getNewCommentVotes() const -{ - return m_NewCommentVotes; -} - -void PostAdjustCommentVotesResponse::setNewCommentVotes(int32_t value) -{ - m_NewCommentVotes = value; - m_NewCommentVotesIsSet = true; -} - -bool PostAdjustCommentVotesResponse::newCommentVotesIsSet() const -{ - return m_NewCommentVotesIsSet; -} - -void PostAdjustCommentVotesResponse::unsetNewCommentVotes() -{ - m_NewCommentVotesIsSet = false; -} -utility::string_t PostAdjustCommentVotesResponse::getReason() const -{ - return m_Reason; -} - - -void PostAdjustCommentVotesResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostAdjustCommentVotesResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostAdjustCommentVotesResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostAdjustCommentVotesResponse::getCode() const -{ - return m_Code; -} - - -void PostAdjustCommentVotesResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostAdjustCommentVotesResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostAdjustCommentVotesResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostAdjustCommentVotesResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostAdjustCommentVotesResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostAdjustCommentVotesResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostAdjustCommentVotesResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostAdjustCommentVotesResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostAdjustCommentVotesResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostAdjustCommentVotesResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostAdjustCommentVotesResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostAdjustCommentVotesResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostAdjustCommentVotesResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostAdjustCommentVotesResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostAdjustCommentVotesResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostAdjustCommentVotesResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostAdjustCommentVotesResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostAdjustCommentVotesResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostAdjustCommentVotesResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostAdjustCommentVotesResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostAdjustCommentVotesResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostAdjustCommentVotesResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostAdjustCommentVotesResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostApiExportResponse.cpp b/client/src/model/PostApiExportResponse.cpp deleted file mode 100644 index daf8b00..0000000 --- a/client/src/model/PostApiExportResponse.cpp +++ /dev/null @@ -1,512 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostApiExportResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostApiExportResponse::PostApiExportResponse() -{ - m_StatusIsSet = false; - m_BatchJobId = utility::conversions::to_string_t(""); - m_BatchJobIdIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostApiExportResponse::~PostApiExportResponse() -{ -} - -void PostApiExportResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostApiExportResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_BatchJobIdIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("batchJobId"))] = ModelBase::toJson(m_BatchJobId); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostApiExportResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("batchJobId")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("batchJobId"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setBatchJobId; - ok &= ModelBase::fromJson(fieldValue, refVal_setBatchJobId); - setBatchJobId(refVal_setBatchJobId); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostApiExportResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_BatchJobIdIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("batchJobId")), m_BatchJobId)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostApiExportResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("batchJobId")))) - { - utility::string_t refVal_setBatchJobId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("batchJobId"))), refVal_setBatchJobId ); - setBatchJobId(refVal_setBatchJobId); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostApiExportResponse::getStatus() const -{ - return m_Status; -} - - -void PostApiExportResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostApiExportResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostApiExportResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostApiExportResponse::getBatchJobId() const -{ - return m_BatchJobId; -} - - -void PostApiExportResponse::setBatchJobId(const utility::string_t& value) -{ - m_BatchJobId = value; - m_BatchJobIdIsSet = true; -} - -bool PostApiExportResponse::batchJobIdIsSet() const -{ - return m_BatchJobIdIsSet; -} - -void PostApiExportResponse::unsetBatchJobId() -{ - m_BatchJobIdIsSet = false; -} -utility::string_t PostApiExportResponse::getReason() const -{ - return m_Reason; -} - - -void PostApiExportResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostApiExportResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostApiExportResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostApiExportResponse::getCode() const -{ - return m_Code; -} - - -void PostApiExportResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostApiExportResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostApiExportResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostApiExportResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostApiExportResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostApiExportResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostApiExportResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostApiExportResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostApiExportResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostApiExportResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostApiExportResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostApiExportResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostApiExportResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostApiExportResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostApiExportResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostApiExportResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostApiExportResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostApiExportResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostApiExportResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostApiExportResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostApiExportResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostApiExportResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostApiExportResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostBanUserFromCommentResponse.cpp b/client/src/model/PostBanUserFromCommentResponse.cpp deleted file mode 100644 index 77de047..0000000 --- a/client/src/model/PostBanUserFromCommentResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostBanUserFromCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostBanUserFromCommentResponse::PostBanUserFromCommentResponse() -{ - m_StatusIsSet = false; - m_ChangelogIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostBanUserFromCommentResponse::~PostBanUserFromCommentResponse() -{ -} - -void PostBanUserFromCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostBanUserFromCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ChangelogIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("changelog"))] = ModelBase::toJson(m_Changelog); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostBanUserFromCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("changelog")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("changelog"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setChangelog; - ok &= ModelBase::fromJson(fieldValue, refVal_setChangelog); - setChangelog(refVal_setChangelog); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostBanUserFromCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ChangelogIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("changelog")), m_Changelog)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostBanUserFromCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("changelog")))) - { - std::shared_ptr refVal_setChangelog; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("changelog"))), refVal_setChangelog ); - setChangelog(refVal_setChangelog); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostBanUserFromCommentResponse::getStatus() const -{ - return m_Status; -} - - -void PostBanUserFromCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostBanUserFromCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostBanUserFromCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr PostBanUserFromCommentResponse::getChangelog() const -{ - return m_Changelog; -} - - -void PostBanUserFromCommentResponse::setChangelog(const std::shared_ptr& value) -{ - m_Changelog = value; - m_ChangelogIsSet = true; -} - -bool PostBanUserFromCommentResponse::changelogIsSet() const -{ - return m_ChangelogIsSet; -} - -void PostBanUserFromCommentResponse::unsetChangelog() -{ - m_ChangelogIsSet = false; -} -utility::string_t PostBanUserFromCommentResponse::getCode() const -{ - return m_Code; -} - - -void PostBanUserFromCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostBanUserFromCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostBanUserFromCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostBanUserFromCommentResponse::getReason() const -{ - return m_Reason; -} - - -void PostBanUserFromCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostBanUserFromCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostBanUserFromCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostBanUserFromCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostBanUserFromCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostBanUserFromCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostBanUserFromCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostBanUserFromCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostBanUserFromCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostBanUserFromCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostBanUserFromCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostBanUserFromCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostBanUserFromCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostBanUserFromCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostBanUserFromCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostBanUserFromCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostBanUserFromCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostBanUserFromCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostBanUserFromCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostBanUserFromCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostBanUserFromCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostBanUserFromCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostBanUserFromCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostBanUserUndoResponse.cpp b/client/src/model/PostBanUserUndoResponse.cpp deleted file mode 100644 index 4894a06..0000000 --- a/client/src/model/PostBanUserUndoResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostBanUserUndoResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostBanUserUndoResponse::PostBanUserUndoResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostBanUserUndoResponse::~PostBanUserUndoResponse() -{ -} - -void PostBanUserUndoResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostBanUserUndoResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostBanUserUndoResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostBanUserUndoResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostBanUserUndoResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostBanUserUndoResponse::getStatus() const -{ - return m_Status; -} - - -void PostBanUserUndoResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostBanUserUndoResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostBanUserUndoResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostBanUserUndoResponse::getReason() const -{ - return m_Reason; -} - - -void PostBanUserUndoResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostBanUserUndoResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostBanUserUndoResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostBanUserUndoResponse::getCode() const -{ - return m_Code; -} - - -void PostBanUserUndoResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostBanUserUndoResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostBanUserUndoResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostBanUserUndoResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostBanUserUndoResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostBanUserUndoResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostBanUserUndoResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostBanUserUndoResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostBanUserUndoResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostBanUserUndoResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostBanUserUndoResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostBanUserUndoResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostBanUserUndoResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostBanUserUndoResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostBanUserUndoResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostBanUserUndoResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostBanUserUndoResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostBanUserUndoResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostBanUserUndoResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostBanUserUndoResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostBanUserUndoResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostBanUserUndoResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostBanUserUndoResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostBulkPreBanSummaryResponse.cpp b/client/src/model/PostBulkPreBanSummaryResponse.cpp deleted file mode 100644 index 0d83259..0000000 --- a/client/src/model/PostBulkPreBanSummaryResponse.cpp +++ /dev/null @@ -1,703 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostBulkPreBanSummaryResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostBulkPreBanSummaryResponse::PostBulkPreBanSummaryResponse() -{ - m_StatusIsSet = false; - m_TotalRelatedCommentCount = 0; - m_TotalRelatedCommentCountIsSet = false; - m_EmailDomainsIsSet = false; - m_EmailsIsSet = false; - m_UserIdsIsSet = false; - m_IpHashesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostBulkPreBanSummaryResponse::~PostBulkPreBanSummaryResponse() -{ -} - -void PostBulkPreBanSummaryResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostBulkPreBanSummaryResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_TotalRelatedCommentCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount"))] = ModelBase::toJson(m_TotalRelatedCommentCount); - } - if(m_EmailDomainsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("emailDomains"))] = ModelBase::toJson(m_EmailDomains); - } - if(m_EmailsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("emails"))] = ModelBase::toJson(m_Emails); - } - if(m_UserIdsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("userIds"))] = ModelBase::toJson(m_UserIds); - } - if(m_IpHashesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("ipHashes"))] = ModelBase::toJson(m_IpHashes); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostBulkPreBanSummaryResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setTotalRelatedCommentCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setTotalRelatedCommentCount); - setTotalRelatedCommentCount(refVal_setTotalRelatedCommentCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emailDomains")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emailDomains"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setEmailDomains; - ok &= ModelBase::fromJson(fieldValue, refVal_setEmailDomains); - setEmailDomains(refVal_setEmailDomains); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("emails")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("emails"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setEmails; - ok &= ModelBase::fromJson(fieldValue, refVal_setEmails); - setEmails(refVal_setEmails); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("userIds")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("userIds"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setUserIds; - ok &= ModelBase::fromJson(fieldValue, refVal_setUserIds); - setUserIds(refVal_setUserIds); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("ipHashes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ipHashes"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setIpHashes; - ok &= ModelBase::fromJson(fieldValue, refVal_setIpHashes); - setIpHashes(refVal_setIpHashes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostBulkPreBanSummaryResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_TotalRelatedCommentCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount")), m_TotalRelatedCommentCount)); - } - if(m_EmailDomainsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emailDomains")), m_EmailDomains)); - } - if(m_EmailsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("emails")), m_Emails)); - } - if(m_UserIdsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("userIds")), m_UserIds)); - } - if(m_IpHashesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("ipHashes")), m_IpHashes)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostBulkPreBanSummaryResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount")))) - { - int32_t refVal_setTotalRelatedCommentCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("totalRelatedCommentCount"))), refVal_setTotalRelatedCommentCount ); - setTotalRelatedCommentCount(refVal_setTotalRelatedCommentCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emailDomains")))) - { - std::vector refVal_setEmailDomains; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emailDomains"))), refVal_setEmailDomains ); - setEmailDomains(refVal_setEmailDomains); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("emails")))) - { - std::vector refVal_setEmails; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("emails"))), refVal_setEmails ); - setEmails(refVal_setEmails); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("userIds")))) - { - std::vector refVal_setUserIds; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("userIds"))), refVal_setUserIds ); - setUserIds(refVal_setUserIds); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ipHashes")))) - { - std::vector refVal_setIpHashes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ipHashes"))), refVal_setIpHashes ); - setIpHashes(refVal_setIpHashes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostBulkPreBanSummaryResponse::getStatus() const -{ - return m_Status; -} - - -void PostBulkPreBanSummaryResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -int32_t PostBulkPreBanSummaryResponse::getTotalRelatedCommentCount() const -{ - return m_TotalRelatedCommentCount; -} - -void PostBulkPreBanSummaryResponse::setTotalRelatedCommentCount(int32_t value) -{ - m_TotalRelatedCommentCount = value; - m_TotalRelatedCommentCountIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::totalRelatedCommentCountIsSet() const -{ - return m_TotalRelatedCommentCountIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetTotalRelatedCommentCount() -{ - m_TotalRelatedCommentCountIsSet = false; -} -std::vector PostBulkPreBanSummaryResponse::getEmailDomains() const -{ - return m_EmailDomains; -} - - -void PostBulkPreBanSummaryResponse::setEmailDomains(const std::vector& value) -{ - m_EmailDomains = value; - m_EmailDomainsIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::emailDomainsIsSet() const -{ - return m_EmailDomainsIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetEmailDomains() -{ - m_EmailDomainsIsSet = false; -} -std::vector PostBulkPreBanSummaryResponse::getEmails() const -{ - return m_Emails; -} - - -void PostBulkPreBanSummaryResponse::setEmails(const std::vector& value) -{ - m_Emails = value; - m_EmailsIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::emailsIsSet() const -{ - return m_EmailsIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetEmails() -{ - m_EmailsIsSet = false; -} -std::vector PostBulkPreBanSummaryResponse::getUserIds() const -{ - return m_UserIds; -} - - -void PostBulkPreBanSummaryResponse::setUserIds(const std::vector& value) -{ - m_UserIds = value; - m_UserIdsIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::userIdsIsSet() const -{ - return m_UserIdsIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetUserIds() -{ - m_UserIdsIsSet = false; -} -std::vector PostBulkPreBanSummaryResponse::getIpHashes() const -{ - return m_IpHashes; -} - - -void PostBulkPreBanSummaryResponse::setIpHashes(const std::vector& value) -{ - m_IpHashes = value; - m_IpHashesIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::ipHashesIsSet() const -{ - return m_IpHashesIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetIpHashes() -{ - m_IpHashesIsSet = false; -} -utility::string_t PostBulkPreBanSummaryResponse::getReason() const -{ - return m_Reason; -} - - -void PostBulkPreBanSummaryResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostBulkPreBanSummaryResponse::getCode() const -{ - return m_Code; -} - - -void PostBulkPreBanSummaryResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostBulkPreBanSummaryResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostBulkPreBanSummaryResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostBulkPreBanSummaryResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostBulkPreBanSummaryResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostBulkPreBanSummaryResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostBulkPreBanSummaryResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostBulkPreBanSummaryResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostBulkPreBanSummaryResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostBulkPreBanSummaryResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostBulkPreBanSummaryResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostBulkPreBanSummaryResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostBulkPreBanSummaryResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostCommentsByIdsResponse.cpp b/client/src/model/PostCommentsByIdsResponse.cpp deleted file mode 100644 index e2bc56a..0000000 --- a/client/src/model/PostCommentsByIdsResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostCommentsByIdsResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostCommentsByIdsResponse::PostCommentsByIdsResponse() -{ - m_CommentsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostCommentsByIdsResponse::~PostCommentsByIdsResponse() -{ -} - -void PostCommentsByIdsResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostCommentsByIdsResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comments"))] = ModelBase::toJson(m_Comments); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostCommentsByIdsResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comments"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromJson(fieldValue, refVal_setComments); - setComments(refVal_setComments); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostCommentsByIdsResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comments")), m_Comments)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostCommentsByIdsResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comments")))) - { - std::vector> refVal_setComments; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comments"))), refVal_setComments ); - setComments(refVal_setComments); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> PostCommentsByIdsResponse::getComments() const -{ - return m_Comments; -} - - -void PostCommentsByIdsResponse::setComments(const std::vector>& value) -{ - m_Comments = value; - m_CommentsIsSet = true; -} - -bool PostCommentsByIdsResponse::commentsIsSet() const -{ - return m_CommentsIsSet; -} - -void PostCommentsByIdsResponse::unsetComments() -{ - m_CommentsIsSet = false; -} -std::shared_ptr PostCommentsByIdsResponse::getStatus() const -{ - return m_Status; -} - - -void PostCommentsByIdsResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostCommentsByIdsResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostCommentsByIdsResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostCommentsByIdsResponse::getReason() const -{ - return m_Reason; -} - - -void PostCommentsByIdsResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostCommentsByIdsResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostCommentsByIdsResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostCommentsByIdsResponse::getCode() const -{ - return m_Code; -} - - -void PostCommentsByIdsResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostCommentsByIdsResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostCommentsByIdsResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostCommentsByIdsResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostCommentsByIdsResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostCommentsByIdsResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostCommentsByIdsResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostCommentsByIdsResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostCommentsByIdsResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostCommentsByIdsResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostCommentsByIdsResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostCommentsByIdsResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostCommentsByIdsResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostCommentsByIdsResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostCommentsByIdsResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostCommentsByIdsResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostCommentsByIdsResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostCommentsByIdsResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostCommentsByIdsResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostCommentsByIdsResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostCommentsByIdsResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostCommentsByIdsResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostCommentsByIdsResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostFlagCommentResponse.cpp b/client/src/model/PostFlagCommentResponse.cpp deleted file mode 100644 index a10e5e3..0000000 --- a/client/src/model/PostFlagCommentResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostFlagCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostFlagCommentResponse::PostFlagCommentResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostFlagCommentResponse::~PostFlagCommentResponse() -{ -} - -void PostFlagCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostFlagCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostFlagCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostFlagCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostFlagCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostFlagCommentResponse::getStatus() const -{ - return m_Status; -} - - -void PostFlagCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostFlagCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostFlagCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostFlagCommentResponse::getReason() const -{ - return m_Reason; -} - - -void PostFlagCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostFlagCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostFlagCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostFlagCommentResponse::getCode() const -{ - return m_Code; -} - - -void PostFlagCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostFlagCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostFlagCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostFlagCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostFlagCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostFlagCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostFlagCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostFlagCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostFlagCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostFlagCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostFlagCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostFlagCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostFlagCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostFlagCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostFlagCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostFlagCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostFlagCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostFlagCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostFlagCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostFlagCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostFlagCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostFlagCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostFlagCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostRemoveCommentResponse.cpp b/client/src/model/PostRemoveCommentResponse.cpp index c6fb4be..99f1262 100644 --- a/client/src/model/PostRemoveCommentResponse.cpp +++ b/client/src/model/PostRemoveCommentResponse.cpp @@ -22,20 +22,8 @@ PostRemoveCommentResponse::PostRemoveCommentResponse() { m_Action = utility::conversions::to_string_t(""); m_ActionIsSet = false; + m_Status = utility::conversions::to_string_t(""); m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; } PostRemoveCommentResponse::~PostRemoveCommentResponse() @@ -60,41 +48,6 @@ web::json::value PostRemoveCommentResponse::toJson() const val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } return val; } @@ -118,89 +71,12 @@ bool PostRemoveCommentResponse::fromJson(const web::json::value& val) const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); if(!fieldValue.is_null()) { - std::shared_ptr refVal_setStatus; + utility::string_t refVal_setStatus; ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); setStatus(refVal_setStatus); } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } return ok; } @@ -219,34 +95,6 @@ void PostRemoveCommentResponse::toMultipart(std::shared_ptr m { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } } bool PostRemoveCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -266,52 +114,10 @@ bool PostRemoveCommentResponse::fromMultiPart(std::shared_ptr } if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) { - std::shared_ptr refVal_setStatus; + utility::string_t refVal_setStatus; ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); setStatus(refVal_setStatus); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } return ok; } @@ -337,13 +143,13 @@ void PostRemoveCommentResponse::unsetAction() { m_ActionIsSet = false; } -std::shared_ptr PostRemoveCommentResponse::getStatus() const +utility::string_t PostRemoveCommentResponse::getStatus() const { return m_Status; } -void PostRemoveCommentResponse::setStatus(const std::shared_ptr& value) +void PostRemoveCommentResponse::setStatus(const utility::string_t& value) { m_Status = value; m_StatusIsSet = true; @@ -358,151 +164,6 @@ void PostRemoveCommentResponse::unsetStatus() { m_StatusIsSet = false; } -utility::string_t PostRemoveCommentResponse::getReason() const -{ - return m_Reason; -} - - -void PostRemoveCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostRemoveCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostRemoveCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostRemoveCommentResponse::getCode() const -{ - return m_Code; -} - - -void PostRemoveCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostRemoveCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostRemoveCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostRemoveCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostRemoveCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostRemoveCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostRemoveCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostRemoveCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostRemoveCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostRemoveCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostRemoveCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostRemoveCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostRemoveCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostRemoveCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostRemoveCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostRemoveCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostRemoveCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostRemoveCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostRemoveCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostRemoveCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostRemoveCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostRemoveCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostRemoveCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} } } diff --git a/client/src/model/PostRestoreDeletedCommentResponse.cpp b/client/src/model/PostRestoreDeletedCommentResponse.cpp deleted file mode 100644 index 4a773b2..0000000 --- a/client/src/model/PostRestoreDeletedCommentResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostRestoreDeletedCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostRestoreDeletedCommentResponse::PostRestoreDeletedCommentResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostRestoreDeletedCommentResponse::~PostRestoreDeletedCommentResponse() -{ -} - -void PostRestoreDeletedCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostRestoreDeletedCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostRestoreDeletedCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostRestoreDeletedCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostRestoreDeletedCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostRestoreDeletedCommentResponse::getStatus() const -{ - return m_Status; -} - - -void PostRestoreDeletedCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostRestoreDeletedCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostRestoreDeletedCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostRestoreDeletedCommentResponse::getReason() const -{ - return m_Reason; -} - - -void PostRestoreDeletedCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostRestoreDeletedCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostRestoreDeletedCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostRestoreDeletedCommentResponse::getCode() const -{ - return m_Code; -} - - -void PostRestoreDeletedCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostRestoreDeletedCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostRestoreDeletedCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostRestoreDeletedCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostRestoreDeletedCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostRestoreDeletedCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostRestoreDeletedCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostRestoreDeletedCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostRestoreDeletedCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostRestoreDeletedCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostRestoreDeletedCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostRestoreDeletedCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostRestoreDeletedCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostRestoreDeletedCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostRestoreDeletedCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostRestoreDeletedCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostRestoreDeletedCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostRestoreDeletedCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostRestoreDeletedCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostRestoreDeletedCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostRestoreDeletedCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostRestoreDeletedCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostRestoreDeletedCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostSetCommentApprovalStatusResponse.cpp b/client/src/model/PostSetCommentApprovalStatusResponse.cpp deleted file mode 100644 index b8e0bd5..0000000 --- a/client/src/model/PostSetCommentApprovalStatusResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostSetCommentApprovalStatusResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostSetCommentApprovalStatusResponse::PostSetCommentApprovalStatusResponse() -{ - m_DidResetFlaggedCount = false; - m_DidResetFlaggedCountIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostSetCommentApprovalStatusResponse::~PostSetCommentApprovalStatusResponse() -{ -} - -void PostSetCommentApprovalStatusResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostSetCommentApprovalStatusResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_DidResetFlaggedCountIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount"))] = ModelBase::toJson(m_DidResetFlaggedCount); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostSetCommentApprovalStatusResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount"))); - if(!fieldValue.is_null()) - { - bool refVal_setDidResetFlaggedCount; - ok &= ModelBase::fromJson(fieldValue, refVal_setDidResetFlaggedCount); - setDidResetFlaggedCount(refVal_setDidResetFlaggedCount); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostSetCommentApprovalStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_DidResetFlaggedCountIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount")), m_DidResetFlaggedCount)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostSetCommentApprovalStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount")))) - { - bool refVal_setDidResetFlaggedCount; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("didResetFlaggedCount"))), refVal_setDidResetFlaggedCount ); - setDidResetFlaggedCount(refVal_setDidResetFlaggedCount); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -bool PostSetCommentApprovalStatusResponse::isDidResetFlaggedCount() const -{ - return m_DidResetFlaggedCount; -} - -void PostSetCommentApprovalStatusResponse::setDidResetFlaggedCount(bool value) -{ - m_DidResetFlaggedCount = value; - m_DidResetFlaggedCountIsSet = true; -} - -bool PostSetCommentApprovalStatusResponse::didResetFlaggedCountIsSet() const -{ - return m_DidResetFlaggedCountIsSet; -} - -void PostSetCommentApprovalStatusResponse::unsetDidResetFlaggedCount() -{ - m_DidResetFlaggedCountIsSet = false; -} -std::shared_ptr PostSetCommentApprovalStatusResponse::getStatus() const -{ - return m_Status; -} - - -void PostSetCommentApprovalStatusResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostSetCommentApprovalStatusResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostSetCommentApprovalStatusResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostSetCommentApprovalStatusResponse::getReason() const -{ - return m_Reason; -} - - -void PostSetCommentApprovalStatusResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostSetCommentApprovalStatusResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostSetCommentApprovalStatusResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostSetCommentApprovalStatusResponse::getCode() const -{ - return m_Code; -} - - -void PostSetCommentApprovalStatusResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostSetCommentApprovalStatusResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostSetCommentApprovalStatusResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostSetCommentApprovalStatusResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostSetCommentApprovalStatusResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostSetCommentApprovalStatusResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostSetCommentApprovalStatusResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostSetCommentApprovalStatusResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostSetCommentApprovalStatusResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostSetCommentApprovalStatusResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostSetCommentApprovalStatusResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostSetCommentApprovalStatusResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostSetCommentApprovalStatusResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostSetCommentApprovalStatusResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostSetCommentApprovalStatusResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostSetCommentApprovalStatusResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostSetCommentApprovalStatusResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostSetCommentApprovalStatusResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostSetCommentApprovalStatusResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostSetCommentApprovalStatusResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostSetCommentApprovalStatusResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostSetCommentApprovalStatusResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostSetCommentApprovalStatusResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostSetCommentReviewStatusResponse.cpp b/client/src/model/PostSetCommentReviewStatusResponse.cpp deleted file mode 100644 index 5509284..0000000 --- a/client/src/model/PostSetCommentReviewStatusResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostSetCommentReviewStatusResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostSetCommentReviewStatusResponse::PostSetCommentReviewStatusResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostSetCommentReviewStatusResponse::~PostSetCommentReviewStatusResponse() -{ -} - -void PostSetCommentReviewStatusResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostSetCommentReviewStatusResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostSetCommentReviewStatusResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostSetCommentReviewStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostSetCommentReviewStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostSetCommentReviewStatusResponse::getStatus() const -{ - return m_Status; -} - - -void PostSetCommentReviewStatusResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostSetCommentReviewStatusResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostSetCommentReviewStatusResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostSetCommentReviewStatusResponse::getReason() const -{ - return m_Reason; -} - - -void PostSetCommentReviewStatusResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostSetCommentReviewStatusResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostSetCommentReviewStatusResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostSetCommentReviewStatusResponse::getCode() const -{ - return m_Code; -} - - -void PostSetCommentReviewStatusResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostSetCommentReviewStatusResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostSetCommentReviewStatusResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostSetCommentReviewStatusResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostSetCommentReviewStatusResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostSetCommentReviewStatusResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostSetCommentReviewStatusResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostSetCommentReviewStatusResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostSetCommentReviewStatusResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostSetCommentReviewStatusResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostSetCommentReviewStatusResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostSetCommentReviewStatusResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostSetCommentReviewStatusResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostSetCommentReviewStatusResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostSetCommentReviewStatusResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostSetCommentReviewStatusResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostSetCommentReviewStatusResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostSetCommentReviewStatusResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostSetCommentReviewStatusResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostSetCommentReviewStatusResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostSetCommentReviewStatusResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostSetCommentReviewStatusResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostSetCommentReviewStatusResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostSetCommentSpamStatusResponse.cpp b/client/src/model/PostSetCommentSpamStatusResponse.cpp deleted file mode 100644 index 27af4b3..0000000 --- a/client/src/model/PostSetCommentSpamStatusResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostSetCommentSpamStatusResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostSetCommentSpamStatusResponse::PostSetCommentSpamStatusResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostSetCommentSpamStatusResponse::~PostSetCommentSpamStatusResponse() -{ -} - -void PostSetCommentSpamStatusResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostSetCommentSpamStatusResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostSetCommentSpamStatusResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostSetCommentSpamStatusResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostSetCommentSpamStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostSetCommentSpamStatusResponse::getStatus() const -{ - return m_Status; -} - - -void PostSetCommentSpamStatusResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostSetCommentSpamStatusResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostSetCommentSpamStatusResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostSetCommentSpamStatusResponse::getReason() const -{ - return m_Reason; -} - - -void PostSetCommentSpamStatusResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostSetCommentSpamStatusResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostSetCommentSpamStatusResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostSetCommentSpamStatusResponse::getCode() const -{ - return m_Code; -} - - -void PostSetCommentSpamStatusResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostSetCommentSpamStatusResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostSetCommentSpamStatusResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostSetCommentSpamStatusResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostSetCommentSpamStatusResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostSetCommentSpamStatusResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostSetCommentSpamStatusResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostSetCommentSpamStatusResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostSetCommentSpamStatusResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostSetCommentSpamStatusResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostSetCommentSpamStatusResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostSetCommentSpamStatusResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostSetCommentSpamStatusResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostSetCommentSpamStatusResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostSetCommentSpamStatusResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostSetCommentSpamStatusResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostSetCommentSpamStatusResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostSetCommentSpamStatusResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostSetCommentSpamStatusResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostSetCommentSpamStatusResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostSetCommentSpamStatusResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostSetCommentSpamStatusResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostSetCommentSpamStatusResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostSetCommentTextResponse.cpp b/client/src/model/PostSetCommentTextResponse.cpp deleted file mode 100644 index 914dd66..0000000 --- a/client/src/model/PostSetCommentTextResponse.cpp +++ /dev/null @@ -1,512 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostSetCommentTextResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostSetCommentTextResponse::PostSetCommentTextResponse() -{ - m_NewCommentTextHTML = utility::conversions::to_string_t(""); - m_NewCommentTextHTMLIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostSetCommentTextResponse::~PostSetCommentTextResponse() -{ -} - -void PostSetCommentTextResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostSetCommentTextResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_NewCommentTextHTMLIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML"))] = ModelBase::toJson(m_NewCommentTextHTML); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostSetCommentTextResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setNewCommentTextHTML; - ok &= ModelBase::fromJson(fieldValue, refVal_setNewCommentTextHTML); - setNewCommentTextHTML(refVal_setNewCommentTextHTML); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostSetCommentTextResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_NewCommentTextHTMLIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML")), m_NewCommentTextHTML)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostSetCommentTextResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML")))) - { - utility::string_t refVal_setNewCommentTextHTML; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("newCommentTextHTML"))), refVal_setNewCommentTextHTML ); - setNewCommentTextHTML(refVal_setNewCommentTextHTML); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -utility::string_t PostSetCommentTextResponse::getNewCommentTextHTML() const -{ - return m_NewCommentTextHTML; -} - - -void PostSetCommentTextResponse::setNewCommentTextHTML(const utility::string_t& value) -{ - m_NewCommentTextHTML = value; - m_NewCommentTextHTMLIsSet = true; -} - -bool PostSetCommentTextResponse::newCommentTextHTMLIsSet() const -{ - return m_NewCommentTextHTMLIsSet; -} - -void PostSetCommentTextResponse::unsetNewCommentTextHTML() -{ - m_NewCommentTextHTMLIsSet = false; -} -std::shared_ptr PostSetCommentTextResponse::getStatus() const -{ - return m_Status; -} - - -void PostSetCommentTextResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostSetCommentTextResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostSetCommentTextResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostSetCommentTextResponse::getReason() const -{ - return m_Reason; -} - - -void PostSetCommentTextResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostSetCommentTextResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostSetCommentTextResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostSetCommentTextResponse::getCode() const -{ - return m_Code; -} - - -void PostSetCommentTextResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostSetCommentTextResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostSetCommentTextResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostSetCommentTextResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostSetCommentTextResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostSetCommentTextResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostSetCommentTextResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostSetCommentTextResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostSetCommentTextResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostSetCommentTextResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostSetCommentTextResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostSetCommentTextResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostSetCommentTextResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostSetCommentTextResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostSetCommentTextResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostSetCommentTextResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostSetCommentTextResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostSetCommentTextResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostSetCommentTextResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostSetCommentTextResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostSetCommentTextResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostSetCommentTextResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostSetCommentTextResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostUnFlagCommentResponse.cpp b/client/src/model/PostUnFlagCommentResponse.cpp deleted file mode 100644 index 327c1d6..0000000 --- a/client/src/model/PostUnFlagCommentResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostUnFlagCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostUnFlagCommentResponse::PostUnFlagCommentResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostUnFlagCommentResponse::~PostUnFlagCommentResponse() -{ -} - -void PostUnFlagCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostUnFlagCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostUnFlagCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostUnFlagCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostUnFlagCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostUnFlagCommentResponse::getStatus() const -{ - return m_Status; -} - - -void PostUnFlagCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostUnFlagCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostUnFlagCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostUnFlagCommentResponse::getReason() const -{ - return m_Reason; -} - - -void PostUnFlagCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostUnFlagCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostUnFlagCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostUnFlagCommentResponse::getCode() const -{ - return m_Code; -} - - -void PostUnFlagCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostUnFlagCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostUnFlagCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostUnFlagCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostUnFlagCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostUnFlagCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostUnFlagCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostUnFlagCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostUnFlagCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostUnFlagCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostUnFlagCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostUnFlagCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostUnFlagCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostUnFlagCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostUnFlagCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostUnFlagCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostUnFlagCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostUnFlagCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostUnFlagCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostUnFlagCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostUnFlagCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostUnFlagCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostUnFlagCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PostVoteResponse.cpp b/client/src/model/PostVoteResponse.cpp deleted file mode 100644 index ec114f3..0000000 --- a/client/src/model/PostVoteResponse.cpp +++ /dev/null @@ -1,657 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PostVoteResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PostVoteResponse::PostVoteResponse() -{ - m_StatusIsSet = false; - m_VoteId = utility::conversions::to_string_t(""); - m_VoteIdIsSet = false; - m_IsVerified = false; - m_IsVerifiedIsSet = false; - m_UserIsSet = false; - m_EditKey = utility::conversions::to_string_t(""); - m_EditKeyIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PostVoteResponse::~PostVoteResponse() -{ -} - -void PostVoteResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PostVoteResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_VoteIdIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("voteId"))] = ModelBase::toJson(m_VoteId); - } - if(m_IsVerifiedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isVerified"))] = ModelBase::toJson(m_IsVerified); - } - if(m_UserIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); - } - if(m_EditKeyIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PostVoteResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("voteId")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("voteId"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setVoteId; - ok &= ModelBase::fromJson(fieldValue, refVal_setVoteId); - setVoteId(refVal_setVoteId); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isVerified"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsVerified; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsVerified); - setIsVerified(refVal_setIsVerified); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("editKey")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("editKey"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setEditKey; - ok &= ModelBase::fromJson(fieldValue, refVal_setEditKey); - setEditKey(refVal_setEditKey); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PostVoteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_VoteIdIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteId")), m_VoteId)); - } - if(m_IsVerifiedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isVerified")), m_IsVerified)); - } - if(m_UserIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); - } - if(m_EditKeyIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("editKey")), m_EditKey)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PostVoteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteId")))) - { - utility::string_t refVal_setVoteId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("voteId"))), refVal_setVoteId ); - setVoteId(refVal_setVoteId); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) - { - bool refVal_setIsVerified; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isVerified"))), refVal_setIsVerified ); - setIsVerified(refVal_setIsVerified); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("editKey")))) - { - utility::string_t refVal_setEditKey; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("editKey"))), refVal_setEditKey ); - setEditKey(refVal_setEditKey); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PostVoteResponse::getStatus() const -{ - return m_Status; -} - - -void PostVoteResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PostVoteResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PostVoteResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PostVoteResponse::getVoteId() const -{ - return m_VoteId; -} - - -void PostVoteResponse::setVoteId(const utility::string_t& value) -{ - m_VoteId = value; - m_VoteIdIsSet = true; -} - -bool PostVoteResponse::voteIdIsSet() const -{ - return m_VoteIdIsSet; -} - -void PostVoteResponse::unsetVoteId() -{ - m_VoteIdIsSet = false; -} -bool PostVoteResponse::isIsVerified() const -{ - return m_IsVerified; -} - -void PostVoteResponse::setIsVerified(bool value) -{ - m_IsVerified = value; - m_IsVerifiedIsSet = true; -} - -bool PostVoteResponse::isVerifiedIsSet() const -{ - return m_IsVerifiedIsSet; -} - -void PostVoteResponse::unsetIsVerified() -{ - m_IsVerifiedIsSet = false; -} -std::shared_ptr PostVoteResponse::getUser() const -{ - return m_User; -} - - -void PostVoteResponse::setUser(const std::shared_ptr& value) -{ - m_User = value; - m_UserIsSet = true; -} - -bool PostVoteResponse::userIsSet() const -{ - return m_UserIsSet; -} - -void PostVoteResponse::unsetUser() -{ - m_UserIsSet = false; -} -utility::string_t PostVoteResponse::getEditKey() const -{ - return m_EditKey; -} - - -void PostVoteResponse::setEditKey(const utility::string_t& value) -{ - m_EditKey = value; - m_EditKeyIsSet = true; -} - -bool PostVoteResponse::editKeyIsSet() const -{ - return m_EditKeyIsSet; -} - -void PostVoteResponse::unsetEditKey() -{ - m_EditKeyIsSet = false; -} -utility::string_t PostVoteResponse::getReason() const -{ - return m_Reason; -} - - -void PostVoteResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PostVoteResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PostVoteResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PostVoteResponse::getCode() const -{ - return m_Code; -} - - -void PostVoteResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PostVoteResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PostVoteResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PostVoteResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PostVoteResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PostVoteResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PostVoteResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PostVoteResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PostVoteResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PostVoteResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PostVoteResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PostVoteResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PostVoteResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PostVoteResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PostVoteResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PostVoteResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PostVoteResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PostVoteResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PostVoteResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PostVoteResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PostVoteResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PostVoteResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PostVoteResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PutAwardBadgeResponse.cpp b/client/src/model/PutAwardBadgeResponse.cpp deleted file mode 100644 index 5949f66..0000000 --- a/client/src/model/PutAwardBadgeResponse.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PutAwardBadgeResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PutAwardBadgeResponse::PutAwardBadgeResponse() -{ - m_NotesIsSet = false; - m_BadgesIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PutAwardBadgeResponse::~PutAwardBadgeResponse() -{ -} - -void PutAwardBadgeResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PutAwardBadgeResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_NotesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("notes"))] = ModelBase::toJson(m_Notes); - } - if(m_BadgesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PutAwardBadgeResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("notes")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("notes"))); - if(!fieldValue.is_null()) - { - std::vector refVal_setNotes; - ok &= ModelBase::fromJson(fieldValue, refVal_setNotes); - setNotes(refVal_setNotes); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setBadges; - ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); - setBadges(refVal_setBadges); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PutAwardBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_NotesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("notes")), m_Notes)); - } - if(m_BadgesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PutAwardBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("notes")))) - { - std::vector refVal_setNotes; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("notes"))), refVal_setNotes ); - setNotes(refVal_setNotes); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) - { - std::vector> refVal_setBadges; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); - setBadges(refVal_setBadges); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector PutAwardBadgeResponse::getNotes() const -{ - return m_Notes; -} - - -void PutAwardBadgeResponse::setNotes(const std::vector& value) -{ - m_Notes = value; - m_NotesIsSet = true; -} - -bool PutAwardBadgeResponse::notesIsSet() const -{ - return m_NotesIsSet; -} - -void PutAwardBadgeResponse::unsetNotes() -{ - m_NotesIsSet = false; -} -std::vector> PutAwardBadgeResponse::getBadges() const -{ - return m_Badges; -} - - -void PutAwardBadgeResponse::setBadges(const std::vector>& value) -{ - m_Badges = value; - m_BadgesIsSet = true; -} - -bool PutAwardBadgeResponse::badgesIsSet() const -{ - return m_BadgesIsSet; -} - -void PutAwardBadgeResponse::unsetBadges() -{ - m_BadgesIsSet = false; -} -std::shared_ptr PutAwardBadgeResponse::getStatus() const -{ - return m_Status; -} - - -void PutAwardBadgeResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PutAwardBadgeResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PutAwardBadgeResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PutAwardBadgeResponse::getReason() const -{ - return m_Reason; -} - - -void PutAwardBadgeResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PutAwardBadgeResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PutAwardBadgeResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PutAwardBadgeResponse::getCode() const -{ - return m_Code; -} - - -void PutAwardBadgeResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PutAwardBadgeResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PutAwardBadgeResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PutAwardBadgeResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PutAwardBadgeResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PutAwardBadgeResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PutAwardBadgeResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PutAwardBadgeResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PutAwardBadgeResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PutAwardBadgeResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PutAwardBadgeResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PutAwardBadgeResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PutAwardBadgeResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PutAwardBadgeResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PutAwardBadgeResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PutAwardBadgeResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PutAwardBadgeResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PutAwardBadgeResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PutAwardBadgeResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PutAwardBadgeResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PutAwardBadgeResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PutAwardBadgeResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PutAwardBadgeResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PutCloseThreadResponse.cpp b/client/src/model/PutCloseThreadResponse.cpp deleted file mode 100644 index c9e9d0d..0000000 --- a/client/src/model/PutCloseThreadResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PutCloseThreadResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PutCloseThreadResponse::PutCloseThreadResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PutCloseThreadResponse::~PutCloseThreadResponse() -{ -} - -void PutCloseThreadResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PutCloseThreadResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PutCloseThreadResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PutCloseThreadResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PutCloseThreadResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PutCloseThreadResponse::getStatus() const -{ - return m_Status; -} - - -void PutCloseThreadResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PutCloseThreadResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PutCloseThreadResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PutCloseThreadResponse::getReason() const -{ - return m_Reason; -} - - -void PutCloseThreadResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PutCloseThreadResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PutCloseThreadResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PutCloseThreadResponse::getCode() const -{ - return m_Code; -} - - -void PutCloseThreadResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PutCloseThreadResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PutCloseThreadResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PutCloseThreadResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PutCloseThreadResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PutCloseThreadResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PutCloseThreadResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PutCloseThreadResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PutCloseThreadResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PutCloseThreadResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PutCloseThreadResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PutCloseThreadResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PutCloseThreadResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PutCloseThreadResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PutCloseThreadResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PutCloseThreadResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PutCloseThreadResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PutCloseThreadResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PutCloseThreadResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PutCloseThreadResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PutCloseThreadResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PutCloseThreadResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PutCloseThreadResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PutRemoveBadgeResponse.cpp b/client/src/model/PutRemoveBadgeResponse.cpp deleted file mode 100644 index f2ff2f3..0000000 --- a/client/src/model/PutRemoveBadgeResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PutRemoveBadgeResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PutRemoveBadgeResponse::PutRemoveBadgeResponse() -{ - m_BadgesIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PutRemoveBadgeResponse::~PutRemoveBadgeResponse() -{ -} - -void PutRemoveBadgeResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PutRemoveBadgeResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_BadgesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("badges"))] = ModelBase::toJson(m_Badges); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PutRemoveBadgeResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("badges")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("badges"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setBadges; - ok &= ModelBase::fromJson(fieldValue, refVal_setBadges); - setBadges(refVal_setBadges); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PutRemoveBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_BadgesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("badges")), m_Badges)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PutRemoveBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badges")))) - { - std::vector> refVal_setBadges; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badges"))), refVal_setBadges ); - setBadges(refVal_setBadges); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::vector> PutRemoveBadgeResponse::getBadges() const -{ - return m_Badges; -} - - -void PutRemoveBadgeResponse::setBadges(const std::vector>& value) -{ - m_Badges = value; - m_BadgesIsSet = true; -} - -bool PutRemoveBadgeResponse::badgesIsSet() const -{ - return m_BadgesIsSet; -} - -void PutRemoveBadgeResponse::unsetBadges() -{ - m_BadgesIsSet = false; -} -std::shared_ptr PutRemoveBadgeResponse::getStatus() const -{ - return m_Status; -} - - -void PutRemoveBadgeResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PutRemoveBadgeResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PutRemoveBadgeResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PutRemoveBadgeResponse::getReason() const -{ - return m_Reason; -} - - -void PutRemoveBadgeResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PutRemoveBadgeResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PutRemoveBadgeResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PutRemoveBadgeResponse::getCode() const -{ - return m_Code; -} - - -void PutRemoveBadgeResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PutRemoveBadgeResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PutRemoveBadgeResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PutRemoveBadgeResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PutRemoveBadgeResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PutRemoveBadgeResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PutRemoveBadgeResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PutRemoveBadgeResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PutRemoveBadgeResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PutRemoveBadgeResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PutRemoveBadgeResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PutRemoveBadgeResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PutRemoveBadgeResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PutRemoveBadgeResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PutRemoveBadgeResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PutRemoveBadgeResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PutRemoveBadgeResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PutRemoveBadgeResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PutRemoveBadgeResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PutRemoveBadgeResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PutRemoveBadgeResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PutRemoveBadgeResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PutRemoveBadgeResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/PutReopenThreadResponse.cpp b/client/src/model/PutReopenThreadResponse.cpp deleted file mode 100644 index e1a4ee8..0000000 --- a/client/src/model/PutReopenThreadResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/PutReopenThreadResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -PutReopenThreadResponse::PutReopenThreadResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -PutReopenThreadResponse::~PutReopenThreadResponse() -{ -} - -void PutReopenThreadResponse::validate() -{ - // TODO: implement validation -} - -web::json::value PutReopenThreadResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool PutReopenThreadResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void PutReopenThreadResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool PutReopenThreadResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr PutReopenThreadResponse::getStatus() const -{ - return m_Status; -} - - -void PutReopenThreadResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool PutReopenThreadResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void PutReopenThreadResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t PutReopenThreadResponse::getReason() const -{ - return m_Reason; -} - - -void PutReopenThreadResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool PutReopenThreadResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void PutReopenThreadResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t PutReopenThreadResponse::getCode() const -{ - return m_Code; -} - - -void PutReopenThreadResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool PutReopenThreadResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void PutReopenThreadResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t PutReopenThreadResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void PutReopenThreadResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool PutReopenThreadResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void PutReopenThreadResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t PutReopenThreadResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void PutReopenThreadResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool PutReopenThreadResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void PutReopenThreadResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t PutReopenThreadResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void PutReopenThreadResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool PutReopenThreadResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void PutReopenThreadResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t PutReopenThreadResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void PutReopenThreadResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool PutReopenThreadResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void PutReopenThreadResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr PutReopenThreadResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void PutReopenThreadResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool PutReopenThreadResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void PutReopenThreadResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/ReactFeedPostPublicResponse.cpp b/client/src/model/ReactFeedPostPublicResponse.cpp deleted file mode 100644 index 7a188d1..0000000 --- a/client/src/model/ReactFeedPostPublicResponse.cpp +++ /dev/null @@ -1,560 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/ReactFeedPostPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -ReactFeedPostPublicResponse::ReactFeedPostPublicResponse() -{ - m_StatusIsSet = false; - m_ReactType = utility::conversions::to_string_t(""); - m_ReactTypeIsSet = false; - m_IsUndo = false; - m_IsUndoIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -ReactFeedPostPublicResponse::~ReactFeedPostPublicResponse() -{ -} - -void ReactFeedPostPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value ReactFeedPostPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReactTypeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reactType"))] = ModelBase::toJson(m_ReactType); - } - if(m_IsUndoIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isUndo"))] = ModelBase::toJson(m_IsUndo); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool ReactFeedPostPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reactType")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reactType"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReactType; - ok &= ModelBase::fromJson(fieldValue, refVal_setReactType); - setReactType(refVal_setReactType); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isUndo")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isUndo"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsUndo; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsUndo); - setIsUndo(refVal_setIsUndo); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void ReactFeedPostPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReactTypeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reactType")), m_ReactType)); - } - if(m_IsUndoIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isUndo")), m_IsUndo)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool ReactFeedPostPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reactType")))) - { - utility::string_t refVal_setReactType; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reactType"))), refVal_setReactType ); - setReactType(refVal_setReactType); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isUndo")))) - { - bool refVal_setIsUndo; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isUndo"))), refVal_setIsUndo ); - setIsUndo(refVal_setIsUndo); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr ReactFeedPostPublicResponse::getStatus() const -{ - return m_Status; -} - - -void ReactFeedPostPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool ReactFeedPostPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void ReactFeedPostPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t ReactFeedPostPublicResponse::getReactType() const -{ - return m_ReactType; -} - - -void ReactFeedPostPublicResponse::setReactType(const utility::string_t& value) -{ - m_ReactType = value; - m_ReactTypeIsSet = true; -} - -bool ReactFeedPostPublicResponse::reactTypeIsSet() const -{ - return m_ReactTypeIsSet; -} - -void ReactFeedPostPublicResponse::unsetReactType() -{ - m_ReactTypeIsSet = false; -} -bool ReactFeedPostPublicResponse::isIsUndo() const -{ - return m_IsUndo; -} - -void ReactFeedPostPublicResponse::setIsUndo(bool value) -{ - m_IsUndo = value; - m_IsUndoIsSet = true; -} - -bool ReactFeedPostPublicResponse::isUndoIsSet() const -{ - return m_IsUndoIsSet; -} - -void ReactFeedPostPublicResponse::unsetIsUndo() -{ - m_IsUndoIsSet = false; -} -utility::string_t ReactFeedPostPublicResponse::getReason() const -{ - return m_Reason; -} - - -void ReactFeedPostPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool ReactFeedPostPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void ReactFeedPostPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t ReactFeedPostPublicResponse::getCode() const -{ - return m_Code; -} - - -void ReactFeedPostPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool ReactFeedPostPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void ReactFeedPostPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t ReactFeedPostPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void ReactFeedPostPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool ReactFeedPostPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void ReactFeedPostPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t ReactFeedPostPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void ReactFeedPostPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool ReactFeedPostPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void ReactFeedPostPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t ReactFeedPostPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void ReactFeedPostPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool ReactFeedPostPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void ReactFeedPostPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t ReactFeedPostPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void ReactFeedPostPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool ReactFeedPostPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void ReactFeedPostPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr ReactFeedPostPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void ReactFeedPostPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool ReactFeedPostPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void ReactFeedPostPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/RenderEmailTemplateResponse_1.cpp b/client/src/model/RenderEmailTemplateResponse_1.cpp deleted file mode 100644 index a393599..0000000 --- a/client/src/model/RenderEmailTemplateResponse_1.cpp +++ /dev/null @@ -1,512 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/RenderEmailTemplateResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -RenderEmailTemplateResponse_1::RenderEmailTemplateResponse_1() -{ - m_StatusIsSet = false; - m_Html = utility::conversions::to_string_t(""); - m_HtmlIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -RenderEmailTemplateResponse_1::~RenderEmailTemplateResponse_1() -{ -} - -void RenderEmailTemplateResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value RenderEmailTemplateResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_HtmlIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("html"))] = ModelBase::toJson(m_Html); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool RenderEmailTemplateResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("html")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("html"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setHtml; - ok &= ModelBase::fromJson(fieldValue, refVal_setHtml); - setHtml(refVal_setHtml); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void RenderEmailTemplateResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_HtmlIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("html")), m_Html)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool RenderEmailTemplateResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("html")))) - { - utility::string_t refVal_setHtml; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("html"))), refVal_setHtml ); - setHtml(refVal_setHtml); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr RenderEmailTemplateResponse_1::getStatus() const -{ - return m_Status; -} - - -void RenderEmailTemplateResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool RenderEmailTemplateResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void RenderEmailTemplateResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t RenderEmailTemplateResponse_1::getHtml() const -{ - return m_Html; -} - - -void RenderEmailTemplateResponse_1::setHtml(const utility::string_t& value) -{ - m_Html = value; - m_HtmlIsSet = true; -} - -bool RenderEmailTemplateResponse_1::htmlIsSet() const -{ - return m_HtmlIsSet; -} - -void RenderEmailTemplateResponse_1::unsetHtml() -{ - m_HtmlIsSet = false; -} -utility::string_t RenderEmailTemplateResponse_1::getReason() const -{ - return m_Reason; -} - - -void RenderEmailTemplateResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool RenderEmailTemplateResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void RenderEmailTemplateResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t RenderEmailTemplateResponse_1::getCode() const -{ - return m_Code; -} - - -void RenderEmailTemplateResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool RenderEmailTemplateResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void RenderEmailTemplateResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t RenderEmailTemplateResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void RenderEmailTemplateResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool RenderEmailTemplateResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void RenderEmailTemplateResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t RenderEmailTemplateResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void RenderEmailTemplateResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool RenderEmailTemplateResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void RenderEmailTemplateResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t RenderEmailTemplateResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void RenderEmailTemplateResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool RenderEmailTemplateResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void RenderEmailTemplateResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t RenderEmailTemplateResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void RenderEmailTemplateResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool RenderEmailTemplateResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void RenderEmailTemplateResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr RenderEmailTemplateResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void RenderEmailTemplateResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool RenderEmailTemplateResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void RenderEmailTemplateResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/ReplaceTenantPackageResponse.cpp b/client/src/model/ReplaceTenantPackageResponse.cpp deleted file mode 100644 index 747d4d6..0000000 --- a/client/src/model/ReplaceTenantPackageResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/ReplaceTenantPackageResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -ReplaceTenantPackageResponse::ReplaceTenantPackageResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -ReplaceTenantPackageResponse::~ReplaceTenantPackageResponse() -{ -} - -void ReplaceTenantPackageResponse::validate() -{ - // TODO: implement validation -} - -web::json::value ReplaceTenantPackageResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool ReplaceTenantPackageResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void ReplaceTenantPackageResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool ReplaceTenantPackageResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr ReplaceTenantPackageResponse::getStatus() const -{ - return m_Status; -} - - -void ReplaceTenantPackageResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool ReplaceTenantPackageResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void ReplaceTenantPackageResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t ReplaceTenantPackageResponse::getReason() const -{ - return m_Reason; -} - - -void ReplaceTenantPackageResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool ReplaceTenantPackageResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void ReplaceTenantPackageResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t ReplaceTenantPackageResponse::getCode() const -{ - return m_Code; -} - - -void ReplaceTenantPackageResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool ReplaceTenantPackageResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void ReplaceTenantPackageResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t ReplaceTenantPackageResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void ReplaceTenantPackageResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool ReplaceTenantPackageResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void ReplaceTenantPackageResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t ReplaceTenantPackageResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void ReplaceTenantPackageResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool ReplaceTenantPackageResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void ReplaceTenantPackageResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t ReplaceTenantPackageResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void ReplaceTenantPackageResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool ReplaceTenantPackageResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void ReplaceTenantPackageResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t ReplaceTenantPackageResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void ReplaceTenantPackageResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool ReplaceTenantPackageResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void ReplaceTenantPackageResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr ReplaceTenantPackageResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void ReplaceTenantPackageResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool ReplaceTenantPackageResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void ReplaceTenantPackageResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/ReplaceTenantUserResponse.cpp b/client/src/model/ReplaceTenantUserResponse.cpp deleted file mode 100644 index e2ed6d6..0000000 --- a/client/src/model/ReplaceTenantUserResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/ReplaceTenantUserResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -ReplaceTenantUserResponse::ReplaceTenantUserResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -ReplaceTenantUserResponse::~ReplaceTenantUserResponse() -{ -} - -void ReplaceTenantUserResponse::validate() -{ - // TODO: implement validation -} - -web::json::value ReplaceTenantUserResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool ReplaceTenantUserResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void ReplaceTenantUserResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool ReplaceTenantUserResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr ReplaceTenantUserResponse::getStatus() const -{ - return m_Status; -} - - -void ReplaceTenantUserResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool ReplaceTenantUserResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void ReplaceTenantUserResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t ReplaceTenantUserResponse::getReason() const -{ - return m_Reason; -} - - -void ReplaceTenantUserResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool ReplaceTenantUserResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void ReplaceTenantUserResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t ReplaceTenantUserResponse::getCode() const -{ - return m_Code; -} - - -void ReplaceTenantUserResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool ReplaceTenantUserResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void ReplaceTenantUserResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t ReplaceTenantUserResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void ReplaceTenantUserResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool ReplaceTenantUserResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void ReplaceTenantUserResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t ReplaceTenantUserResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void ReplaceTenantUserResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool ReplaceTenantUserResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void ReplaceTenantUserResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t ReplaceTenantUserResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void ReplaceTenantUserResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool ReplaceTenantUserResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void ReplaceTenantUserResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t ReplaceTenantUserResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void ReplaceTenantUserResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool ReplaceTenantUserResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void ReplaceTenantUserResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr ReplaceTenantUserResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void ReplaceTenantUserResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool ReplaceTenantUserResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void ReplaceTenantUserResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/ResetUserNotificationCountResponse.cpp b/client/src/model/ResetUserNotificationCountResponse.cpp deleted file mode 100644 index 85fb01e..0000000 --- a/client/src/model/ResetUserNotificationCountResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/ResetUserNotificationCountResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -ResetUserNotificationCountResponse::ResetUserNotificationCountResponse() -{ - m_StatusIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -ResetUserNotificationCountResponse::~ResetUserNotificationCountResponse() -{ -} - -void ResetUserNotificationCountResponse::validate() -{ - // TODO: implement validation -} - -web::json::value ResetUserNotificationCountResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool ResetUserNotificationCountResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void ResetUserNotificationCountResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool ResetUserNotificationCountResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr ResetUserNotificationCountResponse::getStatus() const -{ - return m_Status; -} - - -void ResetUserNotificationCountResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool ResetUserNotificationCountResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void ResetUserNotificationCountResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t ResetUserNotificationCountResponse::getCode() const -{ - return m_Code; -} - - -void ResetUserNotificationCountResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool ResetUserNotificationCountResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void ResetUserNotificationCountResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t ResetUserNotificationCountResponse::getReason() const -{ - return m_Reason; -} - - -void ResetUserNotificationCountResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool ResetUserNotificationCountResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void ResetUserNotificationCountResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t ResetUserNotificationCountResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void ResetUserNotificationCountResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool ResetUserNotificationCountResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void ResetUserNotificationCountResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t ResetUserNotificationCountResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void ResetUserNotificationCountResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool ResetUserNotificationCountResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void ResetUserNotificationCountResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t ResetUserNotificationCountResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void ResetUserNotificationCountResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool ResetUserNotificationCountResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void ResetUserNotificationCountResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t ResetUserNotificationCountResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void ResetUserNotificationCountResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool ResetUserNotificationCountResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void ResetUserNotificationCountResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr ResetUserNotificationCountResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void ResetUserNotificationCountResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool ResetUserNotificationCountResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void ResetUserNotificationCountResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/ResetUserNotificationsResponse_1.cpp b/client/src/model/ResetUserNotificationsResponse_1.cpp deleted file mode 100644 index 9910a22..0000000 --- a/client/src/model/ResetUserNotificationsResponse_1.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/ResetUserNotificationsResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -ResetUserNotificationsResponse_1::ResetUserNotificationsResponse_1() -{ - m_StatusIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -ResetUserNotificationsResponse_1::~ResetUserNotificationsResponse_1() -{ -} - -void ResetUserNotificationsResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value ResetUserNotificationsResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool ResetUserNotificationsResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void ResetUserNotificationsResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool ResetUserNotificationsResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr ResetUserNotificationsResponse_1::getStatus() const -{ - return m_Status; -} - - -void ResetUserNotificationsResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool ResetUserNotificationsResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void ResetUserNotificationsResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t ResetUserNotificationsResponse_1::getCode() const -{ - return m_Code; -} - - -void ResetUserNotificationsResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool ResetUserNotificationsResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void ResetUserNotificationsResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t ResetUserNotificationsResponse_1::getReason() const -{ - return m_Reason; -} - - -void ResetUserNotificationsResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool ResetUserNotificationsResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void ResetUserNotificationsResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t ResetUserNotificationsResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void ResetUserNotificationsResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool ResetUserNotificationsResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void ResetUserNotificationsResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t ResetUserNotificationsResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void ResetUserNotificationsResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool ResetUserNotificationsResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void ResetUserNotificationsResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t ResetUserNotificationsResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void ResetUserNotificationsResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool ResetUserNotificationsResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void ResetUserNotificationsResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t ResetUserNotificationsResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void ResetUserNotificationsResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool ResetUserNotificationsResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void ResetUserNotificationsResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr ResetUserNotificationsResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void ResetUserNotificationsResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool ResetUserNotificationsResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void ResetUserNotificationsResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/SaveCommentResponse.cpp b/client/src/model/SaveCommentResponse.cpp deleted file mode 100644 index 0331261..0000000 --- a/client/src/model/SaveCommentResponse.cpp +++ /dev/null @@ -1,605 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/SaveCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -SaveCommentResponse::SaveCommentResponse() -{ - m_StatusIsSet = false; - m_CommentIsSet = false; - m_ModuleDataIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -SaveCommentResponse::~SaveCommentResponse() -{ -} - -void SaveCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value SaveCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); - } - if(m_User.has_value()) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User.get()); - } - if(m_ModuleDataIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("moduleData"))] = ModelBase::toJson(m_ModuleData); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool SaveCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("moduleData"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setModuleData; - ok &= ModelBase::fromJson(fieldValue, refVal_setModuleData); - setModuleData(refVal_setModuleData); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void SaveCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); - } - if(m_User.has_value()) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User.get())); - } - if(m_ModuleDataIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("moduleData")), m_ModuleData)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool SaveCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("moduleData")))) - { - std::map> refVal_setModuleData; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("moduleData"))), refVal_setModuleData ); - setModuleData(refVal_setModuleData); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr SaveCommentResponse::getStatus() const -{ - return m_Status; -} - - -void SaveCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool SaveCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void SaveCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr SaveCommentResponse::getComment() const -{ - return m_Comment; -} - - -void SaveCommentResponse::setComment(const std::shared_ptr& value) -{ - m_Comment = value; - m_CommentIsSet = true; -} - -bool SaveCommentResponse::commentIsSet() const -{ - return m_CommentIsSet; -} - -void SaveCommentResponse::unsetComment() -{ - m_CommentIsSet = false; -} -std::shared_ptr SaveCommentResponse::getUser() const -{ - return m_User.get(); -} - - -void SaveCommentResponse::setUser(const std::shared_ptr& value) -{ - m_User = value; -} - -bool SaveCommentResponse::userIsSet() const -{ - return m_User.has_value(); -} - -void SaveCommentResponse::unsetUser() -{ - m_User.reset(); -} -std::map> SaveCommentResponse::getModuleData() const -{ - return m_ModuleData; -} - - -void SaveCommentResponse::setModuleData(const std::map>& value) -{ - m_ModuleData = value; - m_ModuleDataIsSet = true; -} - -bool SaveCommentResponse::moduleDataIsSet() const -{ - return m_ModuleDataIsSet; -} - -void SaveCommentResponse::unsetModuleData() -{ - m_ModuleDataIsSet = false; -} -utility::string_t SaveCommentResponse::getReason() const -{ - return m_Reason; -} - - -void SaveCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool SaveCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void SaveCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t SaveCommentResponse::getCode() const -{ - return m_Code; -} - - -void SaveCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool SaveCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void SaveCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t SaveCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void SaveCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool SaveCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void SaveCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t SaveCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void SaveCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool SaveCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void SaveCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t SaveCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void SaveCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool SaveCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void SaveCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t SaveCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void SaveCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool SaveCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void SaveCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr SaveCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void SaveCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool SaveCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void SaveCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/SearchUsersResponse_1.cpp b/client/src/model/SearchUsersResponse_1.cpp deleted file mode 100644 index f00fe9d..0000000 --- a/client/src/model/SearchUsersResponse_1.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/SearchUsersResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -SearchUsersResponse_1::SearchUsersResponse_1() -{ - m_StatusIsSet = false; - m_SectionsIsSet = false; - m_UsersIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -SearchUsersResponse_1::~SearchUsersResponse_1() -{ -} - -void SearchUsersResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value SearchUsersResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_SectionsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("sections"))] = ModelBase::toJson(m_Sections); - } - if(m_UsersIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("users"))] = ModelBase::toJson(m_Users); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool SearchUsersResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("sections")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("sections"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setSections; - ok &= ModelBase::fromJson(fieldValue, refVal_setSections); - setSections(refVal_setSections); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("users"))); - if(!fieldValue.is_null()) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromJson(fieldValue, refVal_setUsers); - setUsers(refVal_setUsers); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void SearchUsersResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_SectionsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("sections")), m_Sections)); - } - if(m_UsersIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("users")), m_Users)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool SearchUsersResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("sections")))) - { - std::vector> refVal_setSections; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("sections"))), refVal_setSections ); - setSections(refVal_setSections); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("users")))) - { - std::vector> refVal_setUsers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("users"))), refVal_setUsers ); - setUsers(refVal_setUsers); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr SearchUsersResponse_1::getStatus() const -{ - return m_Status; -} - - -void SearchUsersResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool SearchUsersResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void SearchUsersResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -std::vector> SearchUsersResponse_1::getSections() const -{ - return m_Sections; -} - - -void SearchUsersResponse_1::setSections(const std::vector>& value) -{ - m_Sections = value; - m_SectionsIsSet = true; -} - -bool SearchUsersResponse_1::sectionsIsSet() const -{ - return m_SectionsIsSet; -} - -void SearchUsersResponse_1::unsetSections() -{ - m_SectionsIsSet = false; -} -std::vector> SearchUsersResponse_1::getUsers() const -{ - return m_Users; -} - - -void SearchUsersResponse_1::setUsers(const std::vector>& value) -{ - m_Users = value; - m_UsersIsSet = true; -} - -bool SearchUsersResponse_1::usersIsSet() const -{ - return m_UsersIsSet; -} - -void SearchUsersResponse_1::unsetUsers() -{ - m_UsersIsSet = false; -} -utility::string_t SearchUsersResponse_1::getReason() const -{ - return m_Reason; -} - - -void SearchUsersResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool SearchUsersResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void SearchUsersResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t SearchUsersResponse_1::getCode() const -{ - return m_Code; -} - - -void SearchUsersResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool SearchUsersResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void SearchUsersResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t SearchUsersResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void SearchUsersResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool SearchUsersResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void SearchUsersResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t SearchUsersResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void SearchUsersResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool SearchUsersResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void SearchUsersResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t SearchUsersResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void SearchUsersResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool SearchUsersResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void SearchUsersResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t SearchUsersResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void SearchUsersResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool SearchUsersResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void SearchUsersResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr SearchUsersResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void SearchUsersResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool SearchUsersResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void SearchUsersResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/SendInviteResponse.cpp b/client/src/model/SendInviteResponse.cpp deleted file mode 100644 index 837c261..0000000 --- a/client/src/model/SendInviteResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/SendInviteResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -SendInviteResponse::SendInviteResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -SendInviteResponse::~SendInviteResponse() -{ -} - -void SendInviteResponse::validate() -{ - // TODO: implement validation -} - -web::json::value SendInviteResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool SendInviteResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void SendInviteResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool SendInviteResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr SendInviteResponse::getStatus() const -{ - return m_Status; -} - - -void SendInviteResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool SendInviteResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void SendInviteResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t SendInviteResponse::getReason() const -{ - return m_Reason; -} - - -void SendInviteResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool SendInviteResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void SendInviteResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t SendInviteResponse::getCode() const -{ - return m_Code; -} - - -void SendInviteResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool SendInviteResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void SendInviteResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t SendInviteResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void SendInviteResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool SendInviteResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void SendInviteResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t SendInviteResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void SendInviteResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool SendInviteResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void SendInviteResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t SendInviteResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void SendInviteResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool SendInviteResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void SendInviteResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t SendInviteResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void SendInviteResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool SendInviteResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void SendInviteResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr SendInviteResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void SendInviteResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool SendInviteResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void SendInviteResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/SendLoginLinkResponse.cpp b/client/src/model/SendLoginLinkResponse.cpp deleted file mode 100644 index b749e4b..0000000 --- a/client/src/model/SendLoginLinkResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/SendLoginLinkResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -SendLoginLinkResponse::SendLoginLinkResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -SendLoginLinkResponse::~SendLoginLinkResponse() -{ -} - -void SendLoginLinkResponse::validate() -{ - // TODO: implement validation -} - -web::json::value SendLoginLinkResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool SendLoginLinkResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void SendLoginLinkResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool SendLoginLinkResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr SendLoginLinkResponse::getStatus() const -{ - return m_Status; -} - - -void SendLoginLinkResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool SendLoginLinkResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void SendLoginLinkResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t SendLoginLinkResponse::getReason() const -{ - return m_Reason; -} - - -void SendLoginLinkResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool SendLoginLinkResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void SendLoginLinkResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t SendLoginLinkResponse::getCode() const -{ - return m_Code; -} - - -void SendLoginLinkResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool SendLoginLinkResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void SendLoginLinkResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t SendLoginLinkResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void SendLoginLinkResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool SendLoginLinkResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void SendLoginLinkResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t SendLoginLinkResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void SendLoginLinkResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool SendLoginLinkResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void SendLoginLinkResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t SendLoginLinkResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void SendLoginLinkResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool SendLoginLinkResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void SendLoginLinkResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t SendLoginLinkResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void SendLoginLinkResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool SendLoginLinkResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void SendLoginLinkResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr SendLoginLinkResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void SendLoginLinkResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool SendLoginLinkResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void SendLoginLinkResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/SetCommentTextResponse_1.cpp b/client/src/model/SetCommentTextResponse_1.cpp deleted file mode 100644 index ec1789d..0000000 --- a/client/src/model/SetCommentTextResponse_1.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/SetCommentTextResponse_1.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -SetCommentTextResponse_1::SetCommentTextResponse_1() -{ - m_CommentIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -SetCommentTextResponse_1::~SetCommentTextResponse_1() -{ -} - -void SetCommentTextResponse_1::validate() -{ - // TODO: implement validation -} - -web::json::value SetCommentTextResponse_1::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("comment"))] = ModelBase::toJson(m_Comment); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool SetCommentTextResponse_1::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("comment"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromJson(fieldValue, refVal_setComment); - setComment(refVal_setComment); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void SetCommentTextResponse_1::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment")), m_Comment)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool SetCommentTextResponse_1::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment")))) - { - std::shared_ptr refVal_setComment; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment"))), refVal_setComment ); - setComment(refVal_setComment); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr SetCommentTextResponse_1::getComment() const -{ - return m_Comment; -} - - -void SetCommentTextResponse_1::setComment(const std::shared_ptr& value) -{ - m_Comment = value; - m_CommentIsSet = true; -} - -bool SetCommentTextResponse_1::commentIsSet() const -{ - return m_CommentIsSet; -} - -void SetCommentTextResponse_1::unsetComment() -{ - m_CommentIsSet = false; -} -std::shared_ptr SetCommentTextResponse_1::getStatus() const -{ - return m_Status; -} - - -void SetCommentTextResponse_1::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool SetCommentTextResponse_1::statusIsSet() const -{ - return m_StatusIsSet; -} - -void SetCommentTextResponse_1::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t SetCommentTextResponse_1::getReason() const -{ - return m_Reason; -} - - -void SetCommentTextResponse_1::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool SetCommentTextResponse_1::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void SetCommentTextResponse_1::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t SetCommentTextResponse_1::getCode() const -{ - return m_Code; -} - - -void SetCommentTextResponse_1::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool SetCommentTextResponse_1::codeIsSet() const -{ - return m_CodeIsSet; -} - -void SetCommentTextResponse_1::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t SetCommentTextResponse_1::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void SetCommentTextResponse_1::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool SetCommentTextResponse_1::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void SetCommentTextResponse_1::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t SetCommentTextResponse_1::getBannedUntil() const -{ - return m_BannedUntil; -} - -void SetCommentTextResponse_1::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool SetCommentTextResponse_1::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void SetCommentTextResponse_1::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t SetCommentTextResponse_1::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void SetCommentTextResponse_1::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool SetCommentTextResponse_1::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void SetCommentTextResponse_1::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t SetCommentTextResponse_1::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void SetCommentTextResponse_1::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool SetCommentTextResponse_1::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void SetCommentTextResponse_1::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr SetCommentTextResponse_1::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void SetCommentTextResponse_1::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool SetCommentTextResponse_1::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void SetCommentTextResponse_1::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/SetTrustFactorResponse.cpp b/client/src/model/SetTrustFactorResponse.cpp deleted file mode 100644 index c62c082..0000000 --- a/client/src/model/SetTrustFactorResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/SetTrustFactorResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -SetTrustFactorResponse::SetTrustFactorResponse() -{ - m_PreviousManualTrustFactor = 0.0; - m_PreviousManualTrustFactorIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -SetTrustFactorResponse::~SetTrustFactorResponse() -{ -} - -void SetTrustFactorResponse::validate() -{ - // TODO: implement validation -} - -web::json::value SetTrustFactorResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_PreviousManualTrustFactorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor"))] = ModelBase::toJson(m_PreviousManualTrustFactor); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool SetTrustFactorResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor"))); - if(!fieldValue.is_null()) - { - double refVal_setPreviousManualTrustFactor; - ok &= ModelBase::fromJson(fieldValue, refVal_setPreviousManualTrustFactor); - setPreviousManualTrustFactor(refVal_setPreviousManualTrustFactor); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void SetTrustFactorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_PreviousManualTrustFactorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor")), m_PreviousManualTrustFactor)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool SetTrustFactorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor")))) - { - double refVal_setPreviousManualTrustFactor; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("previousManualTrustFactor"))), refVal_setPreviousManualTrustFactor ); - setPreviousManualTrustFactor(refVal_setPreviousManualTrustFactor); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -double SetTrustFactorResponse::getPreviousManualTrustFactor() const -{ - return m_PreviousManualTrustFactor; -} - -void SetTrustFactorResponse::setPreviousManualTrustFactor(double value) -{ - m_PreviousManualTrustFactor = value; - m_PreviousManualTrustFactorIsSet = true; -} - -bool SetTrustFactorResponse::previousManualTrustFactorIsSet() const -{ - return m_PreviousManualTrustFactorIsSet; -} - -void SetTrustFactorResponse::unsetPreviousManualTrustFactor() -{ - m_PreviousManualTrustFactorIsSet = false; -} -std::shared_ptr SetTrustFactorResponse::getStatus() const -{ - return m_Status; -} - - -void SetTrustFactorResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool SetTrustFactorResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void SetTrustFactorResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t SetTrustFactorResponse::getReason() const -{ - return m_Reason; -} - - -void SetTrustFactorResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool SetTrustFactorResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void SetTrustFactorResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t SetTrustFactorResponse::getCode() const -{ - return m_Code; -} - - -void SetTrustFactorResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool SetTrustFactorResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void SetTrustFactorResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t SetTrustFactorResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void SetTrustFactorResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool SetTrustFactorResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void SetTrustFactorResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t SetTrustFactorResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void SetTrustFactorResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool SetTrustFactorResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void SetTrustFactorResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t SetTrustFactorResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void SetTrustFactorResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool SetTrustFactorResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void SetTrustFactorResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t SetTrustFactorResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void SetTrustFactorResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool SetTrustFactorResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void SetTrustFactorResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr SetTrustFactorResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void SetTrustFactorResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool SetTrustFactorResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void SetTrustFactorResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UnBlockCommentPublicResponse.cpp b/client/src/model/UnBlockCommentPublicResponse.cpp deleted file mode 100644 index 61093d3..0000000 --- a/client/src/model/UnBlockCommentPublicResponse.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UnBlockCommentPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UnBlockCommentPublicResponse::UnBlockCommentPublicResponse() -{ - m_StatusIsSet = false; - m_CommentStatusesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UnBlockCommentPublicResponse::~UnBlockCommentPublicResponse() -{ -} - -void UnBlockCommentPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UnBlockCommentPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentStatusesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UnBlockCommentPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); - if(!fieldValue.is_null()) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); - setCommentStatuses(refVal_setCommentStatuses); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UnBlockCommentPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentStatusesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UnBlockCommentPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); - setCommentStatuses(refVal_setCommentStatuses); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UnBlockCommentPublicResponse::getStatus() const -{ - return m_Status; -} - - -void UnBlockCommentPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UnBlockCommentPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UnBlockCommentPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map UnBlockCommentPublicResponse::getCommentStatuses() const -{ - return m_CommentStatuses; -} - -void UnBlockCommentPublicResponse::setCommentStatuses(std::map value) -{ - m_CommentStatuses = value; - m_CommentStatusesIsSet = true; -} - -bool UnBlockCommentPublicResponse::commentStatusesIsSet() const -{ - return m_CommentStatusesIsSet; -} - -void UnBlockCommentPublicResponse::unsetCommentStatuses() -{ - m_CommentStatusesIsSet = false; -} -utility::string_t UnBlockCommentPublicResponse::getReason() const -{ - return m_Reason; -} - - -void UnBlockCommentPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UnBlockCommentPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UnBlockCommentPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UnBlockCommentPublicResponse::getCode() const -{ - return m_Code; -} - - -void UnBlockCommentPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UnBlockCommentPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UnBlockCommentPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UnBlockCommentPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UnBlockCommentPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UnBlockCommentPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UnBlockCommentPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UnBlockCommentPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UnBlockCommentPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UnBlockCommentPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UnBlockCommentPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UnBlockCommentPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UnBlockCommentPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UnBlockCommentPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UnBlockCommentPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UnBlockCommentPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UnBlockCommentPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UnBlockCommentPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UnBlockCommentPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UnBlockCommentPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UnBlockCommentPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UnBlockCommentPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UnBlockCommentPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UnBlockUserFromCommentResponse.cpp b/client/src/model/UnBlockUserFromCommentResponse.cpp deleted file mode 100644 index 2177a63..0000000 --- a/client/src/model/UnBlockUserFromCommentResponse.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UnBlockUserFromCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UnBlockUserFromCommentResponse::UnBlockUserFromCommentResponse() -{ - m_StatusIsSet = false; - m_CommentStatusesIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UnBlockUserFromCommentResponse::~UnBlockUserFromCommentResponse() -{ -} - -void UnBlockUserFromCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UnBlockUserFromCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CommentStatusesIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))] = ModelBase::toJson(m_CommentStatuses); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UnBlockUserFromCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))); - if(!fieldValue.is_null()) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentStatuses); - setCommentStatuses(refVal_setCommentStatuses); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UnBlockUserFromCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CommentStatusesIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentStatuses")), m_CommentStatuses)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UnBlockUserFromCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses")))) - { - std::map refVal_setCommentStatuses; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentStatuses"))), refVal_setCommentStatuses ); - setCommentStatuses(refVal_setCommentStatuses); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UnBlockUserFromCommentResponse::getStatus() const -{ - return m_Status; -} - - -void UnBlockUserFromCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UnBlockUserFromCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UnBlockUserFromCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::map UnBlockUserFromCommentResponse::getCommentStatuses() const -{ - return m_CommentStatuses; -} - -void UnBlockUserFromCommentResponse::setCommentStatuses(std::map value) -{ - m_CommentStatuses = value; - m_CommentStatusesIsSet = true; -} - -bool UnBlockUserFromCommentResponse::commentStatusesIsSet() const -{ - return m_CommentStatusesIsSet; -} - -void UnBlockUserFromCommentResponse::unsetCommentStatuses() -{ - m_CommentStatusesIsSet = false; -} -utility::string_t UnBlockUserFromCommentResponse::getReason() const -{ - return m_Reason; -} - - -void UnBlockUserFromCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UnBlockUserFromCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UnBlockUserFromCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UnBlockUserFromCommentResponse::getCode() const -{ - return m_Code; -} - - -void UnBlockUserFromCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UnBlockUserFromCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UnBlockUserFromCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UnBlockUserFromCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UnBlockUserFromCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UnBlockUserFromCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UnBlockUserFromCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UnBlockUserFromCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UnBlockUserFromCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UnBlockUserFromCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UnBlockUserFromCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UnBlockUserFromCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UnBlockUserFromCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UnBlockUserFromCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UnBlockUserFromCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UnBlockUserFromCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UnBlockUserFromCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UnBlockUserFromCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UnBlockUserFromCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UnBlockUserFromCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UnBlockUserFromCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UnBlockUserFromCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UnBlockUserFromCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UnFlagCommentResponse.cpp b/client/src/model/UnFlagCommentResponse.cpp deleted file mode 100644 index 8c7a8cf..0000000 --- a/client/src/model/UnFlagCommentResponse.cpp +++ /dev/null @@ -1,559 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UnFlagCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UnFlagCommentResponse::UnFlagCommentResponse() -{ - m_StatusCode = 0; - m_StatusCodeIsSet = false; - m_StatusIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_WasUnapproved = false; - m_WasUnapprovedIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UnFlagCommentResponse::~UnFlagCommentResponse() -{ -} - -void UnFlagCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UnFlagCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("statusCode"))] = ModelBase::toJson(m_StatusCode); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_WasUnapprovedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))] = ModelBase::toJson(m_WasUnapproved); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UnFlagCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("statusCode"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setStatusCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatusCode); - setStatusCode(refVal_setStatusCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))); - if(!fieldValue.is_null()) - { - bool refVal_setWasUnapproved; - ok &= ModelBase::fromJson(fieldValue, refVal_setWasUnapproved); - setWasUnapproved(refVal_setWasUnapproved); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UnFlagCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("statusCode")), m_StatusCode)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_WasUnapprovedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")), m_WasUnapproved)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UnFlagCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("statusCode")))) - { - int32_t refVal_setStatusCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("statusCode"))), refVal_setStatusCode ); - setStatusCode(refVal_setStatusCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved")))) - { - bool refVal_setWasUnapproved; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("wasUnapproved"))), refVal_setWasUnapproved ); - setWasUnapproved(refVal_setWasUnapproved); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -int32_t UnFlagCommentResponse::getStatusCode() const -{ - return m_StatusCode; -} - -void UnFlagCommentResponse::setStatusCode(int32_t value) -{ - m_StatusCode = value; - m_StatusCodeIsSet = true; -} - -bool UnFlagCommentResponse::statusCodeIsSet() const -{ - return m_StatusCodeIsSet; -} - -void UnFlagCommentResponse::unsetStatusCode() -{ - m_StatusCodeIsSet = false; -} -std::shared_ptr UnFlagCommentResponse::getStatus() const -{ - return m_Status; -} - - -void UnFlagCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UnFlagCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UnFlagCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UnFlagCommentResponse::getCode() const -{ - return m_Code; -} - - -void UnFlagCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UnFlagCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UnFlagCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UnFlagCommentResponse::getReason() const -{ - return m_Reason; -} - - -void UnFlagCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UnFlagCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UnFlagCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -bool UnFlagCommentResponse::isWasUnapproved() const -{ - return m_WasUnapproved; -} - -void UnFlagCommentResponse::setWasUnapproved(bool value) -{ - m_WasUnapproved = value; - m_WasUnapprovedIsSet = true; -} - -bool UnFlagCommentResponse::wasUnapprovedIsSet() const -{ - return m_WasUnapprovedIsSet; -} - -void UnFlagCommentResponse::unsetWasUnapproved() -{ - m_WasUnapprovedIsSet = false; -} -utility::string_t UnFlagCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UnFlagCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UnFlagCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UnFlagCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UnFlagCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UnFlagCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UnFlagCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UnFlagCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UnFlagCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UnFlagCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UnFlagCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UnFlagCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UnFlagCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UnFlagCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UnFlagCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UnFlagCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UnFlagCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UnFlagCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UnFlagCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UnFlagCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UnLockCommentResponse.cpp b/client/src/model/UnLockCommentResponse.cpp deleted file mode 100644 index c596e56..0000000 --- a/client/src/model/UnLockCommentResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UnLockCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UnLockCommentResponse::UnLockCommentResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UnLockCommentResponse::~UnLockCommentResponse() -{ -} - -void UnLockCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UnLockCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UnLockCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UnLockCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UnLockCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UnLockCommentResponse::getStatus() const -{ - return m_Status; -} - - -void UnLockCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UnLockCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UnLockCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UnLockCommentResponse::getReason() const -{ - return m_Reason; -} - - -void UnLockCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UnLockCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UnLockCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UnLockCommentResponse::getCode() const -{ - return m_Code; -} - - -void UnLockCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UnLockCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UnLockCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UnLockCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UnLockCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UnLockCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UnLockCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UnLockCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UnLockCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UnLockCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UnLockCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UnLockCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UnLockCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UnLockCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UnLockCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UnLockCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UnLockCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UnLockCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UnLockCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UnLockCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UnLockCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UnLockCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UnLockCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UnPinCommentResponse.cpp b/client/src/model/UnPinCommentResponse.cpp deleted file mode 100644 index d94dcc7..0000000 --- a/client/src/model/UnPinCommentResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UnPinCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UnPinCommentResponse::UnPinCommentResponse() -{ - m_CommentPositionsIsSet = false; - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UnPinCommentResponse::~UnPinCommentResponse() -{ -} - -void UnPinCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UnPinCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_CommentPositionsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("commentPositions"))] = ModelBase::toJson(m_CommentPositions); - } - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UnPinCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("commentPositions")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("commentPositions"))); - if(!fieldValue.is_null()) - { - std::map> refVal_setCommentPositions; - ok &= ModelBase::fromJson(fieldValue, refVal_setCommentPositions); - setCommentPositions(refVal_setCommentPositions); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UnPinCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_CommentPositionsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("commentPositions")), m_CommentPositions)); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UnPinCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("commentPositions")))) - { - std::map> refVal_setCommentPositions; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("commentPositions"))), refVal_setCommentPositions ); - setCommentPositions(refVal_setCommentPositions); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::map> UnPinCommentResponse::getCommentPositions() const -{ - return m_CommentPositions; -} - - -void UnPinCommentResponse::setCommentPositions(const std::map>& value) -{ - m_CommentPositions = value; - m_CommentPositionsIsSet = true; -} - -bool UnPinCommentResponse::commentPositionsIsSet() const -{ - return m_CommentPositionsIsSet; -} - -void UnPinCommentResponse::unsetCommentPositions() -{ - m_CommentPositionsIsSet = false; -} -std::shared_ptr UnPinCommentResponse::getStatus() const -{ - return m_Status; -} - - -void UnPinCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UnPinCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UnPinCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UnPinCommentResponse::getReason() const -{ - return m_Reason; -} - - -void UnPinCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UnPinCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UnPinCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UnPinCommentResponse::getCode() const -{ - return m_Code; -} - - -void UnPinCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UnPinCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UnPinCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UnPinCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UnPinCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UnPinCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UnPinCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UnPinCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UnPinCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UnPinCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UnPinCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UnPinCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UnPinCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UnPinCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UnPinCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UnPinCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UnPinCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UnPinCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UnPinCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UnPinCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UnPinCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UnPinCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UnPinCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateCommentResponse.cpp b/client/src/model/UpdateCommentResponse.cpp deleted file mode 100644 index 6688cb6..0000000 --- a/client/src/model/UpdateCommentResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateCommentResponse::UpdateCommentResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateCommentResponse::~UpdateCommentResponse() -{ -} - -void UpdateCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateCommentResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateCommentResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateCommentResponse::getCode() const -{ - return m_Code; -} - - -void UpdateCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateEmailTemplateResponse.cpp b/client/src/model/UpdateEmailTemplateResponse.cpp deleted file mode 100644 index 51167f9..0000000 --- a/client/src/model/UpdateEmailTemplateResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateEmailTemplateResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateEmailTemplateResponse::UpdateEmailTemplateResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateEmailTemplateResponse::~UpdateEmailTemplateResponse() -{ -} - -void UpdateEmailTemplateResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateEmailTemplateResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateEmailTemplateResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateEmailTemplateResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateEmailTemplateResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateEmailTemplateResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateEmailTemplateResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateEmailTemplateResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateEmailTemplateResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateEmailTemplateResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateEmailTemplateResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateEmailTemplateResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateEmailTemplateResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateEmailTemplateResponse::getCode() const -{ - return m_Code; -} - - -void UpdateEmailTemplateResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateEmailTemplateResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateEmailTemplateResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateEmailTemplateResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateEmailTemplateResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateEmailTemplateResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateEmailTemplateResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateEmailTemplateResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateEmailTemplateResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateEmailTemplateResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateEmailTemplateResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateEmailTemplateResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateEmailTemplateResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateEmailTemplateResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateEmailTemplateResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateEmailTemplateResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateEmailTemplateResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateEmailTemplateResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateEmailTemplateResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateEmailTemplateResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateEmailTemplateResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateEmailTemplateResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateEmailTemplateResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateFeedPostPublicResponse.cpp b/client/src/model/UpdateFeedPostPublicResponse.cpp deleted file mode 100644 index 9e4260b..0000000 --- a/client/src/model/UpdateFeedPostPublicResponse.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateFeedPostPublicResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateFeedPostPublicResponse::UpdateFeedPostPublicResponse() -{ - m_StatusIsSet = false; - m_FeedPostIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateFeedPostPublicResponse::~UpdateFeedPostPublicResponse() -{ -} - -void UpdateFeedPostPublicResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateFeedPostPublicResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_FeedPostIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("feedPost"))] = ModelBase::toJson(m_FeedPost); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateFeedPostPublicResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("feedPost"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setFeedPost; - ok &= ModelBase::fromJson(fieldValue, refVal_setFeedPost); - setFeedPost(refVal_setFeedPost); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateFeedPostPublicResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_FeedPostIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("feedPost")), m_FeedPost)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateFeedPostPublicResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("feedPost")))) - { - std::shared_ptr refVal_setFeedPost; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("feedPost"))), refVal_setFeedPost ); - setFeedPost(refVal_setFeedPost); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateFeedPostPublicResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateFeedPostPublicResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateFeedPostPublicResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateFeedPostPublicResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -std::shared_ptr UpdateFeedPostPublicResponse::getFeedPost() const -{ - return m_FeedPost; -} - - -void UpdateFeedPostPublicResponse::setFeedPost(const std::shared_ptr& value) -{ - m_FeedPost = value; - m_FeedPostIsSet = true; -} - -bool UpdateFeedPostPublicResponse::feedPostIsSet() const -{ - return m_FeedPostIsSet; -} - -void UpdateFeedPostPublicResponse::unsetFeedPost() -{ - m_FeedPostIsSet = false; -} -utility::string_t UpdateFeedPostPublicResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateFeedPostPublicResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateFeedPostPublicResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateFeedPostPublicResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateFeedPostPublicResponse::getCode() const -{ - return m_Code; -} - - -void UpdateFeedPostPublicResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateFeedPostPublicResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateFeedPostPublicResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateFeedPostPublicResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateFeedPostPublicResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateFeedPostPublicResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateFeedPostPublicResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateFeedPostPublicResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateFeedPostPublicResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateFeedPostPublicResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateFeedPostPublicResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateFeedPostPublicResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateFeedPostPublicResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateFeedPostPublicResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateFeedPostPublicResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateFeedPostPublicResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateFeedPostPublicResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateFeedPostPublicResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateFeedPostPublicResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateFeedPostPublicResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateFeedPostPublicResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateFeedPostPublicResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateFeedPostPublicResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateFeedPostResponse.cpp b/client/src/model/UpdateFeedPostResponse.cpp deleted file mode 100644 index 0601837..0000000 --- a/client/src/model/UpdateFeedPostResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateFeedPostResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateFeedPostResponse::UpdateFeedPostResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateFeedPostResponse::~UpdateFeedPostResponse() -{ -} - -void UpdateFeedPostResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateFeedPostResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateFeedPostResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateFeedPostResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateFeedPostResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateFeedPostResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateFeedPostResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateFeedPostResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateFeedPostResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateFeedPostResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateFeedPostResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateFeedPostResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateFeedPostResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateFeedPostResponse::getCode() const -{ - return m_Code; -} - - -void UpdateFeedPostResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateFeedPostResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateFeedPostResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateFeedPostResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateFeedPostResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateFeedPostResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateFeedPostResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateFeedPostResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateFeedPostResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateFeedPostResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateFeedPostResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateFeedPostResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateFeedPostResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateFeedPostResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateFeedPostResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateFeedPostResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateFeedPostResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateFeedPostResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateFeedPostResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateFeedPostResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateFeedPostResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateFeedPostResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateFeedPostResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateModeratorResponse.cpp b/client/src/model/UpdateModeratorResponse.cpp deleted file mode 100644 index ca5107f..0000000 --- a/client/src/model/UpdateModeratorResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateModeratorResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateModeratorResponse::UpdateModeratorResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateModeratorResponse::~UpdateModeratorResponse() -{ -} - -void UpdateModeratorResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateModeratorResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateModeratorResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateModeratorResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateModeratorResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateModeratorResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateModeratorResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateModeratorResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateModeratorResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateModeratorResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateModeratorResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateModeratorResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateModeratorResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateModeratorResponse::getCode() const -{ - return m_Code; -} - - -void UpdateModeratorResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateModeratorResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateModeratorResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateModeratorResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateModeratorResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateModeratorResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateModeratorResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateModeratorResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateModeratorResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateModeratorResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateModeratorResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateModeratorResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateModeratorResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateModeratorResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateModeratorResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateModeratorResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateModeratorResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateModeratorResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateModeratorResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateModeratorResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateModeratorResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateModeratorResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateModeratorResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateNotificationResponse.cpp b/client/src/model/UpdateNotificationResponse.cpp deleted file mode 100644 index a8c121f..0000000 --- a/client/src/model/UpdateNotificationResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateNotificationResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateNotificationResponse::UpdateNotificationResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateNotificationResponse::~UpdateNotificationResponse() -{ -} - -void UpdateNotificationResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateNotificationResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateNotificationResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateNotificationResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateNotificationResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateNotificationResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateNotificationResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateNotificationResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateNotificationResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateNotificationResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateNotificationResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateNotificationResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateNotificationResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateNotificationResponse::getCode() const -{ - return m_Code; -} - - -void UpdateNotificationResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateNotificationResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateNotificationResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateNotificationResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateNotificationResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateNotificationResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateNotificationResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateNotificationResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateNotificationResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateNotificationResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateNotificationResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateNotificationResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateNotificationResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateNotificationResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateNotificationResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateNotificationResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateNotificationResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateNotificationResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateNotificationResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateNotificationResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateNotificationResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateNotificationResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateNotificationResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateQuestionConfigResponse.cpp b/client/src/model/UpdateQuestionConfigResponse.cpp deleted file mode 100644 index 95fd9cf..0000000 --- a/client/src/model/UpdateQuestionConfigResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateQuestionConfigResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateQuestionConfigResponse::UpdateQuestionConfigResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateQuestionConfigResponse::~UpdateQuestionConfigResponse() -{ -} - -void UpdateQuestionConfigResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateQuestionConfigResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateQuestionConfigResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateQuestionConfigResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateQuestionConfigResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateQuestionConfigResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateQuestionConfigResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateQuestionConfigResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateQuestionConfigResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateQuestionConfigResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateQuestionConfigResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateQuestionConfigResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateQuestionConfigResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateQuestionConfigResponse::getCode() const -{ - return m_Code; -} - - -void UpdateQuestionConfigResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateQuestionConfigResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateQuestionConfigResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateQuestionConfigResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateQuestionConfigResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateQuestionConfigResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateQuestionConfigResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateQuestionConfigResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateQuestionConfigResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateQuestionConfigResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateQuestionConfigResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateQuestionConfigResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateQuestionConfigResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateQuestionConfigResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateQuestionConfigResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateQuestionConfigResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateQuestionConfigResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateQuestionConfigResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateQuestionConfigResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateQuestionConfigResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateQuestionConfigResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateQuestionConfigResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateQuestionConfigResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateQuestionResultResponse.cpp b/client/src/model/UpdateQuestionResultResponse.cpp deleted file mode 100644 index 458336a..0000000 --- a/client/src/model/UpdateQuestionResultResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateQuestionResultResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateQuestionResultResponse::UpdateQuestionResultResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateQuestionResultResponse::~UpdateQuestionResultResponse() -{ -} - -void UpdateQuestionResultResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateQuestionResultResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateQuestionResultResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateQuestionResultResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateQuestionResultResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateQuestionResultResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateQuestionResultResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateQuestionResultResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateQuestionResultResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateQuestionResultResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateQuestionResultResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateQuestionResultResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateQuestionResultResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateQuestionResultResponse::getCode() const -{ - return m_Code; -} - - -void UpdateQuestionResultResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateQuestionResultResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateQuestionResultResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateQuestionResultResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateQuestionResultResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateQuestionResultResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateQuestionResultResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateQuestionResultResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateQuestionResultResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateQuestionResultResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateQuestionResultResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateQuestionResultResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateQuestionResultResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateQuestionResultResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateQuestionResultResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateQuestionResultResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateQuestionResultResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateQuestionResultResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateQuestionResultResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateQuestionResultResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateQuestionResultResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateQuestionResultResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateQuestionResultResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateTenantPackageResponse.cpp b/client/src/model/UpdateTenantPackageResponse.cpp deleted file mode 100644 index fa31911..0000000 --- a/client/src/model/UpdateTenantPackageResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateTenantPackageResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateTenantPackageResponse::UpdateTenantPackageResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateTenantPackageResponse::~UpdateTenantPackageResponse() -{ -} - -void UpdateTenantPackageResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateTenantPackageResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateTenantPackageResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateTenantPackageResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateTenantPackageResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateTenantPackageResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateTenantPackageResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateTenantPackageResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateTenantPackageResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateTenantPackageResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateTenantPackageResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateTenantPackageResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateTenantPackageResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateTenantPackageResponse::getCode() const -{ - return m_Code; -} - - -void UpdateTenantPackageResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateTenantPackageResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateTenantPackageResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateTenantPackageResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateTenantPackageResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateTenantPackageResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateTenantPackageResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateTenantPackageResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateTenantPackageResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateTenantPackageResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateTenantPackageResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateTenantPackageResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateTenantPackageResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateTenantPackageResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateTenantPackageResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateTenantPackageResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateTenantPackageResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateTenantPackageResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateTenantPackageResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateTenantPackageResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateTenantPackageResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateTenantPackageResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateTenantPackageResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateTenantResponse.cpp b/client/src/model/UpdateTenantResponse.cpp deleted file mode 100644 index 4dcfe7a..0000000 --- a/client/src/model/UpdateTenantResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateTenantResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateTenantResponse::UpdateTenantResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateTenantResponse::~UpdateTenantResponse() -{ -} - -void UpdateTenantResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateTenantResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateTenantResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateTenantResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateTenantResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateTenantResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateTenantResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateTenantResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateTenantResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateTenantResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateTenantResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateTenantResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateTenantResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateTenantResponse::getCode() const -{ - return m_Code; -} - - -void UpdateTenantResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateTenantResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateTenantResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateTenantResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateTenantResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateTenantResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateTenantResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateTenantResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateTenantResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateTenantResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateTenantResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateTenantResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateTenantResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateTenantResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateTenantResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateTenantResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateTenantResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateTenantResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateTenantResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateTenantResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateTenantResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateTenantResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateTenantResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateTenantUserResponse.cpp b/client/src/model/UpdateTenantUserResponse.cpp deleted file mode 100644 index 5ec4f1f..0000000 --- a/client/src/model/UpdateTenantUserResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateTenantUserResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateTenantUserResponse::UpdateTenantUserResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateTenantUserResponse::~UpdateTenantUserResponse() -{ -} - -void UpdateTenantUserResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateTenantUserResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateTenantUserResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateTenantUserResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateTenantUserResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateTenantUserResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateTenantUserResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateTenantUserResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateTenantUserResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateTenantUserResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateTenantUserResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateTenantUserResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateTenantUserResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateTenantUserResponse::getCode() const -{ - return m_Code; -} - - -void UpdateTenantUserResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateTenantUserResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateTenantUserResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateTenantUserResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateTenantUserResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateTenantUserResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateTenantUserResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateTenantUserResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateTenantUserResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateTenantUserResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateTenantUserResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateTenantUserResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateTenantUserResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateTenantUserResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateTenantUserResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateTenantUserResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateTenantUserResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateTenantUserResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateTenantUserResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateTenantUserResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateTenantUserResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateTenantUserResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateTenantUserResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateUserBadgeResponse.cpp b/client/src/model/UpdateUserBadgeResponse.cpp deleted file mode 100644 index 0c538c2..0000000 --- a/client/src/model/UpdateUserBadgeResponse.cpp +++ /dev/null @@ -1,463 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/UpdateUserBadgeResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -UpdateUserBadgeResponse::UpdateUserBadgeResponse() -{ - m_StatusIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -UpdateUserBadgeResponse::~UpdateUserBadgeResponse() -{ -} - -void UpdateUserBadgeResponse::validate() -{ - // TODO: implement validation -} - -web::json::value UpdateUserBadgeResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool UpdateUserBadgeResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void UpdateUserBadgeResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool UpdateUserBadgeResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr UpdateUserBadgeResponse::getStatus() const -{ - return m_Status; -} - - -void UpdateUserBadgeResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool UpdateUserBadgeResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void UpdateUserBadgeResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t UpdateUserBadgeResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateUserBadgeResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateUserBadgeResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateUserBadgeResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateUserBadgeResponse::getCode() const -{ - return m_Code; -} - - -void UpdateUserBadgeResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateUserBadgeResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateUserBadgeResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateUserBadgeResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateUserBadgeResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateUserBadgeResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateUserBadgeResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateUserBadgeResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateUserBadgeResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateUserBadgeResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateUserBadgeResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateUserBadgeResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateUserBadgeResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateUserBadgeResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateUserBadgeResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateUserBadgeResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateUserBadgeResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateUserBadgeResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateUserBadgeResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateUserBadgeResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateUserBadgeResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateUserBadgeResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateUserBadgeResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp b/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp index f34ca4e..b28400a 100644 --- a/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationCommentSubscriptionStatusResponse.cpp @@ -26,19 +26,6 @@ UpdateUserNotificationCommentSubscriptionStatusResponse::UpdateUserNotificationC m_ModifiedCount = 0L; m_ModifiedCountIsSet = false; m_NoteIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; } UpdateUserNotificationCommentSubscriptionStatusResponse::~UpdateUserNotificationCommentSubscriptionStatusResponse() @@ -75,41 +62,6 @@ web::json::value UpdateUserNotificationCommentSubscriptionStatusResponse::toJson val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } return val; } @@ -162,83 +114,6 @@ bool UpdateUserNotificationCommentSubscriptionStatusResponse::fromJson(const web } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } return ok; } @@ -265,34 +140,6 @@ void UpdateUserNotificationCommentSubscriptionStatusResponse::toMultipart(std::s { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("note")), fromNoteEnum(m_Note))); } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } } bool UpdateUserNotificationCommentSubscriptionStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -328,48 +175,6 @@ bool UpdateUserNotificationCommentSubscriptionStatusResponse::fromMultiPart(std: ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("note"))), refVal_setNote ); setNote(toNoteEnum(refVal_setNote)); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } return ok; } @@ -483,151 +288,6 @@ void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetNote() { m_NoteIsSet = false; } -utility::string_t UpdateUserNotificationCommentSubscriptionStatusResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateUserNotificationCommentSubscriptionStatusResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateUserNotificationCommentSubscriptionStatusResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateUserNotificationCommentSubscriptionStatusResponse::getCode() const -{ - return m_Code; -} - - -void UpdateUserNotificationCommentSubscriptionStatusResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateUserNotificationCommentSubscriptionStatusResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateUserNotificationCommentSubscriptionStatusResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateUserNotificationCommentSubscriptionStatusResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateUserNotificationCommentSubscriptionStatusResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateUserNotificationCommentSubscriptionStatusResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateUserNotificationCommentSubscriptionStatusResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateUserNotificationCommentSubscriptionStatusResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateUserNotificationCommentSubscriptionStatusResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateUserNotificationCommentSubscriptionStatusResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateUserNotificationCommentSubscriptionStatusResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateUserNotificationCommentSubscriptionStatusResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateUserNotificationCommentSubscriptionStatusResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateUserNotificationCommentSubscriptionStatusResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateUserNotificationCommentSubscriptionStatusResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateUserNotificationCommentSubscriptionStatusResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateUserNotificationCommentSubscriptionStatusResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateUserNotificationCommentSubscriptionStatusResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} } } diff --git a/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp b/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp index 2220c1a..76e6c29 100644 --- a/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationPageSubscriptionStatusResponse.cpp @@ -26,19 +26,6 @@ UpdateUserNotificationPageSubscriptionStatusResponse::UpdateUserNotificationPage m_ModifiedCount = 0L; m_ModifiedCountIsSet = false; m_NoteIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; } UpdateUserNotificationPageSubscriptionStatusResponse::~UpdateUserNotificationPageSubscriptionStatusResponse() @@ -75,41 +62,6 @@ web::json::value UpdateUserNotificationPageSubscriptionStatusResponse::toJson() val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } return val; } @@ -162,83 +114,6 @@ bool UpdateUserNotificationPageSubscriptionStatusResponse::fromJson(const web::j } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } return ok; } @@ -265,34 +140,6 @@ void UpdateUserNotificationPageSubscriptionStatusResponse::toMultipart(std::shar { multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("note")), fromNoteEnum(m_Note))); } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } } bool UpdateUserNotificationPageSubscriptionStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -328,48 +175,6 @@ bool UpdateUserNotificationPageSubscriptionStatusResponse::fromMultiPart(std::sh ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("note"))), refVal_setNote ); setNote(toNoteEnum(refVal_setNote)); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } return ok; } @@ -483,151 +288,6 @@ void UpdateUserNotificationPageSubscriptionStatusResponse::unsetNote() { m_NoteIsSet = false; } -utility::string_t UpdateUserNotificationPageSubscriptionStatusResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateUserNotificationPageSubscriptionStatusResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateUserNotificationPageSubscriptionStatusResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateUserNotificationPageSubscriptionStatusResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateUserNotificationPageSubscriptionStatusResponse::getCode() const -{ - return m_Code; -} - - -void UpdateUserNotificationPageSubscriptionStatusResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateUserNotificationPageSubscriptionStatusResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateUserNotificationPageSubscriptionStatusResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateUserNotificationPageSubscriptionStatusResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateUserNotificationPageSubscriptionStatusResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateUserNotificationPageSubscriptionStatusResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateUserNotificationPageSubscriptionStatusResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateUserNotificationPageSubscriptionStatusResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateUserNotificationPageSubscriptionStatusResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateUserNotificationPageSubscriptionStatusResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateUserNotificationPageSubscriptionStatusResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateUserNotificationPageSubscriptionStatusResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateUserNotificationPageSubscriptionStatusResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateUserNotificationPageSubscriptionStatusResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateUserNotificationPageSubscriptionStatusResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateUserNotificationPageSubscriptionStatusResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateUserNotificationPageSubscriptionStatusResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateUserNotificationPageSubscriptionStatusResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateUserNotificationPageSubscriptionStatusResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateUserNotificationPageSubscriptionStatusResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateUserNotificationPageSubscriptionStatusResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateUserNotificationPageSubscriptionStatusResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateUserNotificationPageSubscriptionStatusResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} } } diff --git a/client/src/model/UpdateUserNotificationStatusResponse.cpp b/client/src/model/UpdateUserNotificationStatusResponse.cpp index 7bead63..e713d2d 100644 --- a/client/src/model/UpdateUserNotificationStatusResponse.cpp +++ b/client/src/model/UpdateUserNotificationStatusResponse.cpp @@ -26,19 +26,6 @@ UpdateUserNotificationStatusResponse::UpdateUserNotificationStatusResponse() m_ModifiedCount = 0L; m_ModifiedCountIsSet = false; m_NoteIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; } UpdateUserNotificationStatusResponse::~UpdateUserNotificationStatusResponse() @@ -75,41 +62,6 @@ web::json::value UpdateUserNotificationStatusResponse::toJson() const val[utility::conversions::to_string_t(_XPLATSTR("note"))] = ModelBase::toJson(refVal); } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } return val; } @@ -162,83 +114,6 @@ bool UpdateUserNotificationStatusResponse::fromJson(const web::json::value& val) } } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } return ok; } @@ -265,34 +140,6 @@ void UpdateUserNotificationStatusResponse::toMultipart(std::shared_ptradd(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("note")), fromNoteEnum(m_Note))); } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } } bool UpdateUserNotificationStatusResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) @@ -328,48 +175,6 @@ bool UpdateUserNotificationStatusResponse::fromMultiPart(std::shared_ptrgetContent(utility::conversions::to_string_t(_XPLATSTR("note"))), refVal_setNote ); setNote(toNoteEnum(refVal_setNote)); } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } return ok; } @@ -483,151 +288,6 @@ void UpdateUserNotificationStatusResponse::unsetNote() { m_NoteIsSet = false; } -utility::string_t UpdateUserNotificationStatusResponse::getReason() const -{ - return m_Reason; -} - - -void UpdateUserNotificationStatusResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool UpdateUserNotificationStatusResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void UpdateUserNotificationStatusResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t UpdateUserNotificationStatusResponse::getCode() const -{ - return m_Code; -} - - -void UpdateUserNotificationStatusResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool UpdateUserNotificationStatusResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void UpdateUserNotificationStatusResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t UpdateUserNotificationStatusResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void UpdateUserNotificationStatusResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool UpdateUserNotificationStatusResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void UpdateUserNotificationStatusResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t UpdateUserNotificationStatusResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void UpdateUserNotificationStatusResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool UpdateUserNotificationStatusResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void UpdateUserNotificationStatusResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t UpdateUserNotificationStatusResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void UpdateUserNotificationStatusResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool UpdateUserNotificationStatusResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void UpdateUserNotificationStatusResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t UpdateUserNotificationStatusResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void UpdateUserNotificationStatusResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool UpdateUserNotificationStatusResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void UpdateUserNotificationStatusResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr UpdateUserNotificationStatusResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void UpdateUserNotificationStatusResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool UpdateUserNotificationStatusResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void UpdateUserNotificationStatusResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} } } diff --git a/client/src/model/VoteCommentResponse.cpp b/client/src/model/VoteCommentResponse.cpp deleted file mode 100644 index 5fa1a18..0000000 --- a/client/src/model/VoteCommentResponse.cpp +++ /dev/null @@ -1,657 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/VoteCommentResponse.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -VoteCommentResponse::VoteCommentResponse() -{ - m_StatusIsSet = false; - m_VoteId = utility::conversions::to_string_t(""); - m_VoteIdIsSet = false; - m_IsVerified = false; - m_IsVerifiedIsSet = false; - m_UserIsSet = false; - m_EditKey = utility::conversions::to_string_t(""); - m_EditKeyIsSet = false; - m_Reason = utility::conversions::to_string_t(""); - m_ReasonIsSet = false; - m_Code = utility::conversions::to_string_t(""); - m_CodeIsSet = false; - m_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -VoteCommentResponse::~VoteCommentResponse() -{ -} - -void VoteCommentResponse::validate() -{ - // TODO: implement validation -} - -web::json::value VoteCommentResponse::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_StatusIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); - } - if(m_VoteIdIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("voteId"))] = ModelBase::toJson(m_VoteId); - } - if(m_IsVerifiedIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("isVerified"))] = ModelBase::toJson(m_IsVerified); - } - if(m_UserIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); - } - if(m_EditKeyIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("editKey"))] = ModelBase::toJson(m_EditKey); - } - if(m_ReasonIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("reason"))] = ModelBase::toJson(m_Reason); - } - if(m_CodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); - } - if(m_SecondaryCodeIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))] = ModelBase::toJson(m_SecondaryCode); - } - if(m_BannedUntilIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))] = ModelBase::toJson(m_BannedUntil); - } - if(m_MaxCharacterLengthIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))] = ModelBase::toJson(m_MaxCharacterLength); - } - if(m_TranslatedErrorIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translatedError"))] = ModelBase::toJson(m_TranslatedError); - } - if(m_CustomConfigIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("customConfig"))] = ModelBase::toJson(m_CustomConfig); - } - - return val; -} - -bool VoteCommentResponse::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromJson(fieldValue, refVal_setStatus); - setStatus(refVal_setStatus); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("voteId")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("voteId"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setVoteId; - ok &= ModelBase::fromJson(fieldValue, refVal_setVoteId); - setVoteId(refVal_setVoteId); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isVerified"))); - if(!fieldValue.is_null()) - { - bool refVal_setIsVerified; - ok &= ModelBase::fromJson(fieldValue, refVal_setIsVerified); - setIsVerified(refVal_setIsVerified); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromJson(fieldValue, refVal_setUser); - setUser(refVal_setUser); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("editKey")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("editKey"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setEditKey; - ok &= ModelBase::fromJson(fieldValue, refVal_setEditKey); - setEditKey(refVal_setEditKey); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromJson(fieldValue, refVal_setReason); - setReason(refVal_setReason); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setCode); - setCode(refVal_setCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromJson(fieldValue, refVal_setSecondaryCode); - setSecondaryCode(refVal_setSecondaryCode); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))); - if(!fieldValue.is_null()) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromJson(fieldValue, refVal_setBannedUntil); - setBannedUntil(refVal_setBannedUntil); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))); - if(!fieldValue.is_null()) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromJson(fieldValue, refVal_setMaxCharacterLength); - setMaxCharacterLength(refVal_setMaxCharacterLength); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translatedError"))); - if(!fieldValue.is_null()) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslatedError); - setTranslatedError(refVal_setTranslatedError); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("customConfig"))); - if(!fieldValue.is_null()) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromJson(fieldValue, refVal_setCustomConfig); - setCustomConfig(refVal_setCustomConfig); - - } - } - return ok; -} - -void VoteCommentResponse::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_StatusIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); - } - if(m_VoteIdIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("voteId")), m_VoteId)); - } - if(m_IsVerifiedIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isVerified")), m_IsVerified)); - } - if(m_UserIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); - } - if(m_EditKeyIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("editKey")), m_EditKey)); - } - if(m_ReasonIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("reason")), m_Reason)); - } - if(m_CodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); - } - if(m_SecondaryCodeIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("secondaryCode")), m_SecondaryCode)); - } - if(m_BannedUntilIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("bannedUntil")), m_BannedUntil)); - } - if(m_MaxCharacterLengthIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")), m_MaxCharacterLength)); - } - if(m_TranslatedErrorIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translatedError")), m_TranslatedError)); - } - if(m_CustomConfigIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("customConfig")), m_CustomConfig)); - } -} - -bool VoteCommentResponse::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus ); - setStatus(refVal_setStatus); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("voteId")))) - { - utility::string_t refVal_setVoteId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("voteId"))), refVal_setVoteId ); - setVoteId(refVal_setVoteId); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isVerified")))) - { - bool refVal_setIsVerified; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isVerified"))), refVal_setIsVerified ); - setIsVerified(refVal_setIsVerified); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) - { - std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser ); - setUser(refVal_setUser); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("editKey")))) - { - utility::string_t refVal_setEditKey; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("editKey"))), refVal_setEditKey ); - setEditKey(refVal_setEditKey); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reason"))), refVal_setReason ); - setReason(refVal_setReason); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) - { - utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode ); - setCode(refVal_setCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode")))) - { - utility::string_t refVal_setSecondaryCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("secondaryCode"))), refVal_setSecondaryCode ); - setSecondaryCode(refVal_setSecondaryCode); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil")))) - { - int64_t refVal_setBannedUntil; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("bannedUntil"))), refVal_setBannedUntil ); - setBannedUntil(refVal_setBannedUntil); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength")))) - { - int32_t refVal_setMaxCharacterLength; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("maxCharacterLength"))), refVal_setMaxCharacterLength ); - setMaxCharacterLength(refVal_setMaxCharacterLength); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translatedError")))) - { - utility::string_t refVal_setTranslatedError; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translatedError"))), refVal_setTranslatedError ); - setTranslatedError(refVal_setTranslatedError); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("customConfig")))) - { - std::shared_ptr refVal_setCustomConfig; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("customConfig"))), refVal_setCustomConfig ); - setCustomConfig(refVal_setCustomConfig); - } - return ok; -} - - -std::shared_ptr VoteCommentResponse::getStatus() const -{ - return m_Status; -} - - -void VoteCommentResponse::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool VoteCommentResponse::statusIsSet() const -{ - return m_StatusIsSet; -} - -void VoteCommentResponse::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t VoteCommentResponse::getVoteId() const -{ - return m_VoteId; -} - - -void VoteCommentResponse::setVoteId(const utility::string_t& value) -{ - m_VoteId = value; - m_VoteIdIsSet = true; -} - -bool VoteCommentResponse::voteIdIsSet() const -{ - return m_VoteIdIsSet; -} - -void VoteCommentResponse::unsetVoteId() -{ - m_VoteIdIsSet = false; -} -bool VoteCommentResponse::isIsVerified() const -{ - return m_IsVerified; -} - -void VoteCommentResponse::setIsVerified(bool value) -{ - m_IsVerified = value; - m_IsVerifiedIsSet = true; -} - -bool VoteCommentResponse::isVerifiedIsSet() const -{ - return m_IsVerifiedIsSet; -} - -void VoteCommentResponse::unsetIsVerified() -{ - m_IsVerifiedIsSet = false; -} -std::shared_ptr VoteCommentResponse::getUser() const -{ - return m_User; -} - - -void VoteCommentResponse::setUser(const std::shared_ptr& value) -{ - m_User = value; - m_UserIsSet = true; -} - -bool VoteCommentResponse::userIsSet() const -{ - return m_UserIsSet; -} - -void VoteCommentResponse::unsetUser() -{ - m_UserIsSet = false; -} -utility::string_t VoteCommentResponse::getEditKey() const -{ - return m_EditKey; -} - - -void VoteCommentResponse::setEditKey(const utility::string_t& value) -{ - m_EditKey = value; - m_EditKeyIsSet = true; -} - -bool VoteCommentResponse::editKeyIsSet() const -{ - return m_EditKeyIsSet; -} - -void VoteCommentResponse::unsetEditKey() -{ - m_EditKeyIsSet = false; -} -utility::string_t VoteCommentResponse::getReason() const -{ - return m_Reason; -} - - -void VoteCommentResponse::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool VoteCommentResponse::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void VoteCommentResponse::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t VoteCommentResponse::getCode() const -{ - return m_Code; -} - - -void VoteCommentResponse::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool VoteCommentResponse::codeIsSet() const -{ - return m_CodeIsSet; -} - -void VoteCommentResponse::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t VoteCommentResponse::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void VoteCommentResponse::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool VoteCommentResponse::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void VoteCommentResponse::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t VoteCommentResponse::getBannedUntil() const -{ - return m_BannedUntil; -} - -void VoteCommentResponse::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool VoteCommentResponse::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void VoteCommentResponse::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t VoteCommentResponse::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void VoteCommentResponse::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool VoteCommentResponse::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void VoteCommentResponse::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t VoteCommentResponse::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void VoteCommentResponse::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool VoteCommentResponse::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void VoteCommentResponse::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr VoteCommentResponse::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void VoteCommentResponse::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool VoteCommentResponse::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void VoteCommentResponse::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/docs/Apis/DefaultApi.md b/docs/Apis/DefaultApi.md index 979cb76..899940e 100644 --- a/docs/Apis/DefaultApi.md +++ b/docs/Apis/DefaultApi.md @@ -148,7 +148,7 @@ All URIs are relative to *https://fastcomments.com* # **addHashTag** -> AddHashTagResponse addHashTag(tenantId, CreateHashTagBody) +> CreateHashTagResponse addHashTag(tenantId, CreateHashTagBody) @@ -161,7 +161,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**AddHashTagResponse**](../Models/AddHashTagResponse.md) +[**CreateHashTagResponse**](../Models/CreateHashTagResponse.md) ### Authorization @@ -174,7 +174,7 @@ All URIs are relative to *https://fastcomments.com* # **addHashTagsBulk** -> AddHashTagsBulkResponse addHashTagsBulk(tenantId, BulkCreateHashTagsBody) +> BulkCreateHashTagsResponse addHashTagsBulk(tenantId, BulkCreateHashTagsBody) @@ -187,7 +187,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**AddHashTagsBulkResponse**](../Models/AddHashTagsBulkResponse.md) +[**BulkCreateHashTagsResponse**](../Models/BulkCreateHashTagsResponse.md) ### Authorization @@ -282,7 +282,7 @@ All URIs are relative to *https://fastcomments.com* # **aggregateQuestionResults** -> AggregateQuestionResultsResponse_1 aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate) +> AggregateQuestionResultsResponse aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate) @@ -300,7 +300,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**AggregateQuestionResultsResponse_1**](../Models/AggregateQuestionResultsResponse_1.md) +[**AggregateQuestionResultsResponse**](../Models/AggregateQuestionResultsResponse.md) ### Authorization @@ -313,7 +313,7 @@ All URIs are relative to *https://fastcomments.com* # **blockUserFromComment** -> BlockUserFromCommentResponse blockUserFromComment(tenantId, id, BlockFromCommentParams, userId, anonUserId) +> BlockSuccess blockUserFromComment(tenantId, id, BlockFromCommentParams, userId, anonUserId) @@ -329,7 +329,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**BlockUserFromCommentResponse**](../Models/BlockUserFromCommentResponse.md) +[**BlockSuccess**](../Models/BlockSuccess.md) ### Authorization @@ -342,7 +342,7 @@ All URIs are relative to *https://fastcomments.com* # **bulkAggregateQuestionResults** -> BulkAggregateQuestionResultsResponse_1 bulkAggregateQuestionResults(tenantId, BulkAggregateQuestionResultsRequest, forceRecalculate) +> BulkAggregateQuestionResultsResponse bulkAggregateQuestionResults(tenantId, BulkAggregateQuestionResultsRequest, forceRecalculate) @@ -356,7 +356,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**BulkAggregateQuestionResultsResponse_1**](../Models/BulkAggregateQuestionResultsResponse_1.md) +[**BulkAggregateQuestionResultsResponse**](../Models/BulkAggregateQuestionResultsResponse.md) ### Authorization @@ -369,7 +369,7 @@ All URIs are relative to *https://fastcomments.com* # **changeTicketState** -> ChangeTicketStateResponse_1 changeTicketState(tenantId, userId, id, ChangeTicketStateBody) +> ChangeTicketStateResponse changeTicketState(tenantId, userId, id, ChangeTicketStateBody) @@ -384,7 +384,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**ChangeTicketStateResponse_1**](../Models/ChangeTicketStateResponse_1.md) +[**ChangeTicketStateResponse**](../Models/ChangeTicketStateResponse.md) ### Authorization @@ -397,7 +397,7 @@ All URIs are relative to *https://fastcomments.com* # **combineCommentsWithQuestionResults** -> CombineCommentsWithQuestionResultsResponse combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit) +> CombineQuestionResultsWithCommentsResponse combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit) @@ -417,7 +417,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CombineCommentsWithQuestionResultsResponse**](../Models/CombineCommentsWithQuestionResultsResponse.md) +[**CombineQuestionResultsWithCommentsResponse**](../Models/CombineQuestionResultsWithCommentsResponse.md) ### Authorization @@ -430,7 +430,7 @@ All URIs are relative to *https://fastcomments.com* # **createEmailTemplate** -> CreateEmailTemplateResponse_1 createEmailTemplate(tenantId, CreateEmailTemplateBody) +> CreateEmailTemplateResponse createEmailTemplate(tenantId, CreateEmailTemplateBody) @@ -443,7 +443,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateEmailTemplateResponse_1**](../Models/CreateEmailTemplateResponse_1.md) +[**CreateEmailTemplateResponse**](../Models/CreateEmailTemplateResponse.md) ### Authorization @@ -456,7 +456,7 @@ All URIs are relative to *https://fastcomments.com* # **createFeedPost** -> CreateFeedPostResponse_1 createFeedPost(tenantId, CreateFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck) +> CreateFeedPostsResponse createFeedPost(tenantId, CreateFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck) @@ -473,7 +473,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateFeedPostResponse_1**](../Models/CreateFeedPostResponse_1.md) +[**CreateFeedPostsResponse**](../Models/CreateFeedPostsResponse.md) ### Authorization @@ -486,7 +486,7 @@ All URIs are relative to *https://fastcomments.com* # **createModerator** -> CreateModeratorResponse_1 createModerator(tenantId, CreateModeratorBody) +> CreateModeratorResponse createModerator(tenantId, CreateModeratorBody) @@ -499,7 +499,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateModeratorResponse_1**](../Models/CreateModeratorResponse_1.md) +[**CreateModeratorResponse**](../Models/CreateModeratorResponse.md) ### Authorization @@ -512,7 +512,7 @@ All URIs are relative to *https://fastcomments.com* # **createQuestionConfig** -> CreateQuestionConfigResponse_1 createQuestionConfig(tenantId, CreateQuestionConfigBody) +> CreateQuestionConfigResponse createQuestionConfig(tenantId, CreateQuestionConfigBody) @@ -525,7 +525,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateQuestionConfigResponse_1**](../Models/CreateQuestionConfigResponse_1.md) +[**CreateQuestionConfigResponse**](../Models/CreateQuestionConfigResponse.md) ### Authorization @@ -538,7 +538,7 @@ All URIs are relative to *https://fastcomments.com* # **createQuestionResult** -> CreateQuestionResultResponse_1 createQuestionResult(tenantId, CreateQuestionResultBody) +> CreateQuestionResultResponse createQuestionResult(tenantId, CreateQuestionResultBody) @@ -551,7 +551,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateQuestionResultResponse_1**](../Models/CreateQuestionResultResponse_1.md) +[**CreateQuestionResultResponse**](../Models/CreateQuestionResultResponse.md) ### Authorization @@ -590,7 +590,7 @@ All URIs are relative to *https://fastcomments.com* # **createTenant** -> CreateTenantResponse_1 createTenant(tenantId, CreateTenantBody) +> CreateTenantResponse createTenant(tenantId, CreateTenantBody) @@ -603,7 +603,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTenantResponse_1**](../Models/CreateTenantResponse_1.md) +[**CreateTenantResponse**](../Models/CreateTenantResponse.md) ### Authorization @@ -616,7 +616,7 @@ All URIs are relative to *https://fastcomments.com* # **createTenantPackage** -> CreateTenantPackageResponse_1 createTenantPackage(tenantId, CreateTenantPackageBody) +> CreateTenantPackageResponse createTenantPackage(tenantId, CreateTenantPackageBody) @@ -629,7 +629,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTenantPackageResponse_1**](../Models/CreateTenantPackageResponse_1.md) +[**CreateTenantPackageResponse**](../Models/CreateTenantPackageResponse.md) ### Authorization @@ -642,7 +642,7 @@ All URIs are relative to *https://fastcomments.com* # **createTenantUser** -> CreateTenantUserResponse_1 createTenantUser(tenantId, CreateTenantUserBody) +> CreateTenantUserResponse createTenantUser(tenantId, CreateTenantUserBody) @@ -655,7 +655,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTenantUserResponse_1**](../Models/CreateTenantUserResponse_1.md) +[**CreateTenantUserResponse**](../Models/CreateTenantUserResponse.md) ### Authorization @@ -668,7 +668,7 @@ All URIs are relative to *https://fastcomments.com* # **createTicket** -> CreateTicketResponse_1 createTicket(tenantId, userId, CreateTicketBody) +> CreateTicketResponse createTicket(tenantId, userId, CreateTicketBody) @@ -682,7 +682,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateTicketResponse_1**](../Models/CreateTicketResponse_1.md) +[**CreateTicketResponse**](../Models/CreateTicketResponse.md) ### Authorization @@ -695,7 +695,7 @@ All URIs are relative to *https://fastcomments.com* # **createUserBadge** -> CreateUserBadgeResponse createUserBadge(tenantId, CreateUserBadgeParams) +> APICreateUserBadgeResponse createUserBadge(tenantId, CreateUserBadgeParams) @@ -708,7 +708,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateUserBadgeResponse**](../Models/CreateUserBadgeResponse.md) +[**APICreateUserBadgeResponse**](../Models/APICreateUserBadgeResponse.md) ### Authorization @@ -721,7 +721,7 @@ All URIs are relative to *https://fastcomments.com* # **createVote** -> CreateVoteResponse createVote(tenantId, commentId, direction, userId, anonUserId) +> VoteResponse createVote(tenantId, commentId, direction, userId, anonUserId) @@ -737,7 +737,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**CreateVoteResponse**](../Models/CreateVoteResponse.md) +[**VoteResponse**](../Models/VoteResponse.md) ### Authorization @@ -750,7 +750,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteComment** -> DeleteCommentResponse deleteComment(tenantId, id, contextUserId, isLive) +> DeleteCommentResult deleteComment(tenantId, id, contextUserId, isLive) @@ -765,7 +765,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteCommentResponse**](../Models/DeleteCommentResponse.md) +[**DeleteCommentResult**](../Models/DeleteCommentResult.md) ### Authorization @@ -804,7 +804,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteEmailTemplate** -> DeleteEmailTemplateResponse deleteEmailTemplate(tenantId, id) +> APIEmptyResponse deleteEmailTemplate(tenantId, id) @@ -817,7 +817,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteEmailTemplateResponse**](../Models/DeleteEmailTemplateResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -830,7 +830,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteEmailTemplateRenderError** -> DeleteEmailTemplateRenderErrorResponse deleteEmailTemplateRenderError(tenantId, id, errorId) +> APIEmptyResponse deleteEmailTemplateRenderError(tenantId, id, errorId) @@ -844,7 +844,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteEmailTemplateRenderErrorResponse**](../Models/DeleteEmailTemplateRenderErrorResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -857,7 +857,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteHashTag** -> DeleteHashTagResponse deleteHashTag(tag, tenantId, DeleteHashTagRequestBody) +> APIEmptyResponse deleteHashTag(tag, tenantId, DeleteHashTagRequestBody) @@ -871,7 +871,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteHashTagResponse**](../Models/DeleteHashTagResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -884,7 +884,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteModerator** -> DeleteModeratorResponse deleteModerator(tenantId, id, sendEmail) +> APIEmptyResponse deleteModerator(tenantId, id, sendEmail) @@ -898,7 +898,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteModeratorResponse**](../Models/DeleteModeratorResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -911,7 +911,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteNotificationCount** -> DeleteNotificationCountResponse deleteNotificationCount(tenantId, id) +> APIEmptyResponse deleteNotificationCount(tenantId, id) @@ -924,7 +924,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteNotificationCountResponse**](../Models/DeleteNotificationCountResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -963,7 +963,7 @@ All URIs are relative to *https://fastcomments.com* # **deletePendingWebhookEvent** -> DeletePendingWebhookEventResponse deletePendingWebhookEvent(tenantId, id) +> APIEmptyResponse deletePendingWebhookEvent(tenantId, id) @@ -976,7 +976,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeletePendingWebhookEventResponse**](../Models/DeletePendingWebhookEventResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -989,7 +989,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteQuestionConfig** -> DeleteQuestionConfigResponse deleteQuestionConfig(tenantId, id) +> APIEmptyResponse deleteQuestionConfig(tenantId, id) @@ -1002,7 +1002,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteQuestionConfigResponse**](../Models/DeleteQuestionConfigResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1015,7 +1015,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteQuestionResult** -> DeleteQuestionResultResponse deleteQuestionResult(tenantId, id) +> APIEmptyResponse deleteQuestionResult(tenantId, id) @@ -1028,7 +1028,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteQuestionResultResponse**](../Models/DeleteQuestionResultResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1096,7 +1096,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteTenant** -> DeleteTenantResponse deleteTenant(tenantId, id, sure) +> APIEmptyResponse deleteTenant(tenantId, id, sure) @@ -1110,7 +1110,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteTenantResponse**](../Models/DeleteTenantResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1123,7 +1123,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteTenantPackage** -> DeleteTenantPackageResponse deleteTenantPackage(tenantId, id) +> APIEmptyResponse deleteTenantPackage(tenantId, id) @@ -1136,7 +1136,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteTenantPackageResponse**](../Models/DeleteTenantPackageResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1149,7 +1149,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteTenantUser** -> DeleteTenantUserResponse deleteTenantUser(tenantId, id, deleteComments, commentDeleteMode) +> APIEmptyResponse deleteTenantUser(tenantId, id, deleteComments, commentDeleteMode) @@ -1164,7 +1164,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteTenantUserResponse**](../Models/DeleteTenantUserResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1177,7 +1177,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteUserBadge** -> DeleteUserBadgeResponse deleteUserBadge(tenantId, id) +> APIEmptySuccessResponse deleteUserBadge(tenantId, id) @@ -1190,7 +1190,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteUserBadgeResponse**](../Models/DeleteUserBadgeResponse.md) +[**APIEmptySuccessResponse**](../Models/APIEmptySuccessResponse.md) ### Authorization @@ -1203,7 +1203,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteVote** -> DeleteVoteResponse deleteVote(tenantId, id, editKey) +> VoteDeleteResponse deleteVote(tenantId, id, editKey) @@ -1217,7 +1217,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteVoteResponse**](../Models/DeleteVoteResponse.md) +[**VoteDeleteResponse**](../Models/VoteDeleteResponse.md) ### Authorization @@ -1230,7 +1230,7 @@ All URIs are relative to *https://fastcomments.com* # **flagComment** -> FlagCommentResponse_1 flagComment(tenantId, id, userId, anonUserId) +> FlagCommentResponse flagComment(tenantId, id, userId, anonUserId) @@ -1245,7 +1245,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**FlagCommentResponse_1**](../Models/FlagCommentResponse_1.md) +[**FlagCommentResponse**](../Models/FlagCommentResponse.md) ### Authorization @@ -1258,7 +1258,7 @@ All URIs are relative to *https://fastcomments.com* # **getAuditLogs** -> GetAuditLogsResponse_1 getAuditLogs(tenantId, limit, skip, order, after, before) +> GetAuditLogsResponse getAuditLogs(tenantId, limit, skip, order, after, before) @@ -1275,7 +1275,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetAuditLogsResponse_1**](../Models/GetAuditLogsResponse_1.md) +[**GetAuditLogsResponse**](../Models/GetAuditLogsResponse.md) ### Authorization @@ -1288,7 +1288,7 @@ All URIs are relative to *https://fastcomments.com* # **getCachedNotificationCount** -> GetCachedNotificationCountResponse_1 getCachedNotificationCount(tenantId, id) +> GetCachedNotificationCountResponse getCachedNotificationCount(tenantId, id) @@ -1301,7 +1301,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetCachedNotificationCountResponse_1**](../Models/GetCachedNotificationCountResponse_1.md) +[**GetCachedNotificationCountResponse**](../Models/GetCachedNotificationCountResponse.md) ### Authorization @@ -1314,7 +1314,7 @@ All URIs are relative to *https://fastcomments.com* # **getComment** -> GetCommentResponse getComment(tenantId, id) +> APIGetCommentResponse getComment(tenantId, id) @@ -1327,7 +1327,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetCommentResponse**](../Models/GetCommentResponse.md) +[**APIGetCommentResponse**](../Models/APIGetCommentResponse.md) ### Authorization @@ -1340,7 +1340,7 @@ All URIs are relative to *https://fastcomments.com* # **getComments** -> GetCommentsResponse getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate) +> APIGetCommentsResponse getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate) @@ -1368,7 +1368,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetCommentsResponse**](../Models/GetCommentsResponse.md) +[**APIGetCommentsResponse**](../Models/APIGetCommentsResponse.md) ### Authorization @@ -1432,7 +1432,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplate** -> GetEmailTemplateResponse_1 getEmailTemplate(tenantId, id) +> GetEmailTemplateResponse getEmailTemplate(tenantId, id) @@ -1445,7 +1445,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplateResponse_1**](../Models/GetEmailTemplateResponse_1.md) +[**GetEmailTemplateResponse**](../Models/GetEmailTemplateResponse.md) ### Authorization @@ -1458,7 +1458,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplateDefinitions** -> GetEmailTemplateDefinitionsResponse_1 getEmailTemplateDefinitions(tenantId) +> GetEmailTemplateDefinitionsResponse getEmailTemplateDefinitions(tenantId) @@ -1470,7 +1470,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplateDefinitionsResponse_1**](../Models/GetEmailTemplateDefinitionsResponse_1.md) +[**GetEmailTemplateDefinitionsResponse**](../Models/GetEmailTemplateDefinitionsResponse.md) ### Authorization @@ -1483,7 +1483,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplateRenderErrors** -> GetEmailTemplateRenderErrorsResponse_1 getEmailTemplateRenderErrors(tenantId, id, skip) +> GetEmailTemplateRenderErrorsResponse getEmailTemplateRenderErrors(tenantId, id, skip) @@ -1497,7 +1497,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplateRenderErrorsResponse_1**](../Models/GetEmailTemplateRenderErrorsResponse_1.md) +[**GetEmailTemplateRenderErrorsResponse**](../Models/GetEmailTemplateRenderErrorsResponse.md) ### Authorization @@ -1510,7 +1510,7 @@ All URIs are relative to *https://fastcomments.com* # **getEmailTemplates** -> GetEmailTemplatesResponse_1 getEmailTemplates(tenantId, skip) +> GetEmailTemplatesResponse getEmailTemplates(tenantId, skip) @@ -1523,7 +1523,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetEmailTemplatesResponse_1**](../Models/GetEmailTemplatesResponse_1.md) +[**GetEmailTemplatesResponse**](../Models/GetEmailTemplatesResponse.md) ### Authorization @@ -1536,7 +1536,7 @@ All URIs are relative to *https://fastcomments.com* # **getFeedPosts** -> GetFeedPostsResponse_1 getFeedPosts(tenantId, afterId, limit, tags) +> GetFeedPostsResponse getFeedPosts(tenantId, afterId, limit, tags) @@ -1553,7 +1553,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetFeedPostsResponse_1**](../Models/GetFeedPostsResponse_1.md) +[**GetFeedPostsResponse**](../Models/GetFeedPostsResponse.md) ### Authorization @@ -1566,7 +1566,7 @@ All URIs are relative to *https://fastcomments.com* # **getHashTags** -> GetHashTagsResponse_1 getHashTags(tenantId, page) +> GetHashTagsResponse getHashTags(tenantId, page) @@ -1579,7 +1579,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetHashTagsResponse_1**](../Models/GetHashTagsResponse_1.md) +[**GetHashTagsResponse**](../Models/GetHashTagsResponse.md) ### Authorization @@ -1592,7 +1592,7 @@ All URIs are relative to *https://fastcomments.com* # **getModerator** -> GetModeratorResponse_1 getModerator(tenantId, id) +> GetModeratorResponse getModerator(tenantId, id) @@ -1605,7 +1605,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetModeratorResponse_1**](../Models/GetModeratorResponse_1.md) +[**GetModeratorResponse**](../Models/GetModeratorResponse.md) ### Authorization @@ -1618,7 +1618,7 @@ All URIs are relative to *https://fastcomments.com* # **getModerators** -> GetModeratorsResponse_1 getModerators(tenantId, skip) +> GetModeratorsResponse getModerators(tenantId, skip) @@ -1631,7 +1631,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetModeratorsResponse_1**](../Models/GetModeratorsResponse_1.md) +[**GetModeratorsResponse**](../Models/GetModeratorsResponse.md) ### Authorization @@ -1644,7 +1644,7 @@ All URIs are relative to *https://fastcomments.com* # **getNotificationCount** -> GetNotificationCountResponse_1 getNotificationCount(tenantId, userId, urlId, fromCommentId, viewed, type) +> GetNotificationCountResponse getNotificationCount(tenantId, userId, urlId, fromCommentId, viewed, type) @@ -1661,7 +1661,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetNotificationCountResponse_1**](../Models/GetNotificationCountResponse_1.md) +[**GetNotificationCountResponse**](../Models/GetNotificationCountResponse.md) ### Authorization @@ -1674,7 +1674,7 @@ All URIs are relative to *https://fastcomments.com* # **getNotifications** -> GetNotificationsResponse_1 getNotifications(tenantId, userId, urlId, fromCommentId, viewed, type, skip) +> GetNotificationsResponse getNotifications(tenantId, userId, urlId, fromCommentId, viewed, type, skip) @@ -1692,7 +1692,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetNotificationsResponse_1**](../Models/GetNotificationsResponse_1.md) +[**GetNotificationsResponse**](../Models/GetNotificationsResponse.md) ### Authorization @@ -1756,7 +1756,7 @@ All URIs are relative to *https://fastcomments.com* # **getPendingWebhookEventCount** -> GetPendingWebhookEventCountResponse_1 getPendingWebhookEventCount(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT) +> GetPendingWebhookEventCountResponse getPendingWebhookEventCount(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT) @@ -1774,7 +1774,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetPendingWebhookEventCountResponse_1**](../Models/GetPendingWebhookEventCountResponse_1.md) +[**GetPendingWebhookEventCountResponse**](../Models/GetPendingWebhookEventCountResponse.md) ### Authorization @@ -1787,7 +1787,7 @@ All URIs are relative to *https://fastcomments.com* # **getPendingWebhookEvents** -> GetPendingWebhookEventsResponse_1 getPendingWebhookEvents(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip) +> GetPendingWebhookEventsResponse getPendingWebhookEvents(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip) @@ -1806,7 +1806,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetPendingWebhookEventsResponse_1**](../Models/GetPendingWebhookEventsResponse_1.md) +[**GetPendingWebhookEventsResponse**](../Models/GetPendingWebhookEventsResponse.md) ### Authorization @@ -1819,7 +1819,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionConfig** -> GetQuestionConfigResponse_1 getQuestionConfig(tenantId, id) +> GetQuestionConfigResponse getQuestionConfig(tenantId, id) @@ -1832,7 +1832,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionConfigResponse_1**](../Models/GetQuestionConfigResponse_1.md) +[**GetQuestionConfigResponse**](../Models/GetQuestionConfigResponse.md) ### Authorization @@ -1845,7 +1845,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionConfigs** -> GetQuestionConfigsResponse_1 getQuestionConfigs(tenantId, skip) +> GetQuestionConfigsResponse getQuestionConfigs(tenantId, skip) @@ -1858,7 +1858,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionConfigsResponse_1**](../Models/GetQuestionConfigsResponse_1.md) +[**GetQuestionConfigsResponse**](../Models/GetQuestionConfigsResponse.md) ### Authorization @@ -1871,7 +1871,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionResult** -> GetQuestionResultResponse_1 getQuestionResult(tenantId, id) +> GetQuestionResultResponse getQuestionResult(tenantId, id) @@ -1884,7 +1884,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionResultResponse_1**](../Models/GetQuestionResultResponse_1.md) +[**GetQuestionResultResponse**](../Models/GetQuestionResultResponse.md) ### Authorization @@ -1897,7 +1897,7 @@ All URIs are relative to *https://fastcomments.com* # **getQuestionResults** -> GetQuestionResultsResponse_1 getQuestionResults(tenantId, urlId, userId, startDate, questionId, questionIds, skip) +> GetQuestionResultsResponse getQuestionResults(tenantId, urlId, userId, startDate, questionId, questionIds, skip) @@ -1915,7 +1915,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetQuestionResultsResponse_1**](../Models/GetQuestionResultsResponse_1.md) +[**GetQuestionResultsResponse**](../Models/GetQuestionResultsResponse.md) ### Authorization @@ -2032,7 +2032,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenant** -> GetTenantResponse_1 getTenant(tenantId, id) +> GetTenantResponse getTenant(tenantId, id) @@ -2045,7 +2045,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantResponse_1**](../Models/GetTenantResponse_1.md) +[**GetTenantResponse**](../Models/GetTenantResponse.md) ### Authorization @@ -2058,7 +2058,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantDailyUsages** -> GetTenantDailyUsagesResponse_1 getTenantDailyUsages(tenantId, yearNumber, monthNumber, dayNumber, skip) +> GetTenantDailyUsagesResponse getTenantDailyUsages(tenantId, yearNumber, monthNumber, dayNumber, skip) @@ -2074,7 +2074,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantDailyUsagesResponse_1**](../Models/GetTenantDailyUsagesResponse_1.md) +[**GetTenantDailyUsagesResponse**](../Models/GetTenantDailyUsagesResponse.md) ### Authorization @@ -2087,7 +2087,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantPackage** -> GetTenantPackageResponse_1 getTenantPackage(tenantId, id) +> GetTenantPackageResponse getTenantPackage(tenantId, id) @@ -2100,7 +2100,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantPackageResponse_1**](../Models/GetTenantPackageResponse_1.md) +[**GetTenantPackageResponse**](../Models/GetTenantPackageResponse.md) ### Authorization @@ -2113,7 +2113,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantPackages** -> GetTenantPackagesResponse_1 getTenantPackages(tenantId, skip) +> GetTenantPackagesResponse getTenantPackages(tenantId, skip) @@ -2126,7 +2126,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantPackagesResponse_1**](../Models/GetTenantPackagesResponse_1.md) +[**GetTenantPackagesResponse**](../Models/GetTenantPackagesResponse.md) ### Authorization @@ -2139,7 +2139,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantUser** -> GetTenantUserResponse_1 getTenantUser(tenantId, id) +> GetTenantUserResponse getTenantUser(tenantId, id) @@ -2152,7 +2152,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantUserResponse_1**](../Models/GetTenantUserResponse_1.md) +[**GetTenantUserResponse**](../Models/GetTenantUserResponse.md) ### Authorization @@ -2165,7 +2165,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenantUsers** -> GetTenantUsersResponse_1 getTenantUsers(tenantId, skip) +> GetTenantUsersResponse getTenantUsers(tenantId, skip) @@ -2178,7 +2178,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantUsersResponse_1**](../Models/GetTenantUsersResponse_1.md) +[**GetTenantUsersResponse**](../Models/GetTenantUsersResponse.md) ### Authorization @@ -2191,7 +2191,7 @@ All URIs are relative to *https://fastcomments.com* # **getTenants** -> GetTenantsResponse_1 getTenants(tenantId, meta, skip) +> GetTenantsResponse getTenants(tenantId, meta, skip) @@ -2205,7 +2205,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTenantsResponse_1**](../Models/GetTenantsResponse_1.md) +[**GetTenantsResponse**](../Models/GetTenantsResponse.md) ### Authorization @@ -2218,7 +2218,7 @@ All URIs are relative to *https://fastcomments.com* # **getTicket** -> GetTicketResponse_1 getTicket(tenantId, id, userId) +> GetTicketResponse getTicket(tenantId, id, userId) @@ -2232,7 +2232,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTicketResponse_1**](../Models/GetTicketResponse_1.md) +[**GetTicketResponse**](../Models/GetTicketResponse.md) ### Authorization @@ -2245,7 +2245,7 @@ All URIs are relative to *https://fastcomments.com* # **getTickets** -> GetTicketsResponse_1 getTickets(tenantId, userId, state, skip, limit) +> GetTicketsResponse getTickets(tenantId, userId, state, skip, limit) @@ -2261,7 +2261,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetTicketsResponse_1**](../Models/GetTicketsResponse_1.md) +[**GetTicketsResponse**](../Models/GetTicketsResponse.md) ### Authorization @@ -2274,7 +2274,7 @@ All URIs are relative to *https://fastcomments.com* # **getUser** -> GetUserResponse_1 getUser(tenantId, id) +> GetUserResponse getUser(tenantId, id) @@ -2287,7 +2287,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserResponse_1**](../Models/GetUserResponse_1.md) +[**GetUserResponse**](../Models/GetUserResponse.md) ### Authorization @@ -2300,7 +2300,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadge** -> GetUserBadgeResponse getUserBadge(tenantId, id) +> APIGetUserBadgeResponse getUserBadge(tenantId, id) @@ -2313,7 +2313,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserBadgeResponse**](../Models/GetUserBadgeResponse.md) +[**APIGetUserBadgeResponse**](../Models/APIGetUserBadgeResponse.md) ### Authorization @@ -2326,7 +2326,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadgeProgressById** -> GetUserBadgeProgressByIdResponse getUserBadgeProgressById(tenantId, id) +> APIGetUserBadgeProgressResponse getUserBadgeProgressById(tenantId, id) @@ -2339,7 +2339,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserBadgeProgressByIdResponse**](../Models/GetUserBadgeProgressByIdResponse.md) +[**APIGetUserBadgeProgressResponse**](../Models/APIGetUserBadgeProgressResponse.md) ### Authorization @@ -2352,7 +2352,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadgeProgressByUserId** -> GetUserBadgeProgressByUserIdResponse getUserBadgeProgressByUserId(tenantId, userId) +> APIGetUserBadgeProgressResponse getUserBadgeProgressByUserId(tenantId, userId) @@ -2365,7 +2365,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserBadgeProgressByUserIdResponse**](../Models/GetUserBadgeProgressByUserIdResponse.md) +[**APIGetUserBadgeProgressResponse**](../Models/APIGetUserBadgeProgressResponse.md) ### Authorization @@ -2378,7 +2378,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadgeProgressList** -> GetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId, userId, limit, skip) +> APIGetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId, userId, limit, skip) @@ -2393,7 +2393,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserBadgeProgressListResponse**](../Models/GetUserBadgeProgressListResponse.md) +[**APIGetUserBadgeProgressListResponse**](../Models/APIGetUserBadgeProgressListResponse.md) ### Authorization @@ -2406,7 +2406,7 @@ All URIs are relative to *https://fastcomments.com* # **getUserBadges** -> GetUserBadgesResponse getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip) +> APIGetUserBadgesResponse getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip) @@ -2424,7 +2424,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetUserBadgesResponse**](../Models/GetUserBadgesResponse.md) +[**APIGetUserBadgesResponse**](../Models/APIGetUserBadgesResponse.md) ### Authorization @@ -2437,7 +2437,7 @@ All URIs are relative to *https://fastcomments.com* # **getVotes** -> GetVotesResponse_1 getVotes(tenantId, urlId) +> GetVotesResponse getVotes(tenantId, urlId) @@ -2450,7 +2450,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetVotesResponse_1**](../Models/GetVotesResponse_1.md) +[**GetVotesResponse**](../Models/GetVotesResponse.md) ### Authorization @@ -2463,7 +2463,7 @@ All URIs are relative to *https://fastcomments.com* # **getVotesForUser** -> GetVotesForUserResponse_1 getVotesForUser(tenantId, urlId, userId, anonUserId) +> GetVotesForUserResponse getVotesForUser(tenantId, urlId, userId, anonUserId) @@ -2478,7 +2478,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**GetVotesForUserResponse_1**](../Models/GetVotesForUserResponse_1.md) +[**GetVotesForUserResponse**](../Models/GetVotesForUserResponse.md) ### Authorization @@ -2518,7 +2518,7 @@ All URIs are relative to *https://fastcomments.com* # **patchHashTag** -> PatchHashTagResponse patchHashTag(tag, tenantId, UpdateHashTagBody) +> UpdateHashTagResponse patchHashTag(tag, tenantId, UpdateHashTagBody) @@ -2532,7 +2532,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**PatchHashTagResponse**](../Models/PatchHashTagResponse.md) +[**UpdateHashTagResponse**](../Models/UpdateHashTagResponse.md) ### Authorization @@ -2655,7 +2655,7 @@ All URIs are relative to *https://fastcomments.com* # **renderEmailTemplate** -> RenderEmailTemplateResponse_1 renderEmailTemplate(tenantId, RenderEmailTemplateBody, locale) +> RenderEmailTemplateResponse renderEmailTemplate(tenantId, RenderEmailTemplateBody, locale) @@ -2669,7 +2669,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**RenderEmailTemplateResponse_1**](../Models/RenderEmailTemplateResponse_1.md) +[**RenderEmailTemplateResponse**](../Models/RenderEmailTemplateResponse.md) ### Authorization @@ -2682,7 +2682,7 @@ All URIs are relative to *https://fastcomments.com* # **replaceTenantPackage** -> ReplaceTenantPackageResponse replaceTenantPackage(tenantId, id, ReplaceTenantPackageBody) +> APIEmptyResponse replaceTenantPackage(tenantId, id, ReplaceTenantPackageBody) @@ -2696,7 +2696,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**ReplaceTenantPackageResponse**](../Models/ReplaceTenantPackageResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2709,7 +2709,7 @@ All URIs are relative to *https://fastcomments.com* # **replaceTenantUser** -> ReplaceTenantUserResponse replaceTenantUser(tenantId, id, ReplaceTenantUserBody, updateComments) +> APIEmptyResponse replaceTenantUser(tenantId, id, ReplaceTenantUserBody, updateComments) @@ -2724,7 +2724,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**ReplaceTenantUserResponse**](../Models/ReplaceTenantUserResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2737,7 +2737,7 @@ All URIs are relative to *https://fastcomments.com* # **saveComment** -> SaveCommentResponse saveComment(tenantId, CreateCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) +> APISaveCommentResponse saveComment(tenantId, CreateCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) @@ -2754,7 +2754,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**SaveCommentResponse**](../Models/SaveCommentResponse.md) +[**APISaveCommentResponse**](../Models/APISaveCommentResponse.md) ### Authorization @@ -2797,7 +2797,7 @@ All URIs are relative to *https://fastcomments.com* # **sendInvite** -> SendInviteResponse sendInvite(tenantId, id, fromName) +> APIEmptyResponse sendInvite(tenantId, id, fromName) @@ -2811,7 +2811,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**SendInviteResponse**](../Models/SendInviteResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2824,7 +2824,7 @@ All URIs are relative to *https://fastcomments.com* # **sendLoginLink** -> SendLoginLinkResponse sendLoginLink(tenantId, id, redirectURL) +> APIEmptyResponse sendLoginLink(tenantId, id, redirectURL) @@ -2838,7 +2838,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**SendLoginLinkResponse**](../Models/SendLoginLinkResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2851,7 +2851,7 @@ All URIs are relative to *https://fastcomments.com* # **unBlockUserFromComment** -> UnBlockUserFromCommentResponse unBlockUserFromComment(tenantId, id, UnBlockFromCommentParams, userId, anonUserId) +> UnblockSuccess unBlockUserFromComment(tenantId, id, UnBlockFromCommentParams, userId, anonUserId) @@ -2867,7 +2867,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UnBlockUserFromCommentResponse**](../Models/UnBlockUserFromCommentResponse.md) +[**UnblockSuccess**](../Models/UnblockSuccess.md) ### Authorization @@ -2880,7 +2880,7 @@ All URIs are relative to *https://fastcomments.com* # **unFlagComment** -> UnFlagCommentResponse unFlagComment(tenantId, id, userId, anonUserId) +> FlagCommentResponse unFlagComment(tenantId, id, userId, anonUserId) @@ -2895,7 +2895,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UnFlagCommentResponse**](../Models/UnFlagCommentResponse.md) +[**FlagCommentResponse**](../Models/FlagCommentResponse.md) ### Authorization @@ -2908,7 +2908,7 @@ All URIs are relative to *https://fastcomments.com* # **updateComment** -> UpdateCommentResponse updateComment(tenantId, id, UpdatableCommentParams, contextUserId, doSpamCheck, isLive) +> APIEmptyResponse updateComment(tenantId, id, UpdatableCommentParams, contextUserId, doSpamCheck, isLive) @@ -2925,7 +2925,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateCommentResponse**](../Models/UpdateCommentResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2938,7 +2938,7 @@ All URIs are relative to *https://fastcomments.com* # **updateEmailTemplate** -> UpdateEmailTemplateResponse updateEmailTemplate(tenantId, id, UpdateEmailTemplateBody) +> APIEmptyResponse updateEmailTemplate(tenantId, id, UpdateEmailTemplateBody) @@ -2952,7 +2952,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateEmailTemplateResponse**](../Models/UpdateEmailTemplateResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2965,7 +2965,7 @@ All URIs are relative to *https://fastcomments.com* # **updateFeedPost** -> UpdateFeedPostResponse updateFeedPost(tenantId, id, FeedPost) +> APIEmptyResponse updateFeedPost(tenantId, id, FeedPost) @@ -2979,7 +2979,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateFeedPostResponse**](../Models/UpdateFeedPostResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -2992,7 +2992,7 @@ All URIs are relative to *https://fastcomments.com* # **updateModerator** -> UpdateModeratorResponse updateModerator(tenantId, id, UpdateModeratorBody) +> APIEmptyResponse updateModerator(tenantId, id, UpdateModeratorBody) @@ -3006,7 +3006,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateModeratorResponse**](../Models/UpdateModeratorResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3019,7 +3019,7 @@ All URIs are relative to *https://fastcomments.com* # **updateNotification** -> UpdateNotificationResponse updateNotification(tenantId, id, UpdateNotificationBody, userId) +> APIEmptyResponse updateNotification(tenantId, id, UpdateNotificationBody, userId) @@ -3034,7 +3034,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateNotificationResponse**](../Models/UpdateNotificationResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3047,7 +3047,7 @@ All URIs are relative to *https://fastcomments.com* # **updateQuestionConfig** -> UpdateQuestionConfigResponse updateQuestionConfig(tenantId, id, UpdateQuestionConfigBody) +> APIEmptyResponse updateQuestionConfig(tenantId, id, UpdateQuestionConfigBody) @@ -3061,7 +3061,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateQuestionConfigResponse**](../Models/UpdateQuestionConfigResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3074,7 +3074,7 @@ All URIs are relative to *https://fastcomments.com* # **updateQuestionResult** -> UpdateQuestionResultResponse updateQuestionResult(tenantId, id, UpdateQuestionResultBody) +> APIEmptyResponse updateQuestionResult(tenantId, id, UpdateQuestionResultBody) @@ -3088,7 +3088,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateQuestionResultResponse**](../Models/UpdateQuestionResultResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3129,7 +3129,7 @@ All URIs are relative to *https://fastcomments.com* # **updateTenant** -> UpdateTenantResponse updateTenant(tenantId, id, UpdateTenantBody) +> APIEmptyResponse updateTenant(tenantId, id, UpdateTenantBody) @@ -3143,7 +3143,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateTenantResponse**](../Models/UpdateTenantResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3156,7 +3156,7 @@ All URIs are relative to *https://fastcomments.com* # **updateTenantPackage** -> UpdateTenantPackageResponse updateTenantPackage(tenantId, id, UpdateTenantPackageBody) +> APIEmptyResponse updateTenantPackage(tenantId, id, UpdateTenantPackageBody) @@ -3170,7 +3170,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateTenantPackageResponse**](../Models/UpdateTenantPackageResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3183,7 +3183,7 @@ All URIs are relative to *https://fastcomments.com* # **updateTenantUser** -> UpdateTenantUserResponse updateTenantUser(tenantId, id, UpdateTenantUserBody, updateComments) +> APIEmptyResponse updateTenantUser(tenantId, id, UpdateTenantUserBody, updateComments) @@ -3198,7 +3198,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateTenantUserResponse**](../Models/UpdateTenantUserResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -3211,7 +3211,7 @@ All URIs are relative to *https://fastcomments.com* # **updateUserBadge** -> UpdateUserBadgeResponse updateUserBadge(tenantId, id, UpdateUserBadgeParams) +> APIEmptySuccessResponse updateUserBadge(tenantId, id, UpdateUserBadgeParams) @@ -3225,7 +3225,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**UpdateUserBadgeResponse**](../Models/UpdateUserBadgeResponse.md) +[**APIEmptySuccessResponse**](../Models/APIEmptySuccessResponse.md) ### Authorization diff --git a/docs/Apis/ModerationApi.md b/docs/Apis/ModerationApi.md index 7e7dbf8..9c47205 100644 --- a/docs/Apis/ModerationApi.md +++ b/docs/Apis/ModerationApi.md @@ -51,7 +51,7 @@ All URIs are relative to *https://fastcomments.com* # **deleteModerationVote** -> DeleteModerationVoteResponse deleteModerationVote(commentId, voteId, broadcastId, tenantId, sso) +> VoteDeleteResponse deleteModerationVote(commentId, voteId, broadcastId, tenantId, sso) @@ -67,7 +67,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**DeleteModerationVoteResponse**](../Models/DeleteModerationVoteResponse.md) +[**VoteDeleteResponse**](../Models/VoteDeleteResponse.md) ### Authorization @@ -80,7 +80,7 @@ No authorization required # **getApiComments** -> GetApiCommentsResponse getApiComments(page, count, text-search, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso) +> ModerationAPIGetCommentsResponse getApiComments(page, count, text-search, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso) @@ -101,7 +101,7 @@ No authorization required ### Return type -[**GetApiCommentsResponse**](../Models/GetApiCommentsResponse.md) +[**ModerationAPIGetCommentsResponse**](../Models/ModerationAPIGetCommentsResponse.md) ### Authorization @@ -114,7 +114,7 @@ No authorization required # **getApiExportStatus** -> GetApiExportStatusResponse getApiExportStatus(batchJobId, tenantId, sso) +> ModerationExportStatusResponse getApiExportStatus(batchJobId, tenantId, sso) @@ -128,7 +128,7 @@ No authorization required ### Return type -[**GetApiExportStatusResponse**](../Models/GetApiExportStatusResponse.md) +[**ModerationExportStatusResponse**](../Models/ModerationExportStatusResponse.md) ### Authorization @@ -141,7 +141,7 @@ No authorization required # **getApiIds** -> GetApiIdsResponse getApiIds(text-search, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso) +> ModerationAPIGetCommentIdsResponse getApiIds(text-search, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso) @@ -160,7 +160,7 @@ No authorization required ### Return type -[**GetApiIdsResponse**](../Models/GetApiIdsResponse.md) +[**ModerationAPIGetCommentIdsResponse**](../Models/ModerationAPIGetCommentIdsResponse.md) ### Authorization @@ -173,7 +173,7 @@ No authorization required # **getBanUsersFromComment** -> GetBanUsersFromCommentResponse getBanUsersFromComment(commentId, tenantId, sso) +> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId, tenantId, sso) @@ -187,7 +187,7 @@ No authorization required ### Return type -[**GetBanUsersFromCommentResponse**](../Models/GetBanUsersFromCommentResponse.md) +[**GetBannedUsersFromCommentResponse**](../Models/GetBannedUsersFromCommentResponse.md) ### Authorization @@ -200,7 +200,7 @@ No authorization required # **getCommentBanStatus** -> GetCommentBanStatusResponse_1 getCommentBanStatus(commentId, tenantId, sso) +> GetCommentBanStatusResponse getCommentBanStatus(commentId, tenantId, sso) @@ -214,7 +214,7 @@ No authorization required ### Return type -[**GetCommentBanStatusResponse_1**](../Models/GetCommentBanStatusResponse_1.md) +[**GetCommentBanStatusResponse**](../Models/GetCommentBanStatusResponse.md) ### Authorization @@ -227,7 +227,7 @@ No authorization required # **getCommentChildren** -> GetCommentChildrenResponse getCommentChildren(commentId, tenantId, sso) +> ModerationAPIChildCommentsResponse getCommentChildren(commentId, tenantId, sso) @@ -241,7 +241,7 @@ No authorization required ### Return type -[**GetCommentChildrenResponse**](../Models/GetCommentChildrenResponse.md) +[**ModerationAPIChildCommentsResponse**](../Models/ModerationAPIChildCommentsResponse.md) ### Authorization @@ -254,7 +254,7 @@ No authorization required # **getCount** -> GetCountResponse getCount(text-search, byIPFromComment, filter, searchFilters, demo, tenantId, sso) +> ModerationAPICountCommentsResponse getCount(text-search, byIPFromComment, filter, searchFilters, demo, tenantId, sso) @@ -272,7 +272,7 @@ No authorization required ### Return type -[**GetCountResponse**](../Models/GetCountResponse.md) +[**ModerationAPICountCommentsResponse**](../Models/ModerationAPICountCommentsResponse.md) ### Authorization @@ -285,7 +285,7 @@ No authorization required # **getCounts** -> GetCountsResponse getCounts(tenantId, sso) +> GetBannedUsersCountResponse getCounts(tenantId, sso) @@ -298,7 +298,7 @@ No authorization required ### Return type -[**GetCountsResponse**](../Models/GetCountsResponse.md) +[**GetBannedUsersCountResponse**](../Models/GetBannedUsersCountResponse.md) ### Authorization @@ -311,7 +311,7 @@ No authorization required # **getLogs** -> GetLogsResponse getLogs(commentId, tenantId, sso) +> ModerationAPIGetLogsResponse getLogs(commentId, tenantId, sso) @@ -325,7 +325,7 @@ No authorization required ### Return type -[**GetLogsResponse**](../Models/GetLogsResponse.md) +[**ModerationAPIGetLogsResponse**](../Models/ModerationAPIGetLogsResponse.md) ### Authorization @@ -338,7 +338,7 @@ No authorization required # **getManualBadges** -> GetManualBadgesResponse getManualBadges(tenantId, sso) +> GetTenantManualBadgesResponse getManualBadges(tenantId, sso) @@ -351,7 +351,7 @@ No authorization required ### Return type -[**GetManualBadgesResponse**](../Models/GetManualBadgesResponse.md) +[**GetTenantManualBadgesResponse**](../Models/GetTenantManualBadgesResponse.md) ### Authorization @@ -364,7 +364,7 @@ No authorization required # **getManualBadgesForUser** -> GetManualBadgesForUserResponse getManualBadgesForUser(badgesUserId, commentId, tenantId, sso) +> GetUserManualBadgesResponse getManualBadgesForUser(badgesUserId, commentId, tenantId, sso) @@ -379,7 +379,7 @@ No authorization required ### Return type -[**GetManualBadgesForUserResponse**](../Models/GetManualBadgesForUserResponse.md) +[**GetUserManualBadgesResponse**](../Models/GetUserManualBadgesResponse.md) ### Authorization @@ -392,7 +392,7 @@ No authorization required # **getModerationComment** -> GetModerationCommentResponse getModerationComment(commentId, includeEmail, includeIP, tenantId, sso) +> ModerationAPICommentResponse getModerationComment(commentId, includeEmail, includeIP, tenantId, sso) @@ -408,7 +408,7 @@ No authorization required ### Return type -[**GetModerationCommentResponse**](../Models/GetModerationCommentResponse.md) +[**ModerationAPICommentResponse**](../Models/ModerationAPICommentResponse.md) ### Authorization @@ -421,7 +421,7 @@ No authorization required # **getModerationCommentText** -> GetModerationCommentTextResponse getModerationCommentText(commentId, tenantId, sso) +> GetCommentTextResponse getModerationCommentText(commentId, tenantId, sso) @@ -435,7 +435,7 @@ No authorization required ### Return type -[**GetModerationCommentTextResponse**](../Models/GetModerationCommentTextResponse.md) +[**GetCommentTextResponse**](../Models/GetCommentTextResponse.md) ### Authorization @@ -448,7 +448,7 @@ No authorization required # **getPreBanSummary** -> GetPreBanSummaryResponse getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso) +> PreBanSummary getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso) @@ -465,7 +465,7 @@ No authorization required ### Return type -[**GetPreBanSummaryResponse**](../Models/GetPreBanSummaryResponse.md) +[**PreBanSummary**](../Models/PreBanSummary.md) ### Authorization @@ -478,7 +478,7 @@ No authorization required # **getSearchCommentsSummary** -> GetSearchCommentsSummaryResponse getSearchCommentsSummary(value, filters, searchFilters, tenantId, sso) +> ModerationCommentSearchResponse getSearchCommentsSummary(value, filters, searchFilters, tenantId, sso) @@ -494,7 +494,7 @@ No authorization required ### Return type -[**GetSearchCommentsSummaryResponse**](../Models/GetSearchCommentsSummaryResponse.md) +[**ModerationCommentSearchResponse**](../Models/ModerationCommentSearchResponse.md) ### Authorization @@ -507,7 +507,7 @@ No authorization required # **getSearchPages** -> GetSearchPagesResponse getSearchPages(value, tenantId, sso) +> ModerationPageSearchResponse getSearchPages(value, tenantId, sso) @@ -521,7 +521,7 @@ No authorization required ### Return type -[**GetSearchPagesResponse**](../Models/GetSearchPagesResponse.md) +[**ModerationPageSearchResponse**](../Models/ModerationPageSearchResponse.md) ### Authorization @@ -534,7 +534,7 @@ No authorization required # **getSearchSites** -> GetSearchSitesResponse getSearchSites(value, tenantId, sso) +> ModerationSiteSearchResponse getSearchSites(value, tenantId, sso) @@ -548,7 +548,7 @@ No authorization required ### Return type -[**GetSearchSitesResponse**](../Models/GetSearchSitesResponse.md) +[**ModerationSiteSearchResponse**](../Models/ModerationSiteSearchResponse.md) ### Authorization @@ -561,7 +561,7 @@ No authorization required # **getSearchSuggest** -> GetSearchSuggestResponse getSearchSuggest(text-search, tenantId, sso) +> ModerationSuggestResponse getSearchSuggest(text-search, tenantId, sso) @@ -575,7 +575,7 @@ No authorization required ### Return type -[**GetSearchSuggestResponse**](../Models/GetSearchSuggestResponse.md) +[**ModerationSuggestResponse**](../Models/ModerationSuggestResponse.md) ### Authorization @@ -588,7 +588,7 @@ No authorization required # **getSearchUsers** -> GetSearchUsersResponse getSearchUsers(value, tenantId, sso) +> ModerationUserSearchResponse getSearchUsers(value, tenantId, sso) @@ -602,7 +602,7 @@ No authorization required ### Return type -[**GetSearchUsersResponse**](../Models/GetSearchUsersResponse.md) +[**ModerationUserSearchResponse**](../Models/ModerationUserSearchResponse.md) ### Authorization @@ -615,7 +615,7 @@ No authorization required # **getTrustFactor** -> GetTrustFactorResponse getTrustFactor(userId, tenantId, sso) +> GetUserTrustFactorResponse getTrustFactor(userId, tenantId, sso) @@ -629,7 +629,7 @@ No authorization required ### Return type -[**GetTrustFactorResponse**](../Models/GetTrustFactorResponse.md) +[**GetUserTrustFactorResponse**](../Models/GetUserTrustFactorResponse.md) ### Authorization @@ -642,7 +642,7 @@ No authorization required # **getUserBanPreference** -> GetUserBanPreferenceResponse getUserBanPreference(tenantId, sso) +> APIModerateGetUserBanPreferencesResponse getUserBanPreference(tenantId, sso) @@ -655,7 +655,7 @@ No authorization required ### Return type -[**GetUserBanPreferenceResponse**](../Models/GetUserBanPreferenceResponse.md) +[**APIModerateGetUserBanPreferencesResponse**](../Models/APIModerateGetUserBanPreferencesResponse.md) ### Authorization @@ -668,7 +668,7 @@ No authorization required # **getUserInternalProfile** -> GetUserInternalProfileResponse_1 getUserInternalProfile(commentId, tenantId, sso) +> GetUserInternalProfileResponse getUserInternalProfile(commentId, tenantId, sso) @@ -682,7 +682,7 @@ No authorization required ### Return type -[**GetUserInternalProfileResponse_1**](../Models/GetUserInternalProfileResponse_1.md) +[**GetUserInternalProfileResponse**](../Models/GetUserInternalProfileResponse.md) ### Authorization @@ -695,7 +695,7 @@ No authorization required # **postAdjustCommentVotes** -> PostAdjustCommentVotesResponse postAdjustCommentVotes(commentId, AdjustCommentVotesParams, broadcastId, tenantId, sso) +> AdjustVotesResponse postAdjustCommentVotes(commentId, AdjustCommentVotesParams, broadcastId, tenantId, sso) @@ -711,7 +711,7 @@ No authorization required ### Return type -[**PostAdjustCommentVotesResponse**](../Models/PostAdjustCommentVotesResponse.md) +[**AdjustVotesResponse**](../Models/AdjustVotesResponse.md) ### Authorization @@ -724,7 +724,7 @@ No authorization required # **postApiExport** -> PostApiExportResponse postApiExport(text-search, byIPFromComment, filters, searchFilters, sorts, tenantId, sso) +> ModerationExportResponse postApiExport(text-search, byIPFromComment, filters, searchFilters, sorts, tenantId, sso) @@ -742,7 +742,7 @@ No authorization required ### Return type -[**PostApiExportResponse**](../Models/PostApiExportResponse.md) +[**ModerationExportResponse**](../Models/ModerationExportResponse.md) ### Authorization @@ -755,7 +755,7 @@ No authorization required # **postBanUserFromComment** -> PostBanUserFromCommentResponse postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso) +> BanUserFromCommentResult postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso) @@ -777,7 +777,7 @@ No authorization required ### Return type -[**PostBanUserFromCommentResponse**](../Models/PostBanUserFromCommentResponse.md) +[**BanUserFromCommentResult**](../Models/BanUserFromCommentResult.md) ### Authorization @@ -790,7 +790,7 @@ No authorization required # **postBanUserUndo** -> PostBanUserUndoResponse postBanUserUndo(BanUserUndoParams, tenantId, sso) +> APIEmptyResponse postBanUserUndo(BanUserUndoParams, tenantId, sso) @@ -804,7 +804,7 @@ No authorization required ### Return type -[**PostBanUserUndoResponse**](../Models/PostBanUserUndoResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -817,7 +817,7 @@ No authorization required # **postBulkPreBanSummary** -> PostBulkPreBanSummaryResponse postBulkPreBanSummary(BulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso) +> BulkPreBanSummary postBulkPreBanSummary(BulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso) @@ -834,7 +834,7 @@ No authorization required ### Return type -[**PostBulkPreBanSummaryResponse**](../Models/PostBulkPreBanSummaryResponse.md) +[**BulkPreBanSummary**](../Models/BulkPreBanSummary.md) ### Authorization @@ -847,7 +847,7 @@ No authorization required # **postCommentsByIds** -> PostCommentsByIdsResponse postCommentsByIds(CommentsByIdsParams, tenantId, sso) +> ModerationAPIChildCommentsResponse postCommentsByIds(CommentsByIdsParams, tenantId, sso) @@ -861,7 +861,7 @@ No authorization required ### Return type -[**PostCommentsByIdsResponse**](../Models/PostCommentsByIdsResponse.md) +[**ModerationAPIChildCommentsResponse**](../Models/ModerationAPIChildCommentsResponse.md) ### Authorization @@ -874,7 +874,7 @@ No authorization required # **postFlagComment** -> PostFlagCommentResponse postFlagComment(commentId, broadcastId, tenantId, sso) +> APIEmptyResponse postFlagComment(commentId, broadcastId, tenantId, sso) @@ -889,7 +889,7 @@ No authorization required ### Return type -[**PostFlagCommentResponse**](../Models/PostFlagCommentResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -930,7 +930,7 @@ No authorization required # **postRestoreDeletedComment** -> PostRestoreDeletedCommentResponse postRestoreDeletedComment(commentId, broadcastId, tenantId, sso) +> APIEmptyResponse postRestoreDeletedComment(commentId, broadcastId, tenantId, sso) @@ -945,7 +945,7 @@ No authorization required ### Return type -[**PostRestoreDeletedCommentResponse**](../Models/PostRestoreDeletedCommentResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -958,7 +958,7 @@ No authorization required # **postSetCommentApprovalStatus** -> PostSetCommentApprovalStatusResponse postSetCommentApprovalStatus(commentId, approved, broadcastId, tenantId, sso) +> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId, approved, broadcastId, tenantId, sso) @@ -974,7 +974,7 @@ No authorization required ### Return type -[**PostSetCommentApprovalStatusResponse**](../Models/PostSetCommentApprovalStatusResponse.md) +[**SetCommentApprovedResponse**](../Models/SetCommentApprovedResponse.md) ### Authorization @@ -987,7 +987,7 @@ No authorization required # **postSetCommentReviewStatus** -> PostSetCommentReviewStatusResponse postSetCommentReviewStatus(commentId, reviewed, broadcastId, tenantId, sso) +> APIEmptyResponse postSetCommentReviewStatus(commentId, reviewed, broadcastId, tenantId, sso) @@ -1003,7 +1003,7 @@ No authorization required ### Return type -[**PostSetCommentReviewStatusResponse**](../Models/PostSetCommentReviewStatusResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1016,7 +1016,7 @@ No authorization required # **postSetCommentSpamStatus** -> PostSetCommentSpamStatusResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, broadcastId, tenantId, sso) +> APIEmptyResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, broadcastId, tenantId, sso) @@ -1033,7 +1033,7 @@ No authorization required ### Return type -[**PostSetCommentSpamStatusResponse**](../Models/PostSetCommentSpamStatusResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1046,7 +1046,7 @@ No authorization required # **postSetCommentText** -> PostSetCommentTextResponse postSetCommentText(commentId, SetCommentTextParams, broadcastId, tenantId, sso) +> SetCommentTextResponse postSetCommentText(commentId, SetCommentTextParams, broadcastId, tenantId, sso) @@ -1062,7 +1062,7 @@ No authorization required ### Return type -[**PostSetCommentTextResponse**](../Models/PostSetCommentTextResponse.md) +[**SetCommentTextResponse**](../Models/SetCommentTextResponse.md) ### Authorization @@ -1075,7 +1075,7 @@ No authorization required # **postUnFlagComment** -> PostUnFlagCommentResponse postUnFlagComment(commentId, broadcastId, tenantId, sso) +> APIEmptyResponse postUnFlagComment(commentId, broadcastId, tenantId, sso) @@ -1090,7 +1090,7 @@ No authorization required ### Return type -[**PostUnFlagCommentResponse**](../Models/PostUnFlagCommentResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1103,7 +1103,7 @@ No authorization required # **postVote** -> PostVoteResponse postVote(commentId, direction, broadcastId, tenantId, sso) +> VoteResponse postVote(commentId, direction, broadcastId, tenantId, sso) @@ -1119,7 +1119,7 @@ No authorization required ### Return type -[**PostVoteResponse**](../Models/PostVoteResponse.md) +[**VoteResponse**](../Models/VoteResponse.md) ### Authorization @@ -1132,7 +1132,7 @@ No authorization required # **putAwardBadge** -> PutAwardBadgeResponse putAwardBadge(badgeId, userId, commentId, broadcastId, tenantId, sso) +> AwardUserBadgeResponse putAwardBadge(badgeId, userId, commentId, broadcastId, tenantId, sso) @@ -1149,7 +1149,7 @@ No authorization required ### Return type -[**PutAwardBadgeResponse**](../Models/PutAwardBadgeResponse.md) +[**AwardUserBadgeResponse**](../Models/AwardUserBadgeResponse.md) ### Authorization @@ -1162,7 +1162,7 @@ No authorization required # **putCloseThread** -> PutCloseThreadResponse putCloseThread(urlId, tenantId, sso) +> APIEmptyResponse putCloseThread(urlId, tenantId, sso) @@ -1176,7 +1176,7 @@ No authorization required ### Return type -[**PutCloseThreadResponse**](../Models/PutCloseThreadResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1189,7 +1189,7 @@ No authorization required # **putRemoveBadge** -> PutRemoveBadgeResponse putRemoveBadge(badgeId, userId, commentId, broadcastId, tenantId, sso) +> RemoveUserBadgeResponse putRemoveBadge(badgeId, userId, commentId, broadcastId, tenantId, sso) @@ -1206,7 +1206,7 @@ No authorization required ### Return type -[**PutRemoveBadgeResponse**](../Models/PutRemoveBadgeResponse.md) +[**RemoveUserBadgeResponse**](../Models/RemoveUserBadgeResponse.md) ### Authorization @@ -1219,7 +1219,7 @@ No authorization required # **putReopenThread** -> PutReopenThreadResponse putReopenThread(urlId, tenantId, sso) +> APIEmptyResponse putReopenThread(urlId, tenantId, sso) @@ -1233,7 +1233,7 @@ No authorization required ### Return type -[**PutReopenThreadResponse**](../Models/PutReopenThreadResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1246,7 +1246,7 @@ No authorization required # **setTrustFactor** -> SetTrustFactorResponse setTrustFactor(userId, trustFactor, tenantId, sso) +> SetUserTrustFactorResponse setTrustFactor(userId, trustFactor, tenantId, sso) @@ -1261,7 +1261,7 @@ No authorization required ### Return type -[**SetTrustFactorResponse**](../Models/SetTrustFactorResponse.md) +[**SetUserTrustFactorResponse**](../Models/SetUserTrustFactorResponse.md) ### Authorization diff --git a/docs/Apis/PublicApi.md b/docs/Apis/PublicApi.md index aa46b50..9b2dc5e 100644 --- a/docs/Apis/PublicApi.md +++ b/docs/Apis/PublicApi.md @@ -60,7 +60,7 @@ All URIs are relative to *https://fastcomments.com* # **blockFromCommentPublic** -> BlockFromCommentPublicResponse blockFromCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) +> BlockSuccess blockFromCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) @@ -75,7 +75,7 @@ All URIs are relative to *https://fastcomments.com* ### Return type -[**BlockFromCommentPublicResponse**](../Models/BlockFromCommentPublicResponse.md) +[**BlockSuccess**](../Models/BlockSuccess.md) ### Authorization @@ -88,7 +88,7 @@ No authorization required # **checkedCommentsForBlocked** -> CheckedCommentsForBlockedResponse checkedCommentsForBlocked(tenantId, commentIds, sso) +> CheckBlockedCommentsResponse checkedCommentsForBlocked(tenantId, commentIds, sso) @@ -102,7 +102,7 @@ No authorization required ### Return type -[**CheckedCommentsForBlockedResponse**](../Models/CheckedCommentsForBlockedResponse.md) +[**CheckBlockedCommentsResponse**](../Models/CheckBlockedCommentsResponse.md) ### Authorization @@ -115,7 +115,7 @@ No authorization required # **createCommentPublic** -> CreateCommentPublicResponse createCommentPublic(tenantId, urlId, broadcastId, CommentData, sessionId, sso) +> SaveCommentsResponseWithPresence createCommentPublic(tenantId, urlId, broadcastId, CommentData, sessionId, sso) @@ -132,7 +132,7 @@ No authorization required ### Return type -[**CreateCommentPublicResponse**](../Models/CreateCommentPublicResponse.md) +[**SaveCommentsResponseWithPresence**](../Models/SaveCommentsResponseWithPresence.md) ### Authorization @@ -145,7 +145,7 @@ No authorization required # **createFeedPostPublic** -> CreateFeedPostPublicResponse createFeedPostPublic(tenantId, CreateFeedPostParams, broadcastId, sso) +> CreateFeedPostResponse createFeedPostPublic(tenantId, CreateFeedPostParams, broadcastId, sso) @@ -160,7 +160,7 @@ No authorization required ### Return type -[**CreateFeedPostPublicResponse**](../Models/CreateFeedPostPublicResponse.md) +[**CreateFeedPostResponse**](../Models/CreateFeedPostResponse.md) ### Authorization @@ -173,7 +173,7 @@ No authorization required # **createV1PageReact** -> CreateV1PageReactResponse createV1PageReact(tenantId, urlId, title) +> CreateV1PageReact createV1PageReact(tenantId, urlId, title) @@ -187,7 +187,7 @@ No authorization required ### Return type -[**CreateV1PageReactResponse**](../Models/CreateV1PageReactResponse.md) +[**CreateV1PageReact**](../Models/CreateV1PageReact.md) ### Authorization @@ -200,7 +200,7 @@ No authorization required # **createV2PageReact** -> CreateV2PageReactResponse createV2PageReact(tenantId, urlId, id, title) +> CreateV1PageReact createV2PageReact(tenantId, urlId, id, title) @@ -215,7 +215,7 @@ No authorization required ### Return type -[**CreateV2PageReactResponse**](../Models/CreateV2PageReactResponse.md) +[**CreateV1PageReact**](../Models/CreateV1PageReact.md) ### Authorization @@ -228,7 +228,7 @@ No authorization required # **deleteCommentPublic** -> DeleteCommentPublicResponse deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso) +> PublicAPIDeleteCommentResponse deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso) @@ -244,7 +244,7 @@ No authorization required ### Return type -[**DeleteCommentPublicResponse**](../Models/DeleteCommentPublicResponse.md) +[**PublicAPIDeleteCommentResponse**](../Models/PublicAPIDeleteCommentResponse.md) ### Authorization @@ -257,7 +257,7 @@ No authorization required # **deleteCommentVote** -> DeleteCommentVoteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso) +> VoteDeleteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso) @@ -275,7 +275,7 @@ No authorization required ### Return type -[**DeleteCommentVoteResponse**](../Models/DeleteCommentVoteResponse.md) +[**VoteDeleteResponse**](../Models/VoteDeleteResponse.md) ### Authorization @@ -316,7 +316,7 @@ No authorization required # **deleteV1PageReact** -> DeleteV1PageReactResponse deleteV1PageReact(tenantId, urlId) +> CreateV1PageReact deleteV1PageReact(tenantId, urlId) @@ -329,7 +329,7 @@ No authorization required ### Return type -[**DeleteV1PageReactResponse**](../Models/DeleteV1PageReactResponse.md) +[**CreateV1PageReact**](../Models/CreateV1PageReact.md) ### Authorization @@ -342,7 +342,7 @@ No authorization required # **deleteV2PageReact** -> DeleteV2PageReactResponse deleteV2PageReact(tenantId, urlId, id) +> CreateV1PageReact deleteV2PageReact(tenantId, urlId, id) @@ -356,7 +356,7 @@ No authorization required ### Return type -[**DeleteV2PageReactResponse**](../Models/DeleteV2PageReactResponse.md) +[**CreateV1PageReact**](../Models/CreateV1PageReact.md) ### Authorization @@ -369,7 +369,7 @@ No authorization required # **flagCommentPublic** -> FlagCommentPublicResponse flagCommentPublic(tenantId, commentId, isFlagged, sso) +> APIEmptyResponse flagCommentPublic(tenantId, commentId, isFlagged, sso) @@ -384,7 +384,7 @@ No authorization required ### Return type -[**FlagCommentPublicResponse**](../Models/FlagCommentPublicResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -397,7 +397,7 @@ No authorization required # **getCommentText** -> GetCommentTextResponse_1 getCommentText(tenantId, commentId, editKey, sso) +> PublicAPIGetCommentTextResponse getCommentText(tenantId, commentId, editKey, sso) @@ -412,7 +412,7 @@ No authorization required ### Return type -[**GetCommentTextResponse_1**](../Models/GetCommentTextResponse_1.md) +[**PublicAPIGetCommentTextResponse**](../Models/PublicAPIGetCommentTextResponse.md) ### Authorization @@ -425,7 +425,7 @@ No authorization required # **getCommentVoteUserNames** -> GetCommentVoteUserNamesResponse getCommentVoteUserNames(tenantId, commentId, dir, sso) +> GetCommentVoteUserNamesSuccessResponse getCommentVoteUserNames(tenantId, commentId, dir, sso) @@ -440,7 +440,7 @@ No authorization required ### Return type -[**GetCommentVoteUserNamesResponse**](../Models/GetCommentVoteUserNamesResponse.md) +[**GetCommentVoteUserNamesSuccessResponse**](../Models/GetCommentVoteUserNamesSuccessResponse.md) ### Authorization @@ -453,7 +453,7 @@ No authorization required # **getCommentsForUser** -> GetCommentsForUserResponse_1 getCommentsForUser(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler) +> GetCommentsForUserResponse getCommentsForUser(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler) @@ -471,7 +471,7 @@ No authorization required ### Return type -[**GetCommentsForUserResponse_1**](../Models/GetCommentsForUserResponse_1.md) +[**GetCommentsForUserResponse**](../Models/GetCommentsForUserResponse.md) ### Authorization @@ -484,7 +484,7 @@ No authorization required # **getCommentsPublic** -> GetCommentsPublicResponse getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId) +> GetCommentsResponseWithPresence_PublicComment_ getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId) @@ -525,7 +525,7 @@ No authorization required ### Return type -[**GetCommentsPublicResponse**](../Models/GetCommentsPublicResponse.md) +[**GetCommentsResponseWithPresence_PublicComment_**](../Models/GetCommentsResponseWithPresence_PublicComment_.md) ### Authorization @@ -538,7 +538,7 @@ No authorization required # **getEventLog** -> GetEventLogResponse_1 getEventLog(tenantId, urlId, userIdWS, startTime, endTime) +> GetEventLogResponse getEventLog(tenantId, urlId, userIdWS, startTime, endTime) @@ -556,7 +556,7 @@ No authorization required ### Return type -[**GetEventLogResponse_1**](../Models/GetEventLogResponse_1.md) +[**GetEventLogResponse**](../Models/GetEventLogResponse.md) ### Authorization @@ -569,7 +569,7 @@ No authorization required # **getFeedPostsPublic** -> GetFeedPostsPublicResponse getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo) +> PublicFeedPostsResponse getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo) @@ -589,7 +589,7 @@ No authorization required ### Return type -[**GetFeedPostsPublicResponse**](../Models/GetFeedPostsPublicResponse.md) +[**PublicFeedPostsResponse**](../Models/PublicFeedPostsResponse.md) ### Authorization @@ -602,7 +602,7 @@ No authorization required # **getFeedPostsStats** -> GetFeedPostsStatsResponse getFeedPostsStats(tenantId, postIds, sso) +> FeedPostsStatsResponse getFeedPostsStats(tenantId, postIds, sso) @@ -616,7 +616,7 @@ No authorization required ### Return type -[**GetFeedPostsStatsResponse**](../Models/GetFeedPostsStatsResponse.md) +[**FeedPostsStatsResponse**](../Models/FeedPostsStatsResponse.md) ### Authorization @@ -629,7 +629,7 @@ No authorization required # **getGifLarge** -> GetGifLargeResponse getGifLarge(tenantId, largeInternalURLSanitized) +> GifGetLargeResponse getGifLarge(tenantId, largeInternalURLSanitized) @@ -642,7 +642,7 @@ No authorization required ### Return type -[**GetGifLargeResponse**](../Models/GetGifLargeResponse.md) +[**GifGetLargeResponse**](../Models/GifGetLargeResponse.md) ### Authorization @@ -712,7 +712,7 @@ No authorization required # **getGlobalEventLog** -> GetGlobalEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime) +> GetEventLogResponse getGlobalEventLog(tenantId, urlId, userIdWS, startTime, endTime) @@ -730,7 +730,7 @@ No authorization required ### Return type -[**GetGlobalEventLogResponse**](../Models/GetGlobalEventLogResponse.md) +[**GetEventLogResponse**](../Models/GetEventLogResponse.md) ### Authorization @@ -743,7 +743,7 @@ No authorization required # **getOfflineUsers** -> GetOfflineUsersResponse getOfflineUsers(tenantId, urlId, afterName, afterUserId) +> PageUsersOfflineResponse getOfflineUsers(tenantId, urlId, afterName, afterUserId) @@ -760,7 +760,7 @@ No authorization required ### Return type -[**GetOfflineUsersResponse**](../Models/GetOfflineUsersResponse.md) +[**PageUsersOfflineResponse**](../Models/PageUsersOfflineResponse.md) ### Authorization @@ -773,7 +773,7 @@ No authorization required # **getOnlineUsers** -> GetOnlineUsersResponse getOnlineUsers(tenantId, urlId, afterName, afterUserId) +> PageUsersOnlineResponse getOnlineUsers(tenantId, urlId, afterName, afterUserId) @@ -790,7 +790,7 @@ No authorization required ### Return type -[**GetOnlineUsersResponse**](../Models/GetOnlineUsersResponse.md) +[**PageUsersOnlineResponse**](../Models/PageUsersOnlineResponse.md) ### Authorization @@ -803,7 +803,7 @@ No authorization required # **getPagesPublic** -> GetPagesPublicResponse getPagesPublic(tenantId, cursor, limit, q, sortBy, hasComments) +> GetPublicPagesResponse getPagesPublic(tenantId, cursor, limit, q, sortBy, hasComments) @@ -822,7 +822,7 @@ No authorization required ### Return type -[**GetPagesPublicResponse**](../Models/GetPagesPublicResponse.md) +[**GetPublicPagesResponse**](../Models/GetPublicPagesResponse.md) ### Authorization @@ -835,7 +835,7 @@ No authorization required # **getTranslations** -> GetTranslationsResponse_1 getTranslations(namespace, component, locale, useFullTranslationIds) +> GetTranslationsResponse getTranslations(namespace, component, locale, useFullTranslationIds) @@ -850,7 +850,7 @@ No authorization required ### Return type -[**GetTranslationsResponse_1**](../Models/GetTranslationsResponse_1.md) +[**GetTranslationsResponse**](../Models/GetTranslationsResponse.md) ### Authorization @@ -863,7 +863,7 @@ No authorization required # **getUserNotificationCount** -> GetUserNotificationCountResponse_1 getUserNotificationCount(tenantId, sso) +> GetUserNotificationCountResponse getUserNotificationCount(tenantId, sso) @@ -876,7 +876,7 @@ No authorization required ### Return type -[**GetUserNotificationCountResponse_1**](../Models/GetUserNotificationCountResponse_1.md) +[**GetUserNotificationCountResponse**](../Models/GetUserNotificationCountResponse.md) ### Authorization @@ -889,7 +889,7 @@ No authorization required # **getUserNotifications** -> GetUserNotificationsResponse getUserNotifications(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso) +> GetMyNotificationsResponse getUserNotifications(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso) @@ -912,7 +912,7 @@ No authorization required ### Return type -[**GetUserNotificationsResponse**](../Models/GetUserNotificationsResponse.md) +[**GetMyNotificationsResponse**](../Models/GetMyNotificationsResponse.md) ### Authorization @@ -925,7 +925,7 @@ No authorization required # **getUserPresenceStatuses** -> GetUserPresenceStatusesResponse_1 getUserPresenceStatuses(tenantId, urlIdWS, userIds) +> GetUserPresenceStatusesResponse getUserPresenceStatuses(tenantId, urlIdWS, userIds) @@ -939,7 +939,7 @@ No authorization required ### Return type -[**GetUserPresenceStatusesResponse_1**](../Models/GetUserPresenceStatusesResponse_1.md) +[**GetUserPresenceStatusesResponse**](../Models/GetUserPresenceStatusesResponse.md) ### Authorization @@ -952,7 +952,7 @@ No authorization required # **getUserReactsPublic** -> GetUserReactsPublicResponse getUserReactsPublic(tenantId, postIds, sso) +> UserReactsResponse getUserReactsPublic(tenantId, postIds, sso) @@ -966,7 +966,7 @@ No authorization required ### Return type -[**GetUserReactsPublicResponse**](../Models/GetUserReactsPublicResponse.md) +[**UserReactsResponse**](../Models/UserReactsResponse.md) ### Authorization @@ -979,7 +979,7 @@ No authorization required # **getUsersInfo** -> GetUsersInfoResponse getUsersInfo(tenantId, ids) +> PageUsersInfoResponse getUsersInfo(tenantId, ids) @@ -994,7 +994,7 @@ No authorization required ### Return type -[**GetUsersInfoResponse**](../Models/GetUsersInfoResponse.md) +[**PageUsersInfoResponse**](../Models/PageUsersInfoResponse.md) ### Authorization @@ -1007,7 +1007,7 @@ No authorization required # **getV1PageLikes** -> GetV1PageLikesResponse getV1PageLikes(tenantId, urlId) +> GetV1PageLikes getV1PageLikes(tenantId, urlId) @@ -1020,7 +1020,7 @@ No authorization required ### Return type -[**GetV1PageLikesResponse**](../Models/GetV1PageLikesResponse.md) +[**GetV1PageLikes**](../Models/GetV1PageLikes.md) ### Authorization @@ -1033,7 +1033,7 @@ No authorization required # **getV2PageReactUsers** -> GetV2PageReactUsersResponse_1 getV2PageReactUsers(tenantId, urlId, id) +> GetV2PageReactUsersResponse getV2PageReactUsers(tenantId, urlId, id) @@ -1047,7 +1047,7 @@ No authorization required ### Return type -[**GetV2PageReactUsersResponse_1**](../Models/GetV2PageReactUsersResponse_1.md) +[**GetV2PageReactUsersResponse**](../Models/GetV2PageReactUsersResponse.md) ### Authorization @@ -1060,7 +1060,7 @@ No authorization required # **getV2PageReacts** -> GetV2PageReactsResponse getV2PageReacts(tenantId, urlId) +> GetV2PageReacts getV2PageReacts(tenantId, urlId) @@ -1073,7 +1073,7 @@ No authorization required ### Return type -[**GetV2PageReactsResponse**](../Models/GetV2PageReactsResponse.md) +[**GetV2PageReacts**](../Models/GetV2PageReacts.md) ### Authorization @@ -1086,7 +1086,7 @@ No authorization required # **lockComment** -> LockCommentResponse lockComment(tenantId, commentId, broadcastId, sso) +> APIEmptyResponse lockComment(tenantId, commentId, broadcastId, sso) @@ -1101,7 +1101,7 @@ No authorization required ### Return type -[**LockCommentResponse**](../Models/LockCommentResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1136,7 +1136,7 @@ No authorization required # **pinComment** -> PinCommentResponse pinComment(tenantId, commentId, broadcastId, sso) +> ChangeCommentPinStatusResponse pinComment(tenantId, commentId, broadcastId, sso) @@ -1151,7 +1151,7 @@ No authorization required ### Return type -[**PinCommentResponse**](../Models/PinCommentResponse.md) +[**ChangeCommentPinStatusResponse**](../Models/ChangeCommentPinStatusResponse.md) ### Authorization @@ -1164,7 +1164,7 @@ No authorization required # **reactFeedPostPublic** -> ReactFeedPostPublicResponse reactFeedPostPublic(tenantId, postId, ReactBodyParams, isUndo, broadcastId, sso) +> ReactFeedPostResponse reactFeedPostPublic(tenantId, postId, ReactBodyParams, isUndo, broadcastId, sso) @@ -1181,7 +1181,7 @@ No authorization required ### Return type -[**ReactFeedPostPublicResponse**](../Models/ReactFeedPostPublicResponse.md) +[**ReactFeedPostResponse**](../Models/ReactFeedPostResponse.md) ### Authorization @@ -1194,7 +1194,7 @@ No authorization required # **resetUserNotificationCount** -> ResetUserNotificationCountResponse resetUserNotificationCount(tenantId, sso) +> ResetUserNotificationsResponse resetUserNotificationCount(tenantId, sso) @@ -1207,7 +1207,7 @@ No authorization required ### Return type -[**ResetUserNotificationCountResponse**](../Models/ResetUserNotificationCountResponse.md) +[**ResetUserNotificationsResponse**](../Models/ResetUserNotificationsResponse.md) ### Authorization @@ -1220,7 +1220,7 @@ No authorization required # **resetUserNotifications** -> ResetUserNotificationsResponse_1 resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso) +> ResetUserNotificationsResponse resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso) @@ -1238,7 +1238,7 @@ No authorization required ### Return type -[**ResetUserNotificationsResponse_1**](../Models/ResetUserNotificationsResponse_1.md) +[**ResetUserNotificationsResponse**](../Models/ResetUserNotificationsResponse.md) ### Authorization @@ -1251,7 +1251,7 @@ No authorization required # **searchUsers** -> SearchUsersResponse_1 searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection) +> SearchUsersResult searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection) @@ -1268,7 +1268,7 @@ No authorization required ### Return type -[**SearchUsersResponse_1**](../Models/SearchUsersResponse_1.md) +[**SearchUsersResult**](../Models/SearchUsersResult.md) ### Authorization @@ -1281,7 +1281,7 @@ No authorization required # **setCommentText** -> SetCommentTextResponse_1 setCommentText(tenantId, commentId, broadcastId, CommentTextUpdateRequest, editKey, sso) +> PublicAPISetCommentTextResponse setCommentText(tenantId, commentId, broadcastId, CommentTextUpdateRequest, editKey, sso) @@ -1298,7 +1298,7 @@ No authorization required ### Return type -[**SetCommentTextResponse_1**](../Models/SetCommentTextResponse_1.md) +[**PublicAPISetCommentTextResponse**](../Models/PublicAPISetCommentTextResponse.md) ### Authorization @@ -1311,7 +1311,7 @@ No authorization required # **unBlockCommentPublic** -> UnBlockCommentPublicResponse unBlockCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) +> UnblockSuccess unBlockCommentPublic(tenantId, commentId, PublicBlockFromCommentParams, sso) @@ -1326,7 +1326,7 @@ No authorization required ### Return type -[**UnBlockCommentPublicResponse**](../Models/UnBlockCommentPublicResponse.md) +[**UnblockSuccess**](../Models/UnblockSuccess.md) ### Authorization @@ -1339,7 +1339,7 @@ No authorization required # **unLockComment** -> UnLockCommentResponse unLockComment(tenantId, commentId, broadcastId, sso) +> APIEmptyResponse unLockComment(tenantId, commentId, broadcastId, sso) @@ -1354,7 +1354,7 @@ No authorization required ### Return type -[**UnLockCommentResponse**](../Models/UnLockCommentResponse.md) +[**APIEmptyResponse**](../Models/APIEmptyResponse.md) ### Authorization @@ -1367,7 +1367,7 @@ No authorization required # **unPinComment** -> UnPinCommentResponse unPinComment(tenantId, commentId, broadcastId, sso) +> ChangeCommentPinStatusResponse unPinComment(tenantId, commentId, broadcastId, sso) @@ -1382,7 +1382,7 @@ No authorization required ### Return type -[**UnPinCommentResponse**](../Models/UnPinCommentResponse.md) +[**ChangeCommentPinStatusResponse**](../Models/ChangeCommentPinStatusResponse.md) ### Authorization @@ -1395,7 +1395,7 @@ No authorization required # **updateFeedPostPublic** -> UpdateFeedPostPublicResponse updateFeedPostPublic(tenantId, postId, UpdateFeedPostParams, broadcastId, sso) +> CreateFeedPostResponse updateFeedPostPublic(tenantId, postId, UpdateFeedPostParams, broadcastId, sso) @@ -1411,7 +1411,7 @@ No authorization required ### Return type -[**UpdateFeedPostPublicResponse**](../Models/UpdateFeedPostPublicResponse.md) +[**CreateFeedPostResponse**](../Models/CreateFeedPostResponse.md) ### Authorization @@ -1545,7 +1545,7 @@ No authorization required # **voteComment** -> VoteCommentResponse voteComment(tenantId, commentId, urlId, broadcastId, VoteBodyParams, sessionId, sso) +> VoteResponse voteComment(tenantId, commentId, urlId, broadcastId, VoteBodyParams, sessionId, sso) @@ -1563,7 +1563,7 @@ No authorization required ### Return type -[**VoteCommentResponse**](../Models/VoteCommentResponse.md) +[**VoteResponse**](../Models/VoteResponse.md) ### Authorization diff --git a/docs/Models/AddHashTagResponse.md b/docs/Models/AddHashTagResponse.md deleted file mode 100644 index 91c7dd6..0000000 --- a/docs/Models/AddHashTagResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# AddHashTagResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **hashTag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/AddHashTagsBulkResponse.md b/docs/Models/AddHashTagsBulkResponse.md deleted file mode 100644 index 8709628..0000000 --- a/docs/Models/AddHashTagsBulkResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# AddHashTagsBulkResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **results** | [**List**](BulkCreateHashTagsResponse_results_inner.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/AggregateQuestionResultsResponse_1.md b/docs/Models/AggregateQuestionResultsResponse_1.md deleted file mode 100644 index 16ff86d..0000000 --- a/docs/Models/AggregateQuestionResultsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# AggregateQuestionResultsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/BlockFromCommentPublicResponse.md b/docs/Models/BlockFromCommentPublicResponse.md deleted file mode 100644 index bfa4edd..0000000 --- a/docs/Models/BlockFromCommentPublicResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# BlockFromCommentPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/BlockUserFromCommentResponse.md b/docs/Models/BlockUserFromCommentResponse.md deleted file mode 100644 index f8ee63e..0000000 --- a/docs/Models/BlockUserFromCommentResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# BlockUserFromCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/BulkAggregateQuestionResultsResponse_1.md b/docs/Models/BulkAggregateQuestionResultsResponse_1.md deleted file mode 100644 index 7355c3e..0000000 --- a/docs/Models/BulkAggregateQuestionResultsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# BulkAggregateQuestionResultsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **data** | [**Map**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/ChangeTicketStateResponse_1.md b/docs/Models/ChangeTicketStateResponse_1.md deleted file mode 100644 index 7c7bc73..0000000 --- a/docs/Models/ChangeTicketStateResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# ChangeTicketStateResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **ticket** | [**APITicket**](APITicket.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CheckedCommentsForBlockedResponse.md b/docs/Models/CheckedCommentsForBlockedResponse.md deleted file mode 100644 index 2533e0a..0000000 --- a/docs/Models/CheckedCommentsForBlockedResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# CheckedCommentsForBlockedResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CombineCommentsWithQuestionResultsResponse.md b/docs/Models/CombineCommentsWithQuestionResultsResponse.md deleted file mode 100644 index 59d075e..0000000 --- a/docs/Models/CombineCommentsWithQuestionResultsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# CombineCommentsWithQuestionResultsResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateCommentPublicResponse.md b/docs/Models/CreateCommentPublicResponse.md deleted file mode 100644 index e10b1ab..0000000 --- a/docs/Models/CreateCommentPublicResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# CreateCommentPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comment** | [**PublicComment**](PublicComment.md) | | [optional] [default to null] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] [default to null] | -| **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **userIdWS** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateEmailTemplateResponse_1.md b/docs/Models/CreateEmailTemplateResponse_1.md deleted file mode 100644 index 09d42d4..0000000 --- a/docs/Models/CreateEmailTemplateResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateEmailTemplateResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateFeedPostPublicResponse.md b/docs/Models/CreateFeedPostPublicResponse.md deleted file mode 100644 index 1706924..0000000 --- a/docs/Models/CreateFeedPostPublicResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateFeedPostPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **feedPost** | [**FeedPost**](FeedPost.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateFeedPostResponse_1.md b/docs/Models/CreateFeedPostResponse_1.md deleted file mode 100644 index b804af3..0000000 --- a/docs/Models/CreateFeedPostResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateFeedPostResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **feedPost** | [**FeedPost**](FeedPost.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateModeratorResponse_1.md b/docs/Models/CreateModeratorResponse_1.md deleted file mode 100644 index c1f2204..0000000 --- a/docs/Models/CreateModeratorResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateModeratorResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **moderator** | [**Moderator**](Moderator.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateQuestionConfigResponse_1.md b/docs/Models/CreateQuestionConfigResponse_1.md deleted file mode 100644 index 9e289f4..0000000 --- a/docs/Models/CreateQuestionConfigResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateQuestionConfigResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateQuestionResultResponse_1.md b/docs/Models/CreateQuestionResultResponse_1.md deleted file mode 100644 index 52031c1..0000000 --- a/docs/Models/CreateQuestionResultResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateQuestionResultResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionResult** | [**QuestionResult**](QuestionResult.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateTenantPackageResponse_1.md b/docs/Models/CreateTenantPackageResponse_1.md deleted file mode 100644 index 47a0ff8..0000000 --- a/docs/Models/CreateTenantPackageResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateTenantPackageResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantPackage** | [**TenantPackage**](TenantPackage.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateTenantResponse_1.md b/docs/Models/CreateTenantResponse_1.md deleted file mode 100644 index e4b8e3f..0000000 --- a/docs/Models/CreateTenantResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateTenantResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenant** | [**APITenant**](APITenant.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateTenantUserResponse_1.md b/docs/Models/CreateTenantUserResponse_1.md deleted file mode 100644 index 4832a33..0000000 --- a/docs/Models/CreateTenantUserResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateTenantUserResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantUser** | [**User**](User.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateTicketResponse_1.md b/docs/Models/CreateTicketResponse_1.md deleted file mode 100644 index 6e675d1..0000000 --- a/docs/Models/CreateTicketResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateTicketResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **ticket** | [**APITicket**](APITicket.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateUserBadgeResponse.md b/docs/Models/CreateUserBadgeResponse.md deleted file mode 100644 index 0dc70e2..0000000 --- a/docs/Models/CreateUserBadgeResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateUserBadgeResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadge** | [**UserBadge**](UserBadge.md) | | [optional] [default to null] | -| **notes** | **List** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateV1PageReactResponse.md b/docs/Models/CreateV1PageReactResponse.md deleted file mode 100644 index 6d4dfec..0000000 --- a/docs/Models/CreateV1PageReactResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateV1PageReactResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **code** | **String** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateV2PageReactResponse.md b/docs/Models/CreateV2PageReactResponse.md deleted file mode 100644 index 04a932d..0000000 --- a/docs/Models/CreateV2PageReactResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# CreateV2PageReactResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **code** | **String** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/CreateVoteResponse.md b/docs/Models/CreateVoteResponse.md deleted file mode 100644 index fc9b879..0000000 --- a/docs/Models/CreateVoteResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# CreateVoteResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **voteId** | **String** | | [optional] [default to null] | -| **isVerified** | **Boolean** | | [optional] [default to null] | -| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] [default to null] | -| **editKey** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteCommentPublicResponse.md b/docs/Models/DeleteCommentPublicResponse.md deleted file mode 100644 index 9b6d35e..0000000 --- a/docs/Models/DeleteCommentPublicResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# DeleteCommentPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **comment** | [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] [default to null] | -| **hardRemoved** | **Boolean** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteCommentResponse.md b/docs/Models/DeleteCommentResponse.md deleted file mode 100644 index 4ae51bc..0000000 --- a/docs/Models/DeleteCommentResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# DeleteCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteCommentVoteResponse.md b/docs/Models/DeleteCommentVoteResponse.md deleted file mode 100644 index a29e46b..0000000 --- a/docs/Models/DeleteCommentVoteResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# DeleteCommentVoteResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **wasPendingVote** | **Boolean** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteEmailTemplateRenderErrorResponse.md b/docs/Models/DeleteEmailTemplateRenderErrorResponse.md deleted file mode 100644 index 13019d2..0000000 --- a/docs/Models/DeleteEmailTemplateRenderErrorResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteEmailTemplateRenderErrorResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteEmailTemplateResponse.md b/docs/Models/DeleteEmailTemplateResponse.md deleted file mode 100644 index d227014..0000000 --- a/docs/Models/DeleteEmailTemplateResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteEmailTemplateResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteFeedPostPublicResponse.md b/docs/Models/DeleteFeedPostPublicResponse.md index 813bd6e..1d9a593 100644 --- a/docs/Models/DeleteFeedPostPublicResponse.md +++ b/docs/Models/DeleteFeedPostPublicResponse.md @@ -4,13 +4,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/DeleteFeedPostPublicResponse_anyOf.md b/docs/Models/DeleteFeedPostPublicResponse_anyOf.md deleted file mode 100644 index 644ccd9..0000000 --- a/docs/Models/DeleteFeedPostPublicResponse_anyOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# DeleteFeedPostPublicResponse_anyOf -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteHashTagResponse.md b/docs/Models/DeleteHashTagResponse.md deleted file mode 100644 index 02d3a75..0000000 --- a/docs/Models/DeleteHashTagResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteHashTagResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteModerationVoteResponse.md b/docs/Models/DeleteModerationVoteResponse.md deleted file mode 100644 index c25e834..0000000 --- a/docs/Models/DeleteModerationVoteResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# DeleteModerationVoteResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **wasPendingVote** | **Boolean** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteModeratorResponse.md b/docs/Models/DeleteModeratorResponse.md deleted file mode 100644 index 178ebb8..0000000 --- a/docs/Models/DeleteModeratorResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteModeratorResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteNotificationCountResponse.md b/docs/Models/DeleteNotificationCountResponse.md deleted file mode 100644 index f4ea430..0000000 --- a/docs/Models/DeleteNotificationCountResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteNotificationCountResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeletePendingWebhookEventResponse.md b/docs/Models/DeletePendingWebhookEventResponse.md deleted file mode 100644 index f7553a3..0000000 --- a/docs/Models/DeletePendingWebhookEventResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeletePendingWebhookEventResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteQuestionConfigResponse.md b/docs/Models/DeleteQuestionConfigResponse.md deleted file mode 100644 index 8e29695..0000000 --- a/docs/Models/DeleteQuestionConfigResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteQuestionConfigResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteQuestionResultResponse.md b/docs/Models/DeleteQuestionResultResponse.md deleted file mode 100644 index 57d60bd..0000000 --- a/docs/Models/DeleteQuestionResultResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteQuestionResultResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteTenantPackageResponse.md b/docs/Models/DeleteTenantPackageResponse.md deleted file mode 100644 index 91b4b88..0000000 --- a/docs/Models/DeleteTenantPackageResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteTenantPackageResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteTenantResponse.md b/docs/Models/DeleteTenantResponse.md deleted file mode 100644 index a1be257..0000000 --- a/docs/Models/DeleteTenantResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteTenantResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteTenantUserResponse.md b/docs/Models/DeleteTenantUserResponse.md deleted file mode 100644 index b666540..0000000 --- a/docs/Models/DeleteTenantUserResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteTenantUserResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteUserBadgeResponse.md b/docs/Models/DeleteUserBadgeResponse.md deleted file mode 100644 index f6c0720..0000000 --- a/docs/Models/DeleteUserBadgeResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteUserBadgeResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteV1PageReactResponse.md b/docs/Models/DeleteV1PageReactResponse.md deleted file mode 100644 index 79e208e..0000000 --- a/docs/Models/DeleteV1PageReactResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteV1PageReactResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **code** | **String** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteV2PageReactResponse.md b/docs/Models/DeleteV2PageReactResponse.md deleted file mode 100644 index ab33dbe..0000000 --- a/docs/Models/DeleteV2PageReactResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeleteV2PageReactResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **code** | **String** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/DeleteVoteResponse.md b/docs/Models/DeleteVoteResponse.md deleted file mode 100644 index bc8193b..0000000 --- a/docs/Models/DeleteVoteResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# DeleteVoteResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **wasPendingVote** | **Boolean** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/FlagCommentPublicResponse.md b/docs/Models/FlagCommentPublicResponse.md deleted file mode 100644 index 731a192..0000000 --- a/docs/Models/FlagCommentPublicResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# FlagCommentPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/FlagCommentResponse_1.md b/docs/Models/FlagCommentResponse_1.md deleted file mode 100644 index 3fa18c5..0000000 --- a/docs/Models/FlagCommentResponse_1.md +++ /dev/null @@ -1,18 +0,0 @@ -# FlagCommentResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **statusCode** | **Integer** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **wasUnapproved** | **Boolean** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetApiCommentsResponse.md b/docs/Models/GetApiCommentsResponse.md deleted file mode 100644 index d6cff4a..0000000 --- a/docs/Models/GetApiCommentsResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetApiCommentsResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **translations** | [**Object**](.md) | | [optional] [default to null] | -| **comments** | [**List**](ModerationAPIComment.md) | | [optional] [default to null] | -| **moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetApiExportStatusResponse.md b/docs/Models/GetApiExportStatusResponse.md deleted file mode 100644 index 4d4dcc3..0000000 --- a/docs/Models/GetApiExportStatusResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetApiExportStatusResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **jobStatus** | **String** | | [optional] [default to null] | -| **recordCount** | **Integer** | | [optional] [default to null] | -| **downloadUrl** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetApiIdsResponse.md b/docs/Models/GetApiIdsResponse.md deleted file mode 100644 index 64ae23d..0000000 --- a/docs/Models/GetApiIdsResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetApiIdsResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **ids** | **List** | | [optional] [default to null] | -| **hasMore** | **Boolean** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetAuditLogsResponse_1.md b/docs/Models/GetAuditLogsResponse_1.md deleted file mode 100644 index 005a44f..0000000 --- a/docs/Models/GetAuditLogsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAuditLogsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **auditLogs** | [**List**](APIAuditLog.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetBanUsersFromCommentResponse.md b/docs/Models/GetBanUsersFromCommentResponse.md deleted file mode 100644 index 1c4428c..0000000 --- a/docs/Models/GetBanUsersFromCommentResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetBanUsersFromCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **bannedUsers** | [**List**](APIBannedUserWithMultiMatchInfo.md) | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCachedNotificationCountResponse_1.md b/docs/Models/GetCachedNotificationCountResponse_1.md deleted file mode 100644 index 3ebe782..0000000 --- a/docs/Models/GetCachedNotificationCountResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCachedNotificationCountResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **data** | [**UserNotificationCount**](UserNotificationCount.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentBanStatusResponse_1.md b/docs/Models/GetCommentBanStatusResponse_1.md deleted file mode 100644 index 1936e90..0000000 --- a/docs/Models/GetCommentBanStatusResponse_1.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetCommentBanStatusResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **emailDomain** | **String** | | [optional] [default to null] | -| **canIPBan** | **Boolean** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentChildrenResponse.md b/docs/Models/GetCommentChildrenResponse.md deleted file mode 100644 index 470c8e6..0000000 --- a/docs/Models/GetCommentChildrenResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCommentChildrenResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **comments** | [**List**](ModerationAPIComment.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentResponse.md b/docs/Models/GetCommentResponse.md deleted file mode 100644 index 3fd2b51..0000000 --- a/docs/Models/GetCommentResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comment** | [**APIComment**](APIComment.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentTextResponse_1.md b/docs/Models/GetCommentTextResponse_1.md deleted file mode 100644 index 6cf5b1e..0000000 --- a/docs/Models/GetCommentTextResponse_1.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetCommentTextResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **commentText** | **String** | | [optional] [default to null] | -| **sanitizedCommentText** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentVoteUserNamesResponse.md b/docs/Models/GetCommentVoteUserNamesResponse.md deleted file mode 100644 index 7902b42..0000000 --- a/docs/Models/GetCommentVoteUserNamesResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetCommentVoteUserNamesResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **voteUserNames** | **List** | | [optional] [default to null] | -| **hasMore** | **Boolean** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentsForUserResponse_1.md b/docs/Models/GetCommentsForUserResponse_1.md deleted file mode 100644 index 879a091..0000000 --- a/docs/Models/GetCommentsForUserResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCommentsForUserResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **moderatingTenantIds** | **List** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentsPublicResponse.md b/docs/Models/GetCommentsPublicResponse.md deleted file mode 100644 index 0657042..0000000 --- a/docs/Models/GetCommentsPublicResponse.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetCommentsPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **statusCode** | **Integer** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **translatedWarning** | **String** | | [optional] [default to null] | -| **comments** | [**List**](PublicComment.md) | | [optional] [default to null] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] [default to null] | -| **urlIdClean** | **String** | | [optional] [default to null] | -| **lastGenDate** | **Long** | | [optional] [default to null] | -| **includesPastPages** | **Boolean** | | [optional] [default to null] | -| **isDemo** | **Boolean** | | [optional] [default to null] | -| **commentCount** | **Integer** | | [optional] [default to null] | -| **isSiteAdmin** | **Boolean** | | [optional] [default to null] | -| **hasBillingIssue** | **Boolean** | | [optional] [default to null] | -| **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **pageNumber** | **Integer** | | [optional] [default to null] | -| **isWhiteLabeled** | **Boolean** | | [optional] [default to null] | -| **isProd** | **Boolean** | | [optional] [default to null] | -| **isCrawler** | **Boolean** | | [optional] [default to null] | -| **notificationCount** | **Integer** | | [optional] [default to null] | -| **hasMore** | **Boolean** | | [optional] [default to null] | -| **isClosed** | **Boolean** | | [optional] [default to null] | -| **presencePollState** | **Integer** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | -| **urlIdWS** | **String** | | [optional] [default to null] | -| **userIdWS** | **String** | | [optional] [default to null] | -| **tenantIdWS** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCommentsResponse.md b/docs/Models/GetCommentsResponse.md deleted file mode 100644 index 262b9fb..0000000 --- a/docs/Models/GetCommentsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCommentsResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comments** | [**List**](APIComment.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCountResponse.md b/docs/Models/GetCountResponse.md deleted file mode 100644 index db13f77..0000000 --- a/docs/Models/GetCountResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCountResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **count** | **Double** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetCountsResponse.md b/docs/Models/GetCountsResponse.md deleted file mode 100644 index e3ec750..0000000 --- a/docs/Models/GetCountsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetCountsResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **totalCount** | **Double** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetEmailTemplateDefinitionsResponse_1.md b/docs/Models/GetEmailTemplateDefinitionsResponse_1.md deleted file mode 100644 index 24ea893..0000000 --- a/docs/Models/GetEmailTemplateDefinitionsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEmailTemplateDefinitionsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **definitions** | [**List**](EmailTemplateDefinition.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetEmailTemplateRenderErrorsResponse_1.md b/docs/Models/GetEmailTemplateRenderErrorsResponse_1.md deleted file mode 100644 index d2c122c..0000000 --- a/docs/Models/GetEmailTemplateRenderErrorsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEmailTemplateRenderErrorsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **renderErrors** | [**List**](EmailTemplateRenderErrorResponse.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetEmailTemplateResponse_1.md b/docs/Models/GetEmailTemplateResponse_1.md deleted file mode 100644 index e23df48..0000000 --- a/docs/Models/GetEmailTemplateResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEmailTemplateResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetEmailTemplatesResponse_1.md b/docs/Models/GetEmailTemplatesResponse_1.md deleted file mode 100644 index 961d2f9..0000000 --- a/docs/Models/GetEmailTemplatesResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEmailTemplatesResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **emailTemplates** | [**List**](CustomEmailTemplate.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetEventLogResponse_1.md b/docs/Models/GetEventLogResponse_1.md deleted file mode 100644 index 7411d08..0000000 --- a/docs/Models/GetEventLogResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetEventLogResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **events** | [**List**](EventLogEntry.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetFeedPostsPublicResponse.md b/docs/Models/GetFeedPostsPublicResponse.md deleted file mode 100644 index 4cf549f..0000000 --- a/docs/Models/GetFeedPostsPublicResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetFeedPostsPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **myReacts** | [**Map**](map.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **feedPosts** | [**List**](FeedPost.md) | | [optional] [default to null] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] [default to null] | -| **urlIdWS** | **String** | | [optional] [default to null] | -| **userIdWS** | **String** | | [optional] [default to null] | -| **tenantIdWS** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetFeedPostsResponse_1.md b/docs/Models/GetFeedPostsResponse_1.md deleted file mode 100644 index f0f7bc2..0000000 --- a/docs/Models/GetFeedPostsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetFeedPostsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **feedPosts** | [**List**](FeedPost.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetFeedPostsStatsResponse.md b/docs/Models/GetFeedPostsStatsResponse.md deleted file mode 100644 index 8ceddc2..0000000 --- a/docs/Models/GetFeedPostsStatsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetFeedPostsStatsResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **stats** | [**Map**](FeedPostStats.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetGifLargeResponse.md b/docs/Models/GetGifLargeResponse.md deleted file mode 100644 index 676f506..0000000 --- a/docs/Models/GetGifLargeResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetGifLargeResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **src** | **String** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetGifsSearchResponse.md b/docs/Models/GetGifsSearchResponse.md index 56ca9bb..45eb9c8 100644 --- a/docs/Models/GetGifsSearchResponse.md +++ b/docs/Models/GetGifsSearchResponse.md @@ -6,12 +6,6 @@ | **images** | [**List**](array.md) | | [optional] [default to null] | | **status** | [**APIStatus**](APIStatus.md) | | [default to null] | | **code** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/GetGlobalEventLogResponse.md b/docs/Models/GetGlobalEventLogResponse.md deleted file mode 100644 index bcc8fb6..0000000 --- a/docs/Models/GetGlobalEventLogResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetGlobalEventLogResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **events** | [**List**](EventLogEntry.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetHashTagsResponse_1.md b/docs/Models/GetHashTagsResponse_1.md deleted file mode 100644 index 10e6433..0000000 --- a/docs/Models/GetHashTagsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetHashTagsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **hashTags** | [**List**](TenantHashTag.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetLogsResponse.md b/docs/Models/GetLogsResponse.md deleted file mode 100644 index b346474..0000000 --- a/docs/Models/GetLogsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetLogsResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **logs** | [**List**](ModerationAPICommentLog.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetManualBadgesForUserResponse.md b/docs/Models/GetManualBadgesForUserResponse.md deleted file mode 100644 index 418db09..0000000 --- a/docs/Models/GetManualBadgesForUserResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetManualBadgesForUserResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **badges** | [**List**](UserBadge.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetManualBadgesResponse.md b/docs/Models/GetManualBadgesResponse.md deleted file mode 100644 index f18199b..0000000 --- a/docs/Models/GetManualBadgesResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetManualBadgesResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **badges** | [**List**](TenantBadge.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetModerationCommentResponse.md b/docs/Models/GetModerationCommentResponse.md deleted file mode 100644 index 0b3f498..0000000 --- a/docs/Models/GetModerationCommentResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetModerationCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **comment** | [**ModerationAPIComment**](ModerationAPIComment.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetModerationCommentTextResponse.md b/docs/Models/GetModerationCommentTextResponse.md deleted file mode 100644 index 08806e8..0000000 --- a/docs/Models/GetModerationCommentTextResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetModerationCommentTextResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **comment** | **String** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetModeratorResponse_1.md b/docs/Models/GetModeratorResponse_1.md deleted file mode 100644 index 8045b77..0000000 --- a/docs/Models/GetModeratorResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetModeratorResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **moderator** | [**Moderator**](Moderator.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetModeratorsResponse_1.md b/docs/Models/GetModeratorsResponse_1.md deleted file mode 100644 index 159a4df..0000000 --- a/docs/Models/GetModeratorsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetModeratorsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **moderators** | [**List**](Moderator.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetNotificationCountResponse_1.md b/docs/Models/GetNotificationCountResponse_1.md deleted file mode 100644 index 45f5d87..0000000 --- a/docs/Models/GetNotificationCountResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetNotificationCountResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **count** | **Double** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetNotificationsResponse_1.md b/docs/Models/GetNotificationsResponse_1.md deleted file mode 100644 index 6535fa1..0000000 --- a/docs/Models/GetNotificationsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetNotificationsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **notifications** | [**List**](UserNotification.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetOfflineUsersResponse.md b/docs/Models/GetOfflineUsersResponse.md deleted file mode 100644 index 24ba65a..0000000 --- a/docs/Models/GetOfflineUsersResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetOfflineUsersResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **nextAfterUserId** | **String** | | [optional] [default to null] | -| **nextAfterName** | **String** | | [optional] [default to null] | -| **users** | [**List**](PageUserEntry.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetOnlineUsersResponse.md b/docs/Models/GetOnlineUsersResponse.md deleted file mode 100644 index ad01243..0000000 --- a/docs/Models/GetOnlineUsersResponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetOnlineUsersResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **nextAfterUserId** | **String** | | [optional] [default to null] | -| **nextAfterName** | **String** | | [optional] [default to null] | -| **totalCount** | **Double** | | [optional] [default to null] | -| **anonCount** | **Double** | | [optional] [default to null] | -| **users** | [**List**](PageUserEntry.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetPagesPublicResponse.md b/docs/Models/GetPagesPublicResponse.md deleted file mode 100644 index 0d97d06..0000000 --- a/docs/Models/GetPagesPublicResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetPagesPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **nextCursor** | **String** | | [optional] [default to null] | -| **pages** | [**List**](PublicPage.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetPendingWebhookEventCountResponse_1.md b/docs/Models/GetPendingWebhookEventCountResponse_1.md deleted file mode 100644 index a1e6504..0000000 --- a/docs/Models/GetPendingWebhookEventCountResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetPendingWebhookEventCountResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **count** | **Double** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetPendingWebhookEventsResponse_1.md b/docs/Models/GetPendingWebhookEventsResponse_1.md deleted file mode 100644 index eaf8072..0000000 --- a/docs/Models/GetPendingWebhookEventsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetPendingWebhookEventsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **pendingWebhookEvents** | [**List**](PendingCommentToSyncOutbound.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetPreBanSummaryResponse.md b/docs/Models/GetPreBanSummaryResponse.md deleted file mode 100644 index c460256..0000000 --- a/docs/Models/GetPreBanSummaryResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetPreBanSummaryResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **usernames** | **List** | | [optional] [default to null] | -| **count** | **Double** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetQuestionConfigResponse_1.md b/docs/Models/GetQuestionConfigResponse_1.md deleted file mode 100644 index 6b2d654..0000000 --- a/docs/Models/GetQuestionConfigResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetQuestionConfigResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetQuestionConfigsResponse_1.md b/docs/Models/GetQuestionConfigsResponse_1.md deleted file mode 100644 index f2a9112..0000000 --- a/docs/Models/GetQuestionConfigsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetQuestionConfigsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionConfigs** | [**List**](QuestionConfig.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetQuestionResultResponse_1.md b/docs/Models/GetQuestionResultResponse_1.md deleted file mode 100644 index c0da0b8..0000000 --- a/docs/Models/GetQuestionResultResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetQuestionResultResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionResult** | [**QuestionResult**](QuestionResult.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetQuestionResultsResponse_1.md b/docs/Models/GetQuestionResultsResponse_1.md deleted file mode 100644 index 837bade..0000000 --- a/docs/Models/GetQuestionResultsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetQuestionResultsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **questionResults** | [**List**](QuestionResult.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetSearchCommentsSummaryResponse.md b/docs/Models/GetSearchCommentsSummaryResponse.md deleted file mode 100644 index 7ffe955..0000000 --- a/docs/Models/GetSearchCommentsSummaryResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetSearchCommentsSummaryResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **commentCount** | **Integer** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetSearchPagesResponse.md b/docs/Models/GetSearchPagesResponse.md deleted file mode 100644 index 1ebc58b..0000000 --- a/docs/Models/GetSearchPagesResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetSearchPagesResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **pages** | [**List**](ModerationPageSearchProjected.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetSearchSitesResponse.md b/docs/Models/GetSearchSitesResponse.md deleted file mode 100644 index c5e8a42..0000000 --- a/docs/Models/GetSearchSitesResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetSearchSitesResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **sites** | [**List**](ModerationSiteSearchProjected.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetSearchSuggestResponse.md b/docs/Models/GetSearchSuggestResponse.md deleted file mode 100644 index 9edca73..0000000 --- a/docs/Models/GetSearchSuggestResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetSearchSuggestResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **pages** | [**List**](ModerationPageSearchProjected.md) | | [optional] [default to null] | -| **users** | [**List**](ModerationUserSearchProjected.md) | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetSearchUsersResponse.md b/docs/Models/GetSearchUsersResponse.md deleted file mode 100644 index 7b3ce71..0000000 --- a/docs/Models/GetSearchUsersResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetSearchUsersResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **users** | [**List**](ModerationUserSearchProjected.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantDailyUsagesResponse_1.md b/docs/Models/GetTenantDailyUsagesResponse_1.md deleted file mode 100644 index d9b2fbe..0000000 --- a/docs/Models/GetTenantDailyUsagesResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantDailyUsagesResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantDailyUsages** | [**List**](APITenantDailyUsage.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantPackageResponse_1.md b/docs/Models/GetTenantPackageResponse_1.md deleted file mode 100644 index 49f0540..0000000 --- a/docs/Models/GetTenantPackageResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantPackageResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantPackage** | [**TenantPackage**](TenantPackage.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantPackagesResponse_1.md b/docs/Models/GetTenantPackagesResponse_1.md deleted file mode 100644 index 7ea2809..0000000 --- a/docs/Models/GetTenantPackagesResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantPackagesResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantPackages** | [**List**](TenantPackage.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantResponse_1.md b/docs/Models/GetTenantResponse_1.md deleted file mode 100644 index 802eb10..0000000 --- a/docs/Models/GetTenantResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenant** | [**APITenant**](APITenant.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantUserResponse_1.md b/docs/Models/GetTenantUserResponse_1.md deleted file mode 100644 index 93365c1..0000000 --- a/docs/Models/GetTenantUserResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantUserResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantUser** | [**User**](User.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantUsersResponse_1.md b/docs/Models/GetTenantUsersResponse_1.md deleted file mode 100644 index 163c4ab..0000000 --- a/docs/Models/GetTenantUsersResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantUsersResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenantUsers** | [**List**](User.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTenantsResponse_1.md b/docs/Models/GetTenantsResponse_1.md deleted file mode 100644 index dc29c90..0000000 --- a/docs/Models/GetTenantsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTenantsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tenants** | [**List**](APITenant.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTicketResponse_1.md b/docs/Models/GetTicketResponse_1.md deleted file mode 100644 index 2ebb945..0000000 --- a/docs/Models/GetTicketResponse_1.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTicketResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **ticket** | [**APITicketDetail**](APITicketDetail.md) | | [optional] [default to null] | -| **availableStates** | **List** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTicketsResponse_1.md b/docs/Models/GetTicketsResponse_1.md deleted file mode 100644 index 370dfaf..0000000 --- a/docs/Models/GetTicketsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTicketsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **tickets** | [**List**](APITicket.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTranslationsResponse_1.md b/docs/Models/GetTranslationsResponse_1.md deleted file mode 100644 index 298ccf2..0000000 --- a/docs/Models/GetTranslationsResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetTranslationsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **translations** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetTrustFactorResponse.md b/docs/Models/GetTrustFactorResponse.md deleted file mode 100644 index a719cec..0000000 --- a/docs/Models/GetTrustFactorResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTrustFactorResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **manualTrustFactor** | **Double** | | [optional] [default to null] | -| **autoTrustFactor** | **Double** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserBadgeProgressByIdResponse.md b/docs/Models/GetUserBadgeProgressByIdResponse.md deleted file mode 100644 index d921640..0000000 --- a/docs/Models/GetUserBadgeProgressByIdResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserBadgeProgressByIdResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadgeProgress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserBadgeProgressByUserIdResponse.md b/docs/Models/GetUserBadgeProgressByUserIdResponse.md deleted file mode 100644 index 71b7569..0000000 --- a/docs/Models/GetUserBadgeProgressByUserIdResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserBadgeProgressByUserIdResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadgeProgress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserBadgeProgressListResponse.md b/docs/Models/GetUserBadgeProgressListResponse.md deleted file mode 100644 index 7c52f15..0000000 --- a/docs/Models/GetUserBadgeProgressListResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserBadgeProgressListResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadgeProgresses** | [**List**](UserBadgeProgress.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserBadgeResponse.md b/docs/Models/GetUserBadgeResponse.md deleted file mode 100644 index 3bb6016..0000000 --- a/docs/Models/GetUserBadgeResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserBadgeResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadge** | [**UserBadge**](UserBadge.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserBadgesResponse.md b/docs/Models/GetUserBadgesResponse.md deleted file mode 100644 index 9c38f0e..0000000 --- a/docs/Models/GetUserBadgesResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserBadgesResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userBadges** | [**List**](UserBadge.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserBanPreferenceResponse.md b/docs/Models/GetUserBanPreferenceResponse.md deleted file mode 100644 index 981d6a8..0000000 --- a/docs/Models/GetUserBanPreferenceResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserBanPreferenceResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserInternalProfileResponse_1.md b/docs/Models/GetUserInternalProfileResponse_1.md deleted file mode 100644 index 736ba8d..0000000 --- a/docs/Models/GetUserInternalProfileResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserInternalProfileResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **profile** | [**GetUserInternalProfileResponse_profile**](GetUserInternalProfileResponse_profile.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserNotificationCountResponse_1.md b/docs/Models/GetUserNotificationCountResponse_1.md deleted file mode 100644 index bf70f6f..0000000 --- a/docs/Models/GetUserNotificationCountResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserNotificationCountResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **count** | **Long** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserNotificationsResponse.md b/docs/Models/GetUserNotificationsResponse.md deleted file mode 100644 index 230f3ad..0000000 --- a/docs/Models/GetUserNotificationsResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetUserNotificationsResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **translations** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **isSubscribed** | **Boolean** | | [optional] [default to null] | -| **hasMore** | **Boolean** | | [optional] [default to null] | -| **notifications** | [**List**](RenderableUserNotification.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserPresenceStatusesResponse_1.md b/docs/Models/GetUserPresenceStatusesResponse_1.md deleted file mode 100644 index cfe5120..0000000 --- a/docs/Models/GetUserPresenceStatusesResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserPresenceStatusesResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **userIdsOnline** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserReactsPublicResponse.md b/docs/Models/GetUserReactsPublicResponse.md deleted file mode 100644 index 5f8ebaa..0000000 --- a/docs/Models/GetUserReactsPublicResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserReactsPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reacts** | [**Map**](map.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUserResponse_1.md b/docs/Models/GetUserResponse_1.md deleted file mode 100644 index da84983..0000000 --- a/docs/Models/GetUserResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUserResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **user** | [**User**](User.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetUsersInfoResponse.md b/docs/Models/GetUsersInfoResponse.md deleted file mode 100644 index 70e7594..0000000 --- a/docs/Models/GetUsersInfoResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetUsersInfoResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **users** | [**List**](PageUserEntry.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetV1PageLikesResponse.md b/docs/Models/GetV1PageLikesResponse.md deleted file mode 100644 index 360d7df..0000000 --- a/docs/Models/GetV1PageLikesResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetV1PageLikesResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **urlIdWS** | **String** | | [optional] [default to null] | -| **didLike** | **Boolean** | | [optional] [default to null] | -| **commentCount** | **Integer** | | [optional] [default to null] | -| **likeCount** | **Integer** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetV2PageReactUsersResponse_1.md b/docs/Models/GetV2PageReactUsersResponse_1.md deleted file mode 100644 index cca0e86..0000000 --- a/docs/Models/GetV2PageReactUsersResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetV2PageReactUsersResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **userNames** | **List** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetV2PageReactsResponse.md b/docs/Models/GetV2PageReactsResponse.md deleted file mode 100644 index 32f603e..0000000 --- a/docs/Models/GetV2PageReactsResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetV2PageReactsResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **reactedIds** | **List** | | [optional] [default to null] | -| **counts** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetVotesForUserResponse_1.md b/docs/Models/GetVotesForUserResponse_1.md deleted file mode 100644 index 081cd68..0000000 --- a/docs/Models/GetVotesForUserResponse_1.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetVotesForUserResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **appliedAuthorizedVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | -| **appliedAnonymousVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | -| **pendingVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/GetVotesResponse_1.md b/docs/Models/GetVotesResponse_1.md deleted file mode 100644 index 28a9bfd..0000000 --- a/docs/Models/GetVotesResponse_1.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetVotesResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **appliedAuthorizedVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | -| **appliedAnonymousVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | -| **pendingVotes** | [**List**](PublicVote.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/LockCommentResponse.md b/docs/Models/LockCommentResponse.md deleted file mode 100644 index 1a53f3a..0000000 --- a/docs/Models/LockCommentResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# LockCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PatchHashTagResponse.md b/docs/Models/PatchHashTagResponse.md deleted file mode 100644 index 47d1947..0000000 --- a/docs/Models/PatchHashTagResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# PatchHashTagResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **hashTag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PinCommentResponse.md b/docs/Models/PinCommentResponse.md deleted file mode 100644 index 146969b..0000000 --- a/docs/Models/PinCommentResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# PinCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **commentPositions** | [**Map**](Record_string__before_string_or_null__after_string_or_null___value.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostAdjustCommentVotesResponse.md b/docs/Models/PostAdjustCommentVotesResponse.md deleted file mode 100644 index 5c1c94e..0000000 --- a/docs/Models/PostAdjustCommentVotesResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# PostAdjustCommentVotesResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **newCommentVotes** | **Integer** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostApiExportResponse.md b/docs/Models/PostApiExportResponse.md deleted file mode 100644 index bdf0e91..0000000 --- a/docs/Models/PostApiExportResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# PostApiExportResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **batchJobId** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostBanUserFromCommentResponse.md b/docs/Models/PostBanUserFromCommentResponse.md deleted file mode 100644 index b01822f..0000000 --- a/docs/Models/PostBanUserFromCommentResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# PostBanUserFromCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostBanUserUndoResponse.md b/docs/Models/PostBanUserUndoResponse.md deleted file mode 100644 index 79c32d5..0000000 --- a/docs/Models/PostBanUserUndoResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# PostBanUserUndoResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostBulkPreBanSummaryResponse.md b/docs/Models/PostBulkPreBanSummaryResponse.md deleted file mode 100644 index 0c00f08..0000000 --- a/docs/Models/PostBulkPreBanSummaryResponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# PostBulkPreBanSummaryResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **totalRelatedCommentCount** | **Integer** | | [optional] [default to null] | -| **emailDomains** | **List** | | [optional] [default to null] | -| **emails** | **List** | | [optional] [default to null] | -| **userIds** | **List** | | [optional] [default to null] | -| **ipHashes** | **List** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostCommentsByIdsResponse.md b/docs/Models/PostCommentsByIdsResponse.md deleted file mode 100644 index fb83524..0000000 --- a/docs/Models/PostCommentsByIdsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# PostCommentsByIdsResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **comments** | [**List**](ModerationAPIComment.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostFlagCommentResponse.md b/docs/Models/PostFlagCommentResponse.md deleted file mode 100644 index ff5b350..0000000 --- a/docs/Models/PostFlagCommentResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# PostFlagCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostRemoveCommentResponse.md b/docs/Models/PostRemoveCommentResponse.md index 379a12b..057e54b 100644 --- a/docs/Models/PostRemoveCommentResponse.md +++ b/docs/Models/PostRemoveCommentResponse.md @@ -3,15 +3,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **action** | **String** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | +| **action** | **String** | | [default to null] | +| **status** | **String** | | [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/PostRestoreDeletedCommentResponse.md b/docs/Models/PostRestoreDeletedCommentResponse.md deleted file mode 100644 index d73a7d9..0000000 --- a/docs/Models/PostRestoreDeletedCommentResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# PostRestoreDeletedCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostSetCommentApprovalStatusResponse.md b/docs/Models/PostSetCommentApprovalStatusResponse.md deleted file mode 100644 index 5481ee0..0000000 --- a/docs/Models/PostSetCommentApprovalStatusResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# PostSetCommentApprovalStatusResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **didResetFlaggedCount** | **Boolean** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostSetCommentReviewStatusResponse.md b/docs/Models/PostSetCommentReviewStatusResponse.md deleted file mode 100644 index 38d0a3d..0000000 --- a/docs/Models/PostSetCommentReviewStatusResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# PostSetCommentReviewStatusResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostSetCommentSpamStatusResponse.md b/docs/Models/PostSetCommentSpamStatusResponse.md deleted file mode 100644 index 1bba478..0000000 --- a/docs/Models/PostSetCommentSpamStatusResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# PostSetCommentSpamStatusResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostSetCommentTextResponse.md b/docs/Models/PostSetCommentTextResponse.md deleted file mode 100644 index fece5a2..0000000 --- a/docs/Models/PostSetCommentTextResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# PostSetCommentTextResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **newCommentTextHTML** | **String** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostUnFlagCommentResponse.md b/docs/Models/PostUnFlagCommentResponse.md deleted file mode 100644 index ad3ca80..0000000 --- a/docs/Models/PostUnFlagCommentResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# PostUnFlagCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PostVoteResponse.md b/docs/Models/PostVoteResponse.md deleted file mode 100644 index 58d945e..0000000 --- a/docs/Models/PostVoteResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# PostVoteResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **voteId** | **String** | | [optional] [default to null] | -| **isVerified** | **Boolean** | | [optional] [default to null] | -| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] [default to null] | -| **editKey** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PutAwardBadgeResponse.md b/docs/Models/PutAwardBadgeResponse.md deleted file mode 100644 index 8e8f77d..0000000 --- a/docs/Models/PutAwardBadgeResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# PutAwardBadgeResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **notes** | **List** | | [optional] [default to null] | -| **badges** | [**List**](CommentUserBadgeInfo.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PutCloseThreadResponse.md b/docs/Models/PutCloseThreadResponse.md deleted file mode 100644 index 970c311..0000000 --- a/docs/Models/PutCloseThreadResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# PutCloseThreadResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PutRemoveBadgeResponse.md b/docs/Models/PutRemoveBadgeResponse.md deleted file mode 100644 index 2b87a74..0000000 --- a/docs/Models/PutRemoveBadgeResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# PutRemoveBadgeResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **badges** | [**List**](CommentUserBadgeInfo.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/PutReopenThreadResponse.md b/docs/Models/PutReopenThreadResponse.md deleted file mode 100644 index 2279b4c..0000000 --- a/docs/Models/PutReopenThreadResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# PutReopenThreadResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/ReactFeedPostPublicResponse.md b/docs/Models/ReactFeedPostPublicResponse.md deleted file mode 100644 index 1f4ecb7..0000000 --- a/docs/Models/ReactFeedPostPublicResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# ReactFeedPostPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reactType** | **String** | | [optional] [default to null] | -| **isUndo** | **Boolean** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/RenderEmailTemplateResponse_1.md b/docs/Models/RenderEmailTemplateResponse_1.md deleted file mode 100644 index 10f4875..0000000 --- a/docs/Models/RenderEmailTemplateResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# RenderEmailTemplateResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **html** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/ReplaceTenantPackageResponse.md b/docs/Models/ReplaceTenantPackageResponse.md deleted file mode 100644 index ba244df..0000000 --- a/docs/Models/ReplaceTenantPackageResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# ReplaceTenantPackageResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/ReplaceTenantUserResponse.md b/docs/Models/ReplaceTenantUserResponse.md deleted file mode 100644 index 7558de7..0000000 --- a/docs/Models/ReplaceTenantUserResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# ReplaceTenantUserResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/ResetUserNotificationCountResponse.md b/docs/Models/ResetUserNotificationCountResponse.md deleted file mode 100644 index 78145d1..0000000 --- a/docs/Models/ResetUserNotificationCountResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# ResetUserNotificationCountResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/ResetUserNotificationsResponse_1.md b/docs/Models/ResetUserNotificationsResponse_1.md deleted file mode 100644 index 705c306..0000000 --- a/docs/Models/ResetUserNotificationsResponse_1.md +++ /dev/null @@ -1,16 +0,0 @@ -# ResetUserNotificationsResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/SaveCommentResponse.md b/docs/Models/SaveCommentResponse.md deleted file mode 100644 index 91b75c5..0000000 --- a/docs/Models/SaveCommentResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# SaveCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **comment** | [**APIComment**](APIComment.md) | | [optional] [default to null] | -| **user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] [default to null] | -| **moduleData** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/SearchUsersResponse_1.md b/docs/Models/SearchUsersResponse_1.md deleted file mode 100644 index 536c764..0000000 --- a/docs/Models/SearchUsersResponse_1.md +++ /dev/null @@ -1,18 +0,0 @@ -# SearchUsersResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **sections** | [**List**](UserSearchSectionResult.md) | | [optional] [default to null] | -| **users** | [**List**](UserSearchResult.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/SendInviteResponse.md b/docs/Models/SendInviteResponse.md deleted file mode 100644 index 8535b4a..0000000 --- a/docs/Models/SendInviteResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendInviteResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/SendLoginLinkResponse.md b/docs/Models/SendLoginLinkResponse.md deleted file mode 100644 index 49126dc..0000000 --- a/docs/Models/SendLoginLinkResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendLoginLinkResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/SetCommentTextResponse_1.md b/docs/Models/SetCommentTextResponse_1.md deleted file mode 100644 index bf34783..0000000 --- a/docs/Models/SetCommentTextResponse_1.md +++ /dev/null @@ -1,17 +0,0 @@ -# SetCommentTextResponse_1 -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/SetTrustFactorResponse.md b/docs/Models/SetTrustFactorResponse.md deleted file mode 100644 index 08127f5..0000000 --- a/docs/Models/SetTrustFactorResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# SetTrustFactorResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **previousManualTrustFactor** | **Double** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UnBlockCommentPublicResponse.md b/docs/Models/UnBlockCommentPublicResponse.md deleted file mode 100644 index 731e1ab..0000000 --- a/docs/Models/UnBlockCommentPublicResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# UnBlockCommentPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UnBlockUserFromCommentResponse.md b/docs/Models/UnBlockUserFromCommentResponse.md deleted file mode 100644 index a6b8f10..0000000 --- a/docs/Models/UnBlockUserFromCommentResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# UnBlockUserFromCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **commentStatuses** | **Map** | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UnFlagCommentResponse.md b/docs/Models/UnFlagCommentResponse.md deleted file mode 100644 index da9825c..0000000 --- a/docs/Models/UnFlagCommentResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# UnFlagCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **statusCode** | **Integer** | | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **wasUnapproved** | **Boolean** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UnLockCommentResponse.md b/docs/Models/UnLockCommentResponse.md deleted file mode 100644 index e79927c..0000000 --- a/docs/Models/UnLockCommentResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UnLockCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UnPinCommentResponse.md b/docs/Models/UnPinCommentResponse.md deleted file mode 100644 index 1cf32b8..0000000 --- a/docs/Models/UnPinCommentResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# UnPinCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **commentPositions** | [**Map**](Record_string__before_string_or_null__after_string_or_null___value.md) | Construct a type with a set of properties K of type T | [optional] [default to null] | -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateCommentResponse.md b/docs/Models/UpdateCommentResponse.md deleted file mode 100644 index 37172d9..0000000 --- a/docs/Models/UpdateCommentResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateEmailTemplateResponse.md b/docs/Models/UpdateEmailTemplateResponse.md deleted file mode 100644 index 2f591df..0000000 --- a/docs/Models/UpdateEmailTemplateResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateEmailTemplateResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateFeedPostPublicResponse.md b/docs/Models/UpdateFeedPostPublicResponse.md deleted file mode 100644 index 5b3184b..0000000 --- a/docs/Models/UpdateFeedPostPublicResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateFeedPostPublicResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **feedPost** | [**FeedPost**](FeedPost.md) | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateFeedPostResponse.md b/docs/Models/UpdateFeedPostResponse.md deleted file mode 100644 index a78db73..0000000 --- a/docs/Models/UpdateFeedPostResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateFeedPostResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateModeratorResponse.md b/docs/Models/UpdateModeratorResponse.md deleted file mode 100644 index 64e742d..0000000 --- a/docs/Models/UpdateModeratorResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateModeratorResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateNotificationResponse.md b/docs/Models/UpdateNotificationResponse.md deleted file mode 100644 index bcc2b3e..0000000 --- a/docs/Models/UpdateNotificationResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateNotificationResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateQuestionConfigResponse.md b/docs/Models/UpdateQuestionConfigResponse.md deleted file mode 100644 index 650d5f6..0000000 --- a/docs/Models/UpdateQuestionConfigResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateQuestionConfigResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateQuestionResultResponse.md b/docs/Models/UpdateQuestionResultResponse.md deleted file mode 100644 index 623f64c..0000000 --- a/docs/Models/UpdateQuestionResultResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateQuestionResultResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateTenantPackageResponse.md b/docs/Models/UpdateTenantPackageResponse.md deleted file mode 100644 index 3f3b380..0000000 --- a/docs/Models/UpdateTenantPackageResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateTenantPackageResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateTenantResponse.md b/docs/Models/UpdateTenantResponse.md deleted file mode 100644 index 5663363..0000000 --- a/docs/Models/UpdateTenantResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateTenantResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateTenantUserResponse.md b/docs/Models/UpdateTenantUserResponse.md deleted file mode 100644 index 92d8dbc..0000000 --- a/docs/Models/UpdateTenantUserResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateTenantUserResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateUserBadgeResponse.md b/docs/Models/UpdateUserBadgeResponse.md deleted file mode 100644 index 4b41be3..0000000 --- a/docs/Models/UpdateUserBadgeResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdateUserBadgeResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md index 0a2df28..43874ef 100644 --- a/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md +++ b/docs/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -7,13 +7,6 @@ | **matchedCount** | **Long** | | [optional] [default to null] | | **modifiedCount** | **Long** | | [optional] [default to null] | | **note** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md b/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md index 01d4ed4..3e93cbd 100644 --- a/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md +++ b/docs/Models/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -7,13 +7,6 @@ | **matchedCount** | **Long** | | [optional] [default to null] | | **modifiedCount** | **Long** | | [optional] [default to null] | | **note** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/UpdateUserNotificationStatusResponse.md b/docs/Models/UpdateUserNotificationStatusResponse.md index b0a9e98..8f1a2ce 100644 --- a/docs/Models/UpdateUserNotificationStatusResponse.md +++ b/docs/Models/UpdateUserNotificationStatusResponse.md @@ -7,13 +7,6 @@ | **matchedCount** | **Long** | | [optional] [default to null] | | **modifiedCount** | **Long** | | [optional] [default to null] | | **note** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Models/VoteCommentResponse.md b/docs/Models/VoteCommentResponse.md deleted file mode 100644 index 1933d59..0000000 --- a/docs/Models/VoteCommentResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# VoteCommentResponse -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -| **status** | [**APIStatus**](APIStatus.md) | | [default to null] | -| **voteId** | **String** | | [optional] [default to null] | -| **isVerified** | **Boolean** | | [optional] [default to null] | -| **user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] [default to null] | -| **editKey** | **String** | | [optional] [default to null] | -| **reason** | **String** | | [optional] [default to null] | -| **code** | **String** | | [optional] [default to null] | -| **secondaryCode** | **String** | | [optional] [default to null] | -| **bannedUntil** | **Long** | | [optional] [default to null] | -| **maxCharacterLength** | **Integer** | | [optional] [default to null] | -| **translatedError** | **String** | | [optional] [default to null] | -| **customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] [default to null] | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/README.md b/docs/README.md index 30eadcf..c923b37 100644 --- a/docs/README.md +++ b/docs/README.md @@ -256,14 +256,11 @@ All URIs are relative to *https://fastcomments.com* - [AddDomainConfigParams](./Models/AddDomainConfigParams.md) - [AddDomainConfigResponse](./Models/AddDomainConfigResponse.md) - [AddDomainConfigResponse_anyOf](./Models/AddDomainConfigResponse_anyOf.md) - - [AddHashTagResponse](./Models/AddHashTagResponse.md) - - [AddHashTagsBulkResponse](./Models/AddHashTagsBulkResponse.md) - [AddPageAPIResponse](./Models/AddPageAPIResponse.md) - [AddSSOUserAPIResponse](./Models/AddSSOUserAPIResponse.md) - [AdjustCommentVotesParams](./Models/AdjustCommentVotesParams.md) - [AdjustVotesResponse](./Models/AdjustVotesResponse.md) - [AggregateQuestionResultsResponse](./Models/AggregateQuestionResultsResponse.md) - - [AggregateQuestionResultsResponse_1](./Models/AggregateQuestionResultsResponse_1.md) - [AggregateResponse](./Models/AggregateResponse.md) - [AggregateTimeBucket](./Models/AggregateTimeBucket.md) - [AggregationAPIError](./Models/AggregationAPIError.md) @@ -283,15 +280,12 @@ All URIs are relative to *https://fastcomments.com* - [BannedUserMatch_matchedOnValue](./Models/BannedUserMatch_matchedOnValue.md) - [BillingInfo](./Models/BillingInfo.md) - [BlockFromCommentParams](./Models/BlockFromCommentParams.md) - - [BlockFromCommentPublicResponse](./Models/BlockFromCommentPublicResponse.md) - [BlockSuccess](./Models/BlockSuccess.md) - - [BlockUserFromCommentResponse](./Models/BlockUserFromCommentResponse.md) - [BuildModerationFilterParams](./Models/BuildModerationFilterParams.md) - [BuildModerationFilterResponse](./Models/BuildModerationFilterResponse.md) - [BulkAggregateQuestionItem](./Models/BulkAggregateQuestionItem.md) - [BulkAggregateQuestionResultsRequest](./Models/BulkAggregateQuestionResultsRequest.md) - [BulkAggregateQuestionResultsResponse](./Models/BulkAggregateQuestionResultsResponse.md) - - [BulkAggregateQuestionResultsResponse_1](./Models/BulkAggregateQuestionResultsResponse_1.md) - [BulkCreateHashTagsBody](./Models/BulkCreateHashTagsBody.md) - [BulkCreateHashTagsBody_tags_inner](./Models/BulkCreateHashTagsBody_tags_inner.md) - [BulkCreateHashTagsResponse](./Models/BulkCreateHashTagsResponse.md) @@ -301,10 +295,7 @@ All URIs are relative to *https://fastcomments.com* - [ChangeCommentPinStatusResponse](./Models/ChangeCommentPinStatusResponse.md) - [ChangeTicketStateBody](./Models/ChangeTicketStateBody.md) - [ChangeTicketStateResponse](./Models/ChangeTicketStateResponse.md) - - [ChangeTicketStateResponse_1](./Models/ChangeTicketStateResponse_1.md) - [CheckBlockedCommentsResponse](./Models/CheckBlockedCommentsResponse.md) - - [CheckedCommentsForBlockedResponse](./Models/CheckedCommentsForBlockedResponse.md) - - [CombineCommentsWithQuestionResultsResponse](./Models/CombineCommentsWithQuestionResultsResponse.md) - [CombineQuestionResultsWithCommentsResponse](./Models/CombineQuestionResultsWithCommentsResponse.md) - [CommentData](./Models/CommentData.md) - [CommentHTMLRenderingMode](./Models/CommentHTMLRenderingMode.md) @@ -324,75 +315,40 @@ All URIs are relative to *https://fastcomments.com* - [CreateAPISSOUserData](./Models/CreateAPISSOUserData.md) - [CreateAPIUserSubscriptionData](./Models/CreateAPIUserSubscriptionData.md) - [CreateCommentParams](./Models/CreateCommentParams.md) - - [CreateCommentPublicResponse](./Models/CreateCommentPublicResponse.md) - [CreateEmailTemplateBody](./Models/CreateEmailTemplateBody.md) - [CreateEmailTemplateResponse](./Models/CreateEmailTemplateResponse.md) - - [CreateEmailTemplateResponse_1](./Models/CreateEmailTemplateResponse_1.md) - [CreateFeedPostParams](./Models/CreateFeedPostParams.md) - - [CreateFeedPostPublicResponse](./Models/CreateFeedPostPublicResponse.md) - [CreateFeedPostResponse](./Models/CreateFeedPostResponse.md) - - [CreateFeedPostResponse_1](./Models/CreateFeedPostResponse_1.md) - [CreateFeedPostsResponse](./Models/CreateFeedPostsResponse.md) - [CreateHashTagBody](./Models/CreateHashTagBody.md) - [CreateHashTagResponse](./Models/CreateHashTagResponse.md) - [CreateModeratorBody](./Models/CreateModeratorBody.md) - [CreateModeratorResponse](./Models/CreateModeratorResponse.md) - - [CreateModeratorResponse_1](./Models/CreateModeratorResponse_1.md) - [CreateQuestionConfigBody](./Models/CreateQuestionConfigBody.md) - [CreateQuestionConfigResponse](./Models/CreateQuestionConfigResponse.md) - - [CreateQuestionConfigResponse_1](./Models/CreateQuestionConfigResponse_1.md) - [CreateQuestionResultBody](./Models/CreateQuestionResultBody.md) - [CreateQuestionResultResponse](./Models/CreateQuestionResultResponse.md) - - [CreateQuestionResultResponse_1](./Models/CreateQuestionResultResponse_1.md) - [CreateSubscriptionAPIResponse](./Models/CreateSubscriptionAPIResponse.md) - [CreateTenantBody](./Models/CreateTenantBody.md) - [CreateTenantPackageBody](./Models/CreateTenantPackageBody.md) - [CreateTenantPackageResponse](./Models/CreateTenantPackageResponse.md) - - [CreateTenantPackageResponse_1](./Models/CreateTenantPackageResponse_1.md) - [CreateTenantResponse](./Models/CreateTenantResponse.md) - - [CreateTenantResponse_1](./Models/CreateTenantResponse_1.md) - [CreateTenantUserBody](./Models/CreateTenantUserBody.md) - [CreateTenantUserResponse](./Models/CreateTenantUserResponse.md) - - [CreateTenantUserResponse_1](./Models/CreateTenantUserResponse_1.md) - [CreateTicketBody](./Models/CreateTicketBody.md) - [CreateTicketResponse](./Models/CreateTicketResponse.md) - - [CreateTicketResponse_1](./Models/CreateTicketResponse_1.md) - [CreateUserBadgeParams](./Models/CreateUserBadgeParams.md) - - [CreateUserBadgeResponse](./Models/CreateUserBadgeResponse.md) - [CreateV1PageReact](./Models/CreateV1PageReact.md) - - [CreateV1PageReactResponse](./Models/CreateV1PageReactResponse.md) - - [CreateV2PageReactResponse](./Models/CreateV2PageReactResponse.md) - - [CreateVoteResponse](./Models/CreateVoteResponse.md) - [CustomConfigParameters](./Models/CustomConfigParameters.md) - [CustomEmailTemplate](./Models/CustomEmailTemplate.md) - [DeleteCommentAction](./Models/DeleteCommentAction.md) - - [DeleteCommentPublicResponse](./Models/DeleteCommentPublicResponse.md) - - [DeleteCommentResponse](./Models/DeleteCommentResponse.md) - [DeleteCommentResult](./Models/DeleteCommentResult.md) - - [DeleteCommentVoteResponse](./Models/DeleteCommentVoteResponse.md) - [DeleteDomainConfigResponse](./Models/DeleteDomainConfigResponse.md) - - [DeleteEmailTemplateRenderErrorResponse](./Models/DeleteEmailTemplateRenderErrorResponse.md) - - [DeleteEmailTemplateResponse](./Models/DeleteEmailTemplateResponse.md) - [DeleteFeedPostPublicResponse](./Models/DeleteFeedPostPublicResponse.md) - - [DeleteFeedPostPublicResponse_anyOf](./Models/DeleteFeedPostPublicResponse_anyOf.md) - [DeleteHashTagRequestBody](./Models/DeleteHashTagRequestBody.md) - - [DeleteHashTagResponse](./Models/DeleteHashTagResponse.md) - - [DeleteModerationVoteResponse](./Models/DeleteModerationVoteResponse.md) - - [DeleteModeratorResponse](./Models/DeleteModeratorResponse.md) - - [DeleteNotificationCountResponse](./Models/DeleteNotificationCountResponse.md) - [DeletePageAPIResponse](./Models/DeletePageAPIResponse.md) - - [DeletePendingWebhookEventResponse](./Models/DeletePendingWebhookEventResponse.md) - - [DeleteQuestionConfigResponse](./Models/DeleteQuestionConfigResponse.md) - - [DeleteQuestionResultResponse](./Models/DeleteQuestionResultResponse.md) - [DeleteSSOUserAPIResponse](./Models/DeleteSSOUserAPIResponse.md) - [DeleteSubscriptionAPIResponse](./Models/DeleteSubscriptionAPIResponse.md) - - [DeleteTenantPackageResponse](./Models/DeleteTenantPackageResponse.md) - - [DeleteTenantResponse](./Models/DeleteTenantResponse.md) - - [DeleteTenantUserResponse](./Models/DeleteTenantUserResponse.md) - - [DeleteUserBadgeResponse](./Models/DeleteUserBadgeResponse.md) - - [DeleteV1PageReactResponse](./Models/DeleteV1PageReactResponse.md) - - [DeleteV2PageReactResponse](./Models/DeleteV2PageReactResponse.md) - - [DeleteVoteResponse](./Models/DeleteVoteResponse.md) - [DeletedCommentResultComment](./Models/DeletedCommentResultComment.md) - [DigestEmailFrequency](./Models/DigestEmailFrequency.md) - [EmailTemplateDefinition](./Models/EmailTemplateDefinition.md) @@ -408,154 +364,72 @@ All URIs are relative to *https://fastcomments.com* - [FeedPostsStatsResponse](./Models/FeedPostsStatsResponse.md) - [FindCommentsByRangeItem](./Models/FindCommentsByRangeItem.md) - [FindCommentsByRangeResponse](./Models/FindCommentsByRangeResponse.md) - - [FlagCommentPublicResponse](./Models/FlagCommentPublicResponse.md) - [FlagCommentResponse](./Models/FlagCommentResponse.md) - - [FlagCommentResponse_1](./Models/FlagCommentResponse_1.md) - - [GetApiCommentsResponse](./Models/GetApiCommentsResponse.md) - - [GetApiExportStatusResponse](./Models/GetApiExportStatusResponse.md) - - [GetApiIdsResponse](./Models/GetApiIdsResponse.md) - [GetAuditLogsResponse](./Models/GetAuditLogsResponse.md) - - [GetAuditLogsResponse_1](./Models/GetAuditLogsResponse_1.md) - - [GetBanUsersFromCommentResponse](./Models/GetBanUsersFromCommentResponse.md) - [GetBannedUsersCountResponse](./Models/GetBannedUsersCountResponse.md) - [GetBannedUsersFromCommentResponse](./Models/GetBannedUsersFromCommentResponse.md) - [GetCachedNotificationCountResponse](./Models/GetCachedNotificationCountResponse.md) - - [GetCachedNotificationCountResponse_1](./Models/GetCachedNotificationCountResponse_1.md) - [GetCommentBanStatusResponse](./Models/GetCommentBanStatusResponse.md) - - [GetCommentBanStatusResponse_1](./Models/GetCommentBanStatusResponse_1.md) - - [GetCommentChildrenResponse](./Models/GetCommentChildrenResponse.md) - - [GetCommentResponse](./Models/GetCommentResponse.md) - [GetCommentTextResponse](./Models/GetCommentTextResponse.md) - - [GetCommentTextResponse_1](./Models/GetCommentTextResponse_1.md) - - [GetCommentVoteUserNamesResponse](./Models/GetCommentVoteUserNamesResponse.md) - [GetCommentVoteUserNamesSuccessResponse](./Models/GetCommentVoteUserNamesSuccessResponse.md) - [GetCommentsForUserResponse](./Models/GetCommentsForUserResponse.md) - - [GetCommentsForUserResponse_1](./Models/GetCommentsForUserResponse_1.md) - - [GetCommentsPublicResponse](./Models/GetCommentsPublicResponse.md) - - [GetCommentsResponse](./Models/GetCommentsResponse.md) - [GetCommentsResponseWithPresence_PublicComment_](./Models/GetCommentsResponseWithPresence_PublicComment_.md) - [GetCommentsResponse_PublicComment_](./Models/GetCommentsResponse_PublicComment_.md) - - [GetCountResponse](./Models/GetCountResponse.md) - - [GetCountsResponse](./Models/GetCountsResponse.md) - [GetDomainConfigResponse](./Models/GetDomainConfigResponse.md) - [GetDomainConfigsResponse](./Models/GetDomainConfigsResponse.md) - [GetDomainConfigsResponse_anyOf](./Models/GetDomainConfigsResponse_anyOf.md) - [GetDomainConfigsResponse_anyOf_1](./Models/GetDomainConfigsResponse_anyOf_1.md) - [GetEmailTemplateDefinitionsResponse](./Models/GetEmailTemplateDefinitionsResponse.md) - - [GetEmailTemplateDefinitionsResponse_1](./Models/GetEmailTemplateDefinitionsResponse_1.md) - [GetEmailTemplateRenderErrorsResponse](./Models/GetEmailTemplateRenderErrorsResponse.md) - - [GetEmailTemplateRenderErrorsResponse_1](./Models/GetEmailTemplateRenderErrorsResponse_1.md) - [GetEmailTemplateResponse](./Models/GetEmailTemplateResponse.md) - - [GetEmailTemplateResponse_1](./Models/GetEmailTemplateResponse_1.md) - [GetEmailTemplatesResponse](./Models/GetEmailTemplatesResponse.md) - - [GetEmailTemplatesResponse_1](./Models/GetEmailTemplatesResponse_1.md) - [GetEventLogResponse](./Models/GetEventLogResponse.md) - - [GetEventLogResponse_1](./Models/GetEventLogResponse_1.md) - - [GetFeedPostsPublicResponse](./Models/GetFeedPostsPublicResponse.md) - [GetFeedPostsResponse](./Models/GetFeedPostsResponse.md) - - [GetFeedPostsResponse_1](./Models/GetFeedPostsResponse_1.md) - - [GetFeedPostsStatsResponse](./Models/GetFeedPostsStatsResponse.md) - - [GetGifLargeResponse](./Models/GetGifLargeResponse.md) - [GetGifsSearchResponse](./Models/GetGifsSearchResponse.md) - [GetGifsTrendingResponse](./Models/GetGifsTrendingResponse.md) - - [GetGlobalEventLogResponse](./Models/GetGlobalEventLogResponse.md) - [GetHashTagsResponse](./Models/GetHashTagsResponse.md) - - [GetHashTagsResponse_1](./Models/GetHashTagsResponse_1.md) - - [GetLogsResponse](./Models/GetLogsResponse.md) - - [GetManualBadgesForUserResponse](./Models/GetManualBadgesForUserResponse.md) - - [GetManualBadgesResponse](./Models/GetManualBadgesResponse.md) - - [GetModerationCommentResponse](./Models/GetModerationCommentResponse.md) - - [GetModerationCommentTextResponse](./Models/GetModerationCommentTextResponse.md) - [GetModeratorResponse](./Models/GetModeratorResponse.md) - - [GetModeratorResponse_1](./Models/GetModeratorResponse_1.md) - [GetModeratorsResponse](./Models/GetModeratorsResponse.md) - - [GetModeratorsResponse_1](./Models/GetModeratorsResponse_1.md) - [GetMyNotificationsResponse](./Models/GetMyNotificationsResponse.md) - [GetNotificationCountResponse](./Models/GetNotificationCountResponse.md) - - [GetNotificationCountResponse_1](./Models/GetNotificationCountResponse_1.md) - [GetNotificationsResponse](./Models/GetNotificationsResponse.md) - - [GetNotificationsResponse_1](./Models/GetNotificationsResponse_1.md) - - [GetOfflineUsersResponse](./Models/GetOfflineUsersResponse.md) - - [GetOnlineUsersResponse](./Models/GetOnlineUsersResponse.md) - [GetPageByURLIdAPIResponse](./Models/GetPageByURLIdAPIResponse.md) - [GetPagesAPIResponse](./Models/GetPagesAPIResponse.md) - - [GetPagesPublicResponse](./Models/GetPagesPublicResponse.md) - [GetPendingWebhookEventCountResponse](./Models/GetPendingWebhookEventCountResponse.md) - - [GetPendingWebhookEventCountResponse_1](./Models/GetPendingWebhookEventCountResponse_1.md) - [GetPendingWebhookEventsResponse](./Models/GetPendingWebhookEventsResponse.md) - - [GetPendingWebhookEventsResponse_1](./Models/GetPendingWebhookEventsResponse_1.md) - - [GetPreBanSummaryResponse](./Models/GetPreBanSummaryResponse.md) - [GetPublicFeedPostsResponse](./Models/GetPublicFeedPostsResponse.md) - [GetPublicPagesResponse](./Models/GetPublicPagesResponse.md) - [GetQuestionConfigResponse](./Models/GetQuestionConfigResponse.md) - - [GetQuestionConfigResponse_1](./Models/GetQuestionConfigResponse_1.md) - [GetQuestionConfigsResponse](./Models/GetQuestionConfigsResponse.md) - - [GetQuestionConfigsResponse_1](./Models/GetQuestionConfigsResponse_1.md) - [GetQuestionResultResponse](./Models/GetQuestionResultResponse.md) - - [GetQuestionResultResponse_1](./Models/GetQuestionResultResponse_1.md) - [GetQuestionResultsResponse](./Models/GetQuestionResultsResponse.md) - - [GetQuestionResultsResponse_1](./Models/GetQuestionResultsResponse_1.md) - [GetSSOUserByEmailAPIResponse](./Models/GetSSOUserByEmailAPIResponse.md) - [GetSSOUserByIdAPIResponse](./Models/GetSSOUserByIdAPIResponse.md) - [GetSSOUsersResponse](./Models/GetSSOUsersResponse.md) - - [GetSearchCommentsSummaryResponse](./Models/GetSearchCommentsSummaryResponse.md) - - [GetSearchPagesResponse](./Models/GetSearchPagesResponse.md) - - [GetSearchSitesResponse](./Models/GetSearchSitesResponse.md) - - [GetSearchSuggestResponse](./Models/GetSearchSuggestResponse.md) - - [GetSearchUsersResponse](./Models/GetSearchUsersResponse.md) - [GetSubscriptionsAPIResponse](./Models/GetSubscriptionsAPIResponse.md) - [GetTenantDailyUsagesResponse](./Models/GetTenantDailyUsagesResponse.md) - - [GetTenantDailyUsagesResponse_1](./Models/GetTenantDailyUsagesResponse_1.md) - [GetTenantManualBadgesResponse](./Models/GetTenantManualBadgesResponse.md) - [GetTenantPackageResponse](./Models/GetTenantPackageResponse.md) - - [GetTenantPackageResponse_1](./Models/GetTenantPackageResponse_1.md) - [GetTenantPackagesResponse](./Models/GetTenantPackagesResponse.md) - - [GetTenantPackagesResponse_1](./Models/GetTenantPackagesResponse_1.md) - [GetTenantResponse](./Models/GetTenantResponse.md) - - [GetTenantResponse_1](./Models/GetTenantResponse_1.md) - [GetTenantUserResponse](./Models/GetTenantUserResponse.md) - - [GetTenantUserResponse_1](./Models/GetTenantUserResponse_1.md) - [GetTenantUsersResponse](./Models/GetTenantUsersResponse.md) - - [GetTenantUsersResponse_1](./Models/GetTenantUsersResponse_1.md) - [GetTenantsResponse](./Models/GetTenantsResponse.md) - - [GetTenantsResponse_1](./Models/GetTenantsResponse_1.md) - [GetTicketResponse](./Models/GetTicketResponse.md) - - [GetTicketResponse_1](./Models/GetTicketResponse_1.md) - [GetTicketsResponse](./Models/GetTicketsResponse.md) - - [GetTicketsResponse_1](./Models/GetTicketsResponse_1.md) - [GetTranslationsResponse](./Models/GetTranslationsResponse.md) - - [GetTranslationsResponse_1](./Models/GetTranslationsResponse_1.md) - - [GetTrustFactorResponse](./Models/GetTrustFactorResponse.md) - - [GetUserBadgeProgressByIdResponse](./Models/GetUserBadgeProgressByIdResponse.md) - - [GetUserBadgeProgressByUserIdResponse](./Models/GetUserBadgeProgressByUserIdResponse.md) - - [GetUserBadgeProgressListResponse](./Models/GetUserBadgeProgressListResponse.md) - - [GetUserBadgeResponse](./Models/GetUserBadgeResponse.md) - - [GetUserBadgesResponse](./Models/GetUserBadgesResponse.md) - - [GetUserBanPreferenceResponse](./Models/GetUserBanPreferenceResponse.md) - [GetUserInternalProfileResponse](./Models/GetUserInternalProfileResponse.md) - - [GetUserInternalProfileResponse_1](./Models/GetUserInternalProfileResponse_1.md) - [GetUserInternalProfileResponse_profile](./Models/GetUserInternalProfileResponse_profile.md) - [GetUserManualBadgesResponse](./Models/GetUserManualBadgesResponse.md) - [GetUserNotificationCountResponse](./Models/GetUserNotificationCountResponse.md) - - [GetUserNotificationCountResponse_1](./Models/GetUserNotificationCountResponse_1.md) - - [GetUserNotificationsResponse](./Models/GetUserNotificationsResponse.md) - [GetUserPresenceStatusesResponse](./Models/GetUserPresenceStatusesResponse.md) - - [GetUserPresenceStatusesResponse_1](./Models/GetUserPresenceStatusesResponse_1.md) - - [GetUserReactsPublicResponse](./Models/GetUserReactsPublicResponse.md) - [GetUserResponse](./Models/GetUserResponse.md) - - [GetUserResponse_1](./Models/GetUserResponse_1.md) - [GetUserTrustFactorResponse](./Models/GetUserTrustFactorResponse.md) - - [GetUsersInfoResponse](./Models/GetUsersInfoResponse.md) - [GetV1PageLikes](./Models/GetV1PageLikes.md) - - [GetV1PageLikesResponse](./Models/GetV1PageLikesResponse.md) - [GetV2PageReactUsersResponse](./Models/GetV2PageReactUsersResponse.md) - - [GetV2PageReactUsersResponse_1](./Models/GetV2PageReactUsersResponse_1.md) - [GetV2PageReacts](./Models/GetV2PageReacts.md) - - [GetV2PageReactsResponse](./Models/GetV2PageReactsResponse.md) - [GetVotesForUserResponse](./Models/GetVotesForUserResponse.md) - - [GetVotesForUserResponse_1](./Models/GetVotesForUserResponse_1.md) - [GetVotesResponse](./Models/GetVotesResponse.md) - - [GetVotesResponse_1](./Models/GetVotesResponse_1.md) - [GifGetLargeResponse](./Models/GifGetLargeResponse.md) - [GifRating](./Models/GifRating.md) - [GifSearchInternalError](./Models/GifSearchInternalError.md) @@ -570,7 +444,6 @@ All URIs are relative to *https://fastcomments.com* - [LiveEvent](./Models/LiveEvent.md) - [LiveEventType](./Models/LiveEventType.md) - [LiveEvent_extraInfo](./Models/LiveEvent_extraInfo.md) - - [LockCommentResponse](./Models/LockCommentResponse.md) - [MediaAsset](./Models/MediaAsset.md) - [MentionAutoCompleteMode](./Models/MentionAutoCompleteMode.md) - [MetaItem](./Models/MetaItem.md) @@ -604,26 +477,10 @@ All URIs are relative to *https://fastcomments.com* - [PagesSortBy](./Models/PagesSortBy.md) - [PatchDomainConfigParams](./Models/PatchDomainConfigParams.md) - [PatchDomainConfigResponse](./Models/PatchDomainConfigResponse.md) - - [PatchHashTagResponse](./Models/PatchHashTagResponse.md) - [PatchPageAPIResponse](./Models/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](./Models/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](./Models/PendingCommentToSyncOutbound.md) - - [PinCommentResponse](./Models/PinCommentResponse.md) - - [PostAdjustCommentVotesResponse](./Models/PostAdjustCommentVotesResponse.md) - - [PostApiExportResponse](./Models/PostApiExportResponse.md) - - [PostBanUserFromCommentResponse](./Models/PostBanUserFromCommentResponse.md) - - [PostBanUserUndoResponse](./Models/PostBanUserUndoResponse.md) - - [PostBulkPreBanSummaryResponse](./Models/PostBulkPreBanSummaryResponse.md) - - [PostCommentsByIdsResponse](./Models/PostCommentsByIdsResponse.md) - - [PostFlagCommentResponse](./Models/PostFlagCommentResponse.md) - [PostRemoveCommentResponse](./Models/PostRemoveCommentResponse.md) - - [PostRestoreDeletedCommentResponse](./Models/PostRestoreDeletedCommentResponse.md) - - [PostSetCommentApprovalStatusResponse](./Models/PostSetCommentApprovalStatusResponse.md) - - [PostSetCommentReviewStatusResponse](./Models/PostSetCommentReviewStatusResponse.md) - - [PostSetCommentSpamStatusResponse](./Models/PostSetCommentSpamStatusResponse.md) - - [PostSetCommentTextResponse](./Models/PostSetCommentTextResponse.md) - - [PostUnFlagCommentResponse](./Models/PostUnFlagCommentResponse.md) - - [PostVoteResponse](./Models/PostVoteResponse.md) - [PreBanSummary](./Models/PreBanSummary.md) - [PubSubComment](./Models/PubSubComment.md) - [PubSubCommentBase](./Models/PubSubCommentBase.md) @@ -637,11 +494,7 @@ All URIs are relative to *https://fastcomments.com* - [PublicFeedPostsResponse](./Models/PublicFeedPostsResponse.md) - [PublicPage](./Models/PublicPage.md) - [PublicVote](./Models/PublicVote.md) - - [PutAwardBadgeResponse](./Models/PutAwardBadgeResponse.md) - - [PutCloseThreadResponse](./Models/PutCloseThreadResponse.md) - [PutDomainConfigResponse](./Models/PutDomainConfigResponse.md) - - [PutRemoveBadgeResponse](./Models/PutRemoveBadgeResponse.md) - - [PutReopenThreadResponse](./Models/PutReopenThreadResponse.md) - [PutSSOUserAPIResponse](./Models/PutSSOUserAPIResponse.md) - [QueryPredicate](./Models/QueryPredicate.md) - [QueryPredicate_value](./Models/QueryPredicate_value.md) @@ -654,42 +507,30 @@ All URIs are relative to *https://fastcomments.com* - [QuestionSubQuestionVisibility](./Models/QuestionSubQuestionVisibility.md) - [QuestionWhenSave](./Models/QuestionWhenSave.md) - [ReactBodyParams](./Models/ReactBodyParams.md) - - [ReactFeedPostPublicResponse](./Models/ReactFeedPostPublicResponse.md) - [ReactFeedPostResponse](./Models/ReactFeedPostResponse.md) - [Record_string__before_string_or_null__after_string_or_null___value](./Models/Record_string__before_string_or_null__after_string_or_null___value.md) - [RemoveCommentActionResponse](./Models/RemoveCommentActionResponse.md) - [RemoveUserBadgeResponse](./Models/RemoveUserBadgeResponse.md) - [RenderEmailTemplateBody](./Models/RenderEmailTemplateBody.md) - [RenderEmailTemplateResponse](./Models/RenderEmailTemplateResponse.md) - - [RenderEmailTemplateResponse_1](./Models/RenderEmailTemplateResponse_1.md) - [RenderableUserNotification](./Models/RenderableUserNotification.md) - [RepeatCommentCheckIgnoredReason](./Models/RepeatCommentCheckIgnoredReason.md) - [RepeatCommentHandlingAction](./Models/RepeatCommentHandlingAction.md) - [ReplaceTenantPackageBody](./Models/ReplaceTenantPackageBody.md) - - [ReplaceTenantPackageResponse](./Models/ReplaceTenantPackageResponse.md) - [ReplaceTenantUserBody](./Models/ReplaceTenantUserBody.md) - - [ReplaceTenantUserResponse](./Models/ReplaceTenantUserResponse.md) - - [ResetUserNotificationCountResponse](./Models/ResetUserNotificationCountResponse.md) - [ResetUserNotificationsResponse](./Models/ResetUserNotificationsResponse.md) - - [ResetUserNotificationsResponse_1](./Models/ResetUserNotificationsResponse_1.md) - [SORT_DIR](./Models/SORT_DIR.md) - [SSOSecurityLevel](./Models/SSOSecurityLevel.md) - - [SaveCommentResponse](./Models/SaveCommentResponse.md) - [SaveCommentResponseOptimized](./Models/SaveCommentResponseOptimized.md) - [SaveCommentsBulkResponse](./Models/SaveCommentsBulkResponse.md) - [SaveCommentsResponseWithPresence](./Models/SaveCommentsResponseWithPresence.md) - [SearchUsersResponse](./Models/SearchUsersResponse.md) - - [SearchUsersResponse_1](./Models/SearchUsersResponse_1.md) - [SearchUsersResult](./Models/SearchUsersResult.md) - [SearchUsersSectionedResponse](./Models/SearchUsersSectionedResponse.md) - - [SendInviteResponse](./Models/SendInviteResponse.md) - - [SendLoginLinkResponse](./Models/SendLoginLinkResponse.md) - [SetCommentApprovedResponse](./Models/SetCommentApprovedResponse.md) - [SetCommentTextParams](./Models/SetCommentTextParams.md) - [SetCommentTextResponse](./Models/SetCommentTextResponse.md) - - [SetCommentTextResponse_1](./Models/SetCommentTextResponse_1.md) - [SetCommentTextResult](./Models/SetCommentTextResult.md) - - [SetTrustFactorResponse](./Models/SetTrustFactorResponse.md) - [SetUserTrustFactorResponse](./Models/SetUserTrustFactorResponse.md) - [SizePreset](./Models/SizePreset.md) - [SortDirections](./Models/SortDirections.md) @@ -698,43 +539,26 @@ All URIs are relative to *https://fastcomments.com* - [TenantBadge](./Models/TenantBadge.md) - [TenantHashTag](./Models/TenantHashTag.md) - [TenantPackage](./Models/TenantPackage.md) - - [UnBlockCommentPublicResponse](./Models/UnBlockCommentPublicResponse.md) - [UnBlockFromCommentParams](./Models/UnBlockFromCommentParams.md) - - [UnBlockUserFromCommentResponse](./Models/UnBlockUserFromCommentResponse.md) - - [UnFlagCommentResponse](./Models/UnFlagCommentResponse.md) - - [UnLockCommentResponse](./Models/UnLockCommentResponse.md) - - [UnPinCommentResponse](./Models/UnPinCommentResponse.md) - [UnblockSuccess](./Models/UnblockSuccess.md) - [UpdatableCommentParams](./Models/UpdatableCommentParams.md) - [UpdateAPIPageData](./Models/UpdateAPIPageData.md) - [UpdateAPISSOUserData](./Models/UpdateAPISSOUserData.md) - [UpdateAPIUserSubscriptionData](./Models/UpdateAPIUserSubscriptionData.md) - - [UpdateCommentResponse](./Models/UpdateCommentResponse.md) - [UpdateDomainConfigParams](./Models/UpdateDomainConfigParams.md) - [UpdateEmailTemplateBody](./Models/UpdateEmailTemplateBody.md) - - [UpdateEmailTemplateResponse](./Models/UpdateEmailTemplateResponse.md) - [UpdateFeedPostParams](./Models/UpdateFeedPostParams.md) - - [UpdateFeedPostPublicResponse](./Models/UpdateFeedPostPublicResponse.md) - - [UpdateFeedPostResponse](./Models/UpdateFeedPostResponse.md) - [UpdateHashTagBody](./Models/UpdateHashTagBody.md) - [UpdateHashTagResponse](./Models/UpdateHashTagResponse.md) - [UpdateModeratorBody](./Models/UpdateModeratorBody.md) - - [UpdateModeratorResponse](./Models/UpdateModeratorResponse.md) - [UpdateNotificationBody](./Models/UpdateNotificationBody.md) - - [UpdateNotificationResponse](./Models/UpdateNotificationResponse.md) - [UpdateQuestionConfigBody](./Models/UpdateQuestionConfigBody.md) - - [UpdateQuestionConfigResponse](./Models/UpdateQuestionConfigResponse.md) - [UpdateQuestionResultBody](./Models/UpdateQuestionResultBody.md) - - [UpdateQuestionResultResponse](./Models/UpdateQuestionResultResponse.md) - [UpdateSubscriptionAPIResponse](./Models/UpdateSubscriptionAPIResponse.md) - [UpdateTenantBody](./Models/UpdateTenantBody.md) - [UpdateTenantPackageBody](./Models/UpdateTenantPackageBody.md) - - [UpdateTenantPackageResponse](./Models/UpdateTenantPackageResponse.md) - - [UpdateTenantResponse](./Models/UpdateTenantResponse.md) - [UpdateTenantUserBody](./Models/UpdateTenantUserBody.md) - - [UpdateTenantUserResponse](./Models/UpdateTenantUserResponse.md) - [UpdateUserBadgeParams](./Models/UpdateUserBadgeParams.md) - - [UpdateUserBadgeResponse](./Models/UpdateUserBadgeResponse.md) - [UpdateUserNotificationCommentSubscriptionStatusResponse](./Models/UpdateUserNotificationCommentSubscriptionStatusResponse.md) - [UpdateUserNotificationPageSubscriptionStatusResponse](./Models/UpdateUserNotificationPageSubscriptionStatusResponse.md) - [UpdateUserNotificationStatusResponse](./Models/UpdateUserNotificationStatusResponse.md) @@ -753,7 +577,6 @@ All URIs are relative to *https://fastcomments.com* - [UserSessionInfo](./Models/UserSessionInfo.md) - [UsersListLocation](./Models/UsersListLocation.md) - [VoteBodyParams](./Models/VoteBodyParams.md) - - [VoteCommentResponse](./Models/VoteCommentResponse.md) - [VoteDeleteResponse](./Models/VoteDeleteResponse.md) - [VoteResponse](./Models/VoteResponse.md) - [VoteResponseUser](./Models/VoteResponseUser.md) diff --git a/openapi.json b/openapi.json index b02430d..0f72c9c 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 679ef7171506943acd0011fe3b39ac4de3914a97 Mon Sep 17 00:00:00 2001 From: winrid Date: Mon, 22 Jun 2026 16:08:40 -0700 Subject: [PATCH 3/3] Bump version to 2.0.1 (patch over the 2.0.0 Moderation API release) --- client/README.md | 2 +- config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/README.md b/client/README.md index 2c8cb09..126c2f7 100644 --- a/client/README.md +++ b/client/README.md @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI spec](https://openapis.org) from a remote server, you can easily generate an API client. - API version: 0.0.0 -- Package version: 2.0.0 +- Package version: 2.0.1 - Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.CppRestSdkClientCodegen diff --git a/config.json b/config.json index b6c7fa7..18de350 100644 --- a/config.json +++ b/config.json @@ -1,4 +1,4 @@ { "packageName": "FastCommentsClient", - "packageVersion": "2.0.0" + "packageVersion": "2.0.1" }