diff --git a/client/README.md b/client/README.md index 1d58458..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: 1.2.1 +- Package version: 2.0.1 - Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.CppRestSdkClientCodegen diff --git a/client/include/FastCommentsClient/api/ModerationApi.h b/client/include/FastCommentsClient/api/ModerationApi.h index 9f34968..6df1ae7 100644 --- a/client/include/FastCommentsClient/api/ModerationApi.h +++ b/client/include/FastCommentsClient/api/ModerationApi.h @@ -91,10 +91,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( utility::string_t commentId, utility::string_t voteId, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -111,6 +115,7 @@ 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( boost::optional page, @@ -121,6 +126,7 @@ class ModerationApi boost::optional searchFilters, boost::optional sorts, boost::optional demo, + boost::optional tenantId, boost::optional sso ) const; /// @@ -130,9 +136,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( boost::optional batchJobId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -147,6 +155,7 @@ 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( boost::optional textSearch, @@ -155,6 +164,7 @@ class ModerationApi boost::optional searchFilters, boost::optional afterId, boost::optional demo, + boost::optional tenantId, boost::optional sso ) const; /// @@ -164,9 +174,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getBanUsersFromComment( utility::string_t commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -176,9 +188,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCommentBanStatus( utility::string_t commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -188,9 +202,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCommentChildren( utility::string_t commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -204,6 +220,7 @@ 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( boost::optional textSearch, @@ -211,6 +228,7 @@ class ModerationApi boost::optional filter, boost::optional searchFilters, boost::optional demo, + boost::optional tenantId, boost::optional sso ) const; /// @@ -219,8 +237,10 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getCounts( + boost::optional tenantId, boost::optional sso ) const; /// @@ -230,9 +250,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getLogs( utility::string_t commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -241,8 +263,10 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getManualBadges( + boost::optional tenantId, boost::optional sso ) const; /// @@ -253,10 +277,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( boost::optional badgesUserId, boost::optional commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -268,11 +294,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( utility::string_t commentId, boost::optional includeEmail, boost::optional includeIP, + boost::optional tenantId, boost::optional sso ) const; /// @@ -282,9 +310,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getModerationCommentText( utility::string_t commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -297,12 +327,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( utility::string_t commentId, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, + boost::optional tenantId, boost::optional sso ) const; /// @@ -314,11 +346,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( boost::optional value, boost::optional filters, boost::optional searchFilters, + boost::optional tenantId, boost::optional sso ) const; /// @@ -328,9 +362,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( boost::optional value, + boost::optional tenantId, boost::optional sso ) const; /// @@ -340,9 +376,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( boost::optional value, + boost::optional tenantId, boost::optional sso ) const; /// @@ -352,9 +390,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( boost::optional textSearch, + boost::optional tenantId, boost::optional sso ) const; /// @@ -364,9 +404,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( boost::optional value, + boost::optional tenantId, boost::optional sso ) const; /// @@ -376,9 +418,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( boost::optional userId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -387,8 +431,10 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> getUserBanPreference( + boost::optional tenantId, boost::optional sso ) const; /// @@ -398,9 +444,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( boost::optional commentId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -411,10 +459,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( utility::string_t commentId, std::shared_ptr adjustCommentVotesParams, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -428,6 +480,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("")) + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postApiExport( boost::optional textSearch, @@ -435,6 +488,7 @@ class ModerationApi boost::optional filters, boost::optional searchFilters, boost::optional sorts, + boost::optional tenantId, boost::optional sso ) const; /// @@ -452,6 +506,7 @@ 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( utility::string_t commentId, @@ -463,6 +518,7 @@ class ModerationApi boost::optional isShadowBan, boost::optional updateId, boost::optional banReason, + boost::optional tenantId, boost::optional sso ) const; /// @@ -472,9 +528,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postBanUserUndo( std::shared_ptr banUserUndoParams, + boost::optional tenantId, boost::optional sso ) const; /// @@ -487,12 +545,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( std::shared_ptr bulkPreBanParams, boost::optional includeByUserIdAndEmail, boost::optional includeByIP, boost::optional includeByEmailDomain, + boost::optional tenantId, boost::optional sso ) const; /// @@ -502,9 +562,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> postCommentsByIds( std::shared_ptr commentsByIdsParams, + boost::optional tenantId, boost::optional sso ) const; /// @@ -514,9 +576,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( utility::string_t commentId, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -526,9 +592,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 +608,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( utility::string_t commentId, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -551,10 +625,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( utility::string_t commentId, boost::optional approved, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -565,10 +643,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( utility::string_t commentId, boost::optional reviewed, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -580,11 +662,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( utility::string_t commentId, boost::optional spam, boost::optional permNotSpam, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -595,10 +681,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( utility::string_t commentId, std::shared_ptr setCommentTextParams, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -608,9 +698,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( utility::string_t commentId, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -621,10 +715,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( utility::string_t commentId, boost::optional direction, + boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -637,12 +735,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( utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -652,9 +752,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> putCloseThread( utility::string_t urlId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -667,12 +769,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( utility::string_t badgeId, boost::optional userId, boost::optional commentId, boost::optional broadcastId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -682,9 +786,11 @@ class ModerationApi /// /// /// + /// (optional, default to utility::conversions::to_string_t("")) /// (optional, default to utility::conversions::to_string_t("")) pplx::task> putReopenThread( utility::string_t urlId, + boost::optional tenantId, boost::optional sso ) const; /// @@ -695,10 +801,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( boost::optional userId, boost::optional trustFactor, + boost::optional tenantId, boost::optional sso ) const; diff --git a/client/include/FastCommentsClient/model/GetLarge_200_response.h b/client/include/FastCommentsClient/model/GetLarge_200_response.h deleted file mode 100644 index 9a52d22..0000000 --- a/client/include/FastCommentsClient/model/GetLarge_200_response.h +++ /dev/null @@ -1,145 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetLarge_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetLarge_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetLarge_200_response_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 GetLarge_200_response - : public ModelBase -{ -public: - GetLarge_200_response(); - virtual ~GetLarge_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetLarge_200_response 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_GetLarge_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetPagesPublic_200_response.h b/client/include/FastCommentsClient/model/GetPagesPublic_200_response.h deleted file mode 100644 index 58fb419..0000000 --- a/client/include/FastCommentsClient/model/GetPagesPublic_200_response.h +++ /dev/null @@ -1,155 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetPagesPublic_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublic_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetPagesPublic_200_response_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 GetPagesPublic_200_response - : public ModelBase -{ -public: - GetPagesPublic_200_response(); - virtual ~GetPagesPublic_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetPagesPublic_200_response 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_GetPagesPublic_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTranslations_200_response.h b/client/include/FastCommentsClient/model/GetTranslations_200_response.h deleted file mode 100644 index 3326975..0000000 --- a/client/include/FastCommentsClient/model/GetTranslations_200_response.h +++ /dev/null @@ -1,149 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTranslations_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslations_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTranslations_200_response_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 GetTranslations_200_response - : public ModelBase -{ -public: - GetTranslations_200_response(); - virtual ~GetTranslations_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTranslations_200_response members - - - /// - /// Construct a type with a set of properties K of type T - /// - std::map getTranslations() const; - bool translationsIsSet() const; - void unsetTranslations(); - void setTranslations(const std::map& value); - - 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_GetTranslations_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/GetTrending_200_response.h b/client/include/FastCommentsClient/model/GetTrending_200_response.h deleted file mode 100644 index 015fc2e..0000000 --- a/client/include/FastCommentsClient/model/GetTrending_200_response.h +++ /dev/null @@ -1,97 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * GetTrending_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrending_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrending_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#include "FastCommentsClient/model/GifSearchResponse_images_inner_inner.h" -#include "FastCommentsClient/model/GifSearchResponse.h" -#include "FastCommentsClient/model/GifSearchInternalError.h" -#include -#include -#include "FastCommentsClient/model/APIStatus.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - - - -class GetTrending_200_response - : public ModelBase -{ -public: - GetTrending_200_response(); - virtual ~GetTrending_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// GetTrending_200_response members - - - std::vector>> getImages() const; - bool imagesIsSet() const; - void unsetImages(); - void setImages(const std::vector>>& value); - - std::shared_ptr getStatus() const; - bool statusIsSet() const; - void unsetStatus(); - void setStatus(const std::shared_ptr& value); - - utility::string_t getCode() const; - bool codeIsSet() const; - void unsetCode(); - void setCode(const utility::string_t& value); - - -protected: - std::vector>> m_Images; - bool m_ImagesIsSet; - - std::shared_ptr m_Status; - bool m_StatusIsSet; - - utility::string_t m_Code; - bool m_CodeIsSet; - -}; - - -} -} -} -} - -#endif /* ORG_OPENAPITOOLS_CLIENT_MODEL_GetTrending_200_response_H_ */ diff --git a/client/include/FastCommentsClient/model/Search_200_response.h b/client/include/FastCommentsClient/model/Search_200_response.h deleted file mode 100644 index 98079a6..0000000 --- a/client/include/FastCommentsClient/model/Search_200_response.h +++ /dev/null @@ -1,148 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -/* - * Search_200_response.h - * - * - */ - -#ifndef ORG_OPENAPITOOLS_CLIENT_MODEL_Search_200_response_H_ -#define ORG_OPENAPITOOLS_CLIENT_MODEL_Search_200_response_H_ - -#include -#include - -#include "FastCommentsClient/ModelBase.h" - -#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 { -namespace openapitools { -namespace client { -namespace model { - -class CustomConfigParameters; - - -class Search_200_response - : public ModelBase -{ -public: - Search_200_response(); - virtual ~Search_200_response(); - - ///////////////////////////////////////////// - /// ModelBase overrides - - void validate() override; - - web::json::value toJson() const override; - bool fromJson(const web::json::value& json) override; - - void toMultipart(std::shared_ptr multipart, const utility::string_t& namePrefix) const override; - bool fromMultiPart(std::shared_ptr multipart, const utility::string_t& namePrefix) override; - - - ///////////////////////////////////////////// - /// Search_200_response 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); - - 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; - bool m_ImagesIsSet; - - 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_Search_200_response_H_ */ diff --git a/client/src/api/ModerationApi.cpp b/client/src/api/ModerationApi.cpp index a04e713..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 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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); diff --git a/client/src/model/GetLarge_200_response.cpp b/client/src/model/GetLarge_200_response.cpp deleted file mode 100644 index ffba9dd..0000000 --- a/client/src/model/GetLarge_200_response.cpp +++ /dev/null @@ -1,512 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetLarge_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetLarge_200_response::GetLarge_200_response() -{ - 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; -} - -GetLarge_200_response::~GetLarge_200_response() -{ -} - -void GetLarge_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetLarge_200_response::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 GetLarge_200_response::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 GetLarge_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_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 GetLarge_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("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 GetLarge_200_response::getSrc() const -{ - return m_Src; -} - - -void GetLarge_200_response::setSrc(const utility::string_t& value) -{ - m_Src = value; - m_SrcIsSet = true; -} - -bool GetLarge_200_response::srcIsSet() const -{ - return m_SrcIsSet; -} - -void GetLarge_200_response::unsetSrc() -{ - m_SrcIsSet = false; -} -std::shared_ptr GetLarge_200_response::getStatus() const -{ - return m_Status; -} - - -void GetLarge_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetLarge_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetLarge_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetLarge_200_response::getReason() const -{ - return m_Reason; -} - - -void GetLarge_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetLarge_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetLarge_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetLarge_200_response::getCode() const -{ - return m_Code; -} - - -void GetLarge_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetLarge_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetLarge_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetLarge_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetLarge_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetLarge_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetLarge_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetLarge_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetLarge_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetLarge_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetLarge_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetLarge_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetLarge_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetLarge_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetLarge_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetLarge_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetLarge_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetLarge_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetLarge_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetLarge_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetLarge_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetLarge_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetLarge_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetPagesPublic_200_response.cpp b/client/src/model/GetPagesPublic_200_response.cpp deleted file mode 100644 index 04a747a..0000000 --- a/client/src/model/GetPagesPublic_200_response.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/GetPagesPublic_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetPagesPublic_200_response::GetPagesPublic_200_response() -{ - 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; -} - -GetPagesPublic_200_response::~GetPagesPublic_200_response() -{ -} - -void GetPagesPublic_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetPagesPublic_200_response::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 GetPagesPublic_200_response::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 GetPagesPublic_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_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 GetPagesPublic_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("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 GetPagesPublic_200_response::getNextCursor() const -{ - return m_NextCursor.get(); -} - - -void GetPagesPublic_200_response::setNextCursor(const utility::string_t& value) -{ - m_NextCursor = value; -} - -bool GetPagesPublic_200_response::nextCursorIsSet() const -{ - return m_NextCursor.has_value(); -} - -void GetPagesPublic_200_response::unsetNextCursor() -{ - m_NextCursor.reset(); -} -std::vector> GetPagesPublic_200_response::getPages() const -{ - return m_Pages; -} - - -void GetPagesPublic_200_response::setPages(const std::vector>& value) -{ - m_Pages = value; - m_PagesIsSet = true; -} - -bool GetPagesPublic_200_response::pagesIsSet() const -{ - return m_PagesIsSet; -} - -void GetPagesPublic_200_response::unsetPages() -{ - m_PagesIsSet = false; -} -std::shared_ptr GetPagesPublic_200_response::getStatus() const -{ - return m_Status; -} - - -void GetPagesPublic_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetPagesPublic_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetPagesPublic_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetPagesPublic_200_response::getReason() const -{ - return m_Reason; -} - - -void GetPagesPublic_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetPagesPublic_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetPagesPublic_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetPagesPublic_200_response::getCode() const -{ - return m_Code; -} - - -void GetPagesPublic_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetPagesPublic_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetPagesPublic_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetPagesPublic_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetPagesPublic_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetPagesPublic_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetPagesPublic_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetPagesPublic_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetPagesPublic_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetPagesPublic_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetPagesPublic_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetPagesPublic_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetPagesPublic_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetPagesPublic_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetPagesPublic_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetPagesPublic_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetPagesPublic_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetPagesPublic_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetPagesPublic_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetPagesPublic_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetPagesPublic_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetPagesPublic_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetPagesPublic_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - diff --git a/client/src/model/GetTranslations_200_response.cpp b/client/src/model/GetTranslations_200_response.cpp deleted file mode 100644 index d486d38..0000000 --- a/client/src/model/GetTranslations_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/GetTranslations_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -GetTranslations_200_response::GetTranslations_200_response() -{ - 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; -} - -GetTranslations_200_response::~GetTranslations_200_response() -{ -} - -void GetTranslations_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value GetTranslations_200_response::toJson() const -{ - web::json::value val = web::json::value::object(); - if(m_TranslationsIsSet) - { - - val[utility::conversions::to_string_t(_XPLATSTR("translations"))] = ModelBase::toJson(m_Translations); - } - if(m_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 GetTranslations_200_response::fromJson(const web::json::value& val) -{ - bool ok = true; - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("translations")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("translations"))); - if(!fieldValue.is_null()) - { - std::map refVal_setTranslations; - ok &= ModelBase::fromJson(fieldValue, refVal_setTranslations); - setTranslations(refVal_setTranslations); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); - if(!fieldValue.is_null()) - { - 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 GetTranslations_200_response::toMultipart(std::shared_ptr multipart, const utility::string_t& prefix) const -{ - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - if(m_TranslationsIsSet) - { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("translations")), m_Translations)); - } - if(m_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 GetTranslations_200_response::fromMultiPart(std::shared_ptr multipart, const utility::string_t& prefix) -{ - bool ok = true; - utility::string_t namePrefix = prefix; - if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) - { - namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); - } - - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("translations")))) - { - std::map refVal_setTranslations; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("translations"))), refVal_setTranslations ); - setTranslations(refVal_setTranslations); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) - { - std::shared_ptr refVal_setStatus; - ok &= ModelBase::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 GetTranslations_200_response::getTranslations() const -{ - return m_Translations; -} - - -void GetTranslations_200_response::setTranslations(const std::map& value) -{ - m_Translations = value; - m_TranslationsIsSet = true; -} - -bool GetTranslations_200_response::translationsIsSet() const -{ - return m_TranslationsIsSet; -} - -void GetTranslations_200_response::unsetTranslations() -{ - m_TranslationsIsSet = false; -} -std::shared_ptr GetTranslations_200_response::getStatus() const -{ - return m_Status; -} - - -void GetTranslations_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool GetTranslations_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void GetTranslations_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t GetTranslations_200_response::getReason() const -{ - return m_Reason; -} - - -void GetTranslations_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool GetTranslations_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void GetTranslations_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t GetTranslations_200_response::getCode() const -{ - return m_Code; -} - - -void GetTranslations_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool GetTranslations_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void GetTranslations_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t GetTranslations_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void GetTranslations_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool GetTranslations_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void GetTranslations_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t GetTranslations_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void GetTranslations_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool GetTranslations_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void GetTranslations_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t GetTranslations_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void GetTranslations_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool GetTranslations_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void GetTranslations_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t GetTranslations_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void GetTranslations_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool GetTranslations_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void GetTranslations_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr GetTranslations_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void GetTranslations_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool GetTranslations_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void GetTranslations_200_response::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/Search_200_response.cpp b/client/src/model/Search_200_response.cpp deleted file mode 100644 index 6439753..0000000 --- a/client/src/model/Search_200_response.cpp +++ /dev/null @@ -1,511 +0,0 @@ -/** - * fastcomments - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * NOTE: This class is auto generated by OpenAPI-Generator 7.23.0-SNAPSHOT. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - - -#include "FastCommentsClient/model/Search_200_response.h" - -namespace org { -namespace openapitools { -namespace client { -namespace model { - -Search_200_response::Search_200_response() -{ - m_ImagesIsSet = 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_SecondaryCode = utility::conversions::to_string_t(""); - m_SecondaryCodeIsSet = false; - m_BannedUntil = 0L; - m_BannedUntilIsSet = false; - m_MaxCharacterLength = 0; - m_MaxCharacterLengthIsSet = false; - m_TranslatedError = utility::conversions::to_string_t(""); - m_TranslatedErrorIsSet = false; - m_CustomConfigIsSet = false; -} - -Search_200_response::~Search_200_response() -{ -} - -void Search_200_response::validate() -{ - // TODO: implement validation -} - -web::json::value Search_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); - } - 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 Search_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); - - } - } - if(val.has_field(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reason"))); - if(!fieldValue.is_null()) - { - 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 Search_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)); - } - 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 Search_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); - } - if(multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reason")))) - { - utility::string_t refVal_setReason; - ok &= ModelBase::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>> Search_200_response::getImages() const -{ - return m_Images; -} - - -void Search_200_response::setImages(const std::vector>>& value) -{ - m_Images = value; - m_ImagesIsSet = true; -} - -bool Search_200_response::imagesIsSet() const -{ - return m_ImagesIsSet; -} - -void Search_200_response::unsetImages() -{ - m_ImagesIsSet = false; -} -std::shared_ptr Search_200_response::getStatus() const -{ - return m_Status; -} - - -void Search_200_response::setStatus(const std::shared_ptr& value) -{ - m_Status = value; - m_StatusIsSet = true; -} - -bool Search_200_response::statusIsSet() const -{ - return m_StatusIsSet; -} - -void Search_200_response::unsetStatus() -{ - m_StatusIsSet = false; -} -utility::string_t Search_200_response::getCode() const -{ - return m_Code; -} - - -void Search_200_response::setCode(const utility::string_t& value) -{ - m_Code = value; - m_CodeIsSet = true; -} - -bool Search_200_response::codeIsSet() const -{ - return m_CodeIsSet; -} - -void Search_200_response::unsetCode() -{ - m_CodeIsSet = false; -} -utility::string_t Search_200_response::getReason() const -{ - return m_Reason; -} - - -void Search_200_response::setReason(const utility::string_t& value) -{ - m_Reason = value; - m_ReasonIsSet = true; -} - -bool Search_200_response::reasonIsSet() const -{ - return m_ReasonIsSet; -} - -void Search_200_response::unsetReason() -{ - m_ReasonIsSet = false; -} -utility::string_t Search_200_response::getSecondaryCode() const -{ - return m_SecondaryCode; -} - - -void Search_200_response::setSecondaryCode(const utility::string_t& value) -{ - m_SecondaryCode = value; - m_SecondaryCodeIsSet = true; -} - -bool Search_200_response::secondaryCodeIsSet() const -{ - return m_SecondaryCodeIsSet; -} - -void Search_200_response::unsetSecondaryCode() -{ - m_SecondaryCodeIsSet = false; -} -int64_t Search_200_response::getBannedUntil() const -{ - return m_BannedUntil; -} - -void Search_200_response::setBannedUntil(int64_t value) -{ - m_BannedUntil = value; - m_BannedUntilIsSet = true; -} - -bool Search_200_response::bannedUntilIsSet() const -{ - return m_BannedUntilIsSet; -} - -void Search_200_response::unsetBannedUntil() -{ - m_BannedUntilIsSet = false; -} -int32_t Search_200_response::getMaxCharacterLength() const -{ - return m_MaxCharacterLength; -} - -void Search_200_response::setMaxCharacterLength(int32_t value) -{ - m_MaxCharacterLength = value; - m_MaxCharacterLengthIsSet = true; -} - -bool Search_200_response::maxCharacterLengthIsSet() const -{ - return m_MaxCharacterLengthIsSet; -} - -void Search_200_response::unsetMaxCharacterLength() -{ - m_MaxCharacterLengthIsSet = false; -} -utility::string_t Search_200_response::getTranslatedError() const -{ - return m_TranslatedError; -} - - -void Search_200_response::setTranslatedError(const utility::string_t& value) -{ - m_TranslatedError = value; - m_TranslatedErrorIsSet = true; -} - -bool Search_200_response::translatedErrorIsSet() const -{ - return m_TranslatedErrorIsSet; -} - -void Search_200_response::unsetTranslatedError() -{ - m_TranslatedErrorIsSet = false; -} -std::shared_ptr Search_200_response::getCustomConfig() const -{ - return m_CustomConfig; -} - - -void Search_200_response::setCustomConfig(const std::shared_ptr& value) -{ - m_CustomConfig = value; - m_CustomConfigIsSet = true; -} - -bool Search_200_response::customConfigIsSet() const -{ - return m_CustomConfigIsSet; -} - -void Search_200_response::unsetCustomConfig() -{ - m_CustomConfigIsSet = false; -} - -} -} -} -} - - 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" } diff --git a/docs/Apis/ModerationApi.md b/docs/Apis/ModerationApi.md index 8ecaec1..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** -> VoteDeleteResponse deleteModerationVote(commentId, voteId, sso) +> VoteDeleteResponse deleteModerationVote(commentId, voteId, broadcastId, tenantId, sso) @@ -61,6 +61,8 @@ 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 @@ -78,7 +80,7 @@ No authorization required # **getApiComments** -> ModerationAPIGetCommentsResponse getApiComments(page, count, text-search, byIPFromComment, filters, searchFilters, sorts, demo, sso) +> ModerationAPIGetCommentsResponse getApiComments(page, count, text-search, byIPFromComment, filters, searchFilters, sorts, demo, tenantId, sso) @@ -94,6 +96,7 @@ 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 @@ -111,7 +114,7 @@ No authorization required # **getApiExportStatus** -> ModerationExportStatusResponse getApiExportStatus(batchJobId, sso) +> ModerationExportStatusResponse getApiExportStatus(batchJobId, tenantId, sso) @@ -120,6 +123,7 @@ 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 @@ -137,7 +141,7 @@ No authorization required # **getApiIds** -> ModerationAPIGetCommentIdsResponse getApiIds(text-search, byIPFromComment, filters, searchFilters, afterId, demo, sso) +> ModerationAPIGetCommentIdsResponse getApiIds(text-search, byIPFromComment, filters, searchFilters, afterId, demo, tenantId, sso) @@ -151,6 +155,7 @@ 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 @@ -168,7 +173,7 @@ No authorization required # **getBanUsersFromComment** -> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId, sso) +> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId, tenantId, sso) @@ -177,6 +182,7 @@ 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 @@ -194,7 +200,7 @@ No authorization required # **getCommentBanStatus** -> GetCommentBanStatusResponse getCommentBanStatus(commentId, sso) +> GetCommentBanStatusResponse getCommentBanStatus(commentId, tenantId, sso) @@ -203,6 +209,7 @@ 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 @@ -220,7 +227,7 @@ No authorization required # **getCommentChildren** -> ModerationAPIChildCommentsResponse getCommentChildren(commentId, sso) +> ModerationAPIChildCommentsResponse getCommentChildren(commentId, tenantId, sso) @@ -229,6 +236,7 @@ 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 @@ -246,7 +254,7 @@ No authorization required # **getCount** -> ModerationAPICountCommentsResponse getCount(text-search, byIPFromComment, filter, searchFilters, demo, sso) +> ModerationAPICountCommentsResponse getCount(text-search, byIPFromComment, filter, searchFilters, demo, tenantId, sso) @@ -259,6 +267,7 @@ 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 @@ -276,7 +285,7 @@ No authorization required # **getCounts** -> GetBannedUsersCountResponse getCounts(sso) +> GetBannedUsersCountResponse getCounts(tenantId, sso) @@ -284,6 +293,7 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -301,7 +311,7 @@ No authorization required # **getLogs** -> ModerationAPIGetLogsResponse getLogs(commentId, sso) +> ModerationAPIGetLogsResponse getLogs(commentId, tenantId, sso) @@ -310,6 +320,7 @@ 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 @@ -327,7 +338,7 @@ No authorization required # **getManualBadges** -> GetTenantManualBadgesResponse getManualBadges(sso) +> GetTenantManualBadgesResponse getManualBadges(tenantId, sso) @@ -335,6 +346,7 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -352,7 +364,7 @@ No authorization required # **getManualBadgesForUser** -> GetUserManualBadgesResponse getManualBadgesForUser(badgesUserId, commentId, sso) +> GetUserManualBadgesResponse getManualBadgesForUser(badgesUserId, commentId, tenantId, sso) @@ -362,6 +374,7 @@ 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 @@ -379,7 +392,7 @@ No authorization required # **getModerationComment** -> ModerationAPICommentResponse getModerationComment(commentId, includeEmail, includeIP, sso) +> ModerationAPICommentResponse getModerationComment(commentId, includeEmail, includeIP, tenantId, sso) @@ -390,6 +403,7 @@ 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 @@ -407,7 +421,7 @@ No authorization required # **getModerationCommentText** -> GetCommentTextResponse getModerationCommentText(commentId, sso) +> GetCommentTextResponse getModerationCommentText(commentId, tenantId, sso) @@ -416,6 +430,7 @@ 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 @@ -433,7 +448,7 @@ No authorization required # **getPreBanSummary** -> PreBanSummary getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) +> PreBanSummary getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso) @@ -445,6 +460,7 @@ 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 @@ -462,7 +478,7 @@ No authorization required # **getSearchCommentsSummary** -> ModerationCommentSearchResponse getSearchCommentsSummary(value, filters, searchFilters, sso) +> ModerationCommentSearchResponse getSearchCommentsSummary(value, filters, searchFilters, tenantId, sso) @@ -473,6 +489,7 @@ 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 @@ -490,7 +507,7 @@ No authorization required # **getSearchPages** -> ModerationPageSearchResponse getSearchPages(value, sso) +> ModerationPageSearchResponse getSearchPages(value, tenantId, sso) @@ -499,6 +516,7 @@ 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 @@ -516,7 +534,7 @@ No authorization required # **getSearchSites** -> ModerationSiteSearchResponse getSearchSites(value, sso) +> ModerationSiteSearchResponse getSearchSites(value, tenantId, sso) @@ -525,6 +543,7 @@ 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 @@ -542,7 +561,7 @@ No authorization required # **getSearchSuggest** -> ModerationSuggestResponse getSearchSuggest(text-search, sso) +> ModerationSuggestResponse getSearchSuggest(text-search, tenantId, sso) @@ -551,6 +570,7 @@ 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 @@ -568,7 +588,7 @@ No authorization required # **getSearchUsers** -> ModerationUserSearchResponse getSearchUsers(value, sso) +> ModerationUserSearchResponse getSearchUsers(value, tenantId, sso) @@ -577,6 +597,7 @@ 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 @@ -594,7 +615,7 @@ No authorization required # **getTrustFactor** -> GetUserTrustFactorResponse getTrustFactor(userId, sso) +> GetUserTrustFactorResponse getTrustFactor(userId, tenantId, sso) @@ -603,6 +624,7 @@ 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 @@ -620,7 +642,7 @@ No authorization required # **getUserBanPreference** -> APIModerateGetUserBanPreferencesResponse getUserBanPreference(sso) +> APIModerateGetUserBanPreferencesResponse getUserBanPreference(tenantId, sso) @@ -628,6 +650,7 @@ No authorization required |Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **tenantId** | **String**| | [optional] [default to null] | | **sso** | **String**| | [optional] [default to null] | ### Return type @@ -645,7 +668,7 @@ No authorization required # **getUserInternalProfile** -> GetUserInternalProfileResponse getUserInternalProfile(commentId, sso) +> GetUserInternalProfileResponse getUserInternalProfile(commentId, tenantId, sso) @@ -654,6 +677,7 @@ 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 @@ -671,7 +695,7 @@ No authorization required # **postAdjustCommentVotes** -> AdjustVotesResponse postAdjustCommentVotes(commentId, AdjustCommentVotesParams, sso) +> AdjustVotesResponse postAdjustCommentVotes(commentId, AdjustCommentVotesParams, broadcastId, tenantId, sso) @@ -681,6 +705,8 @@ 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 @@ -698,7 +724,7 @@ No authorization required # **postApiExport** -> ModerationExportResponse postApiExport(text-search, byIPFromComment, filters, searchFilters, sorts, sso) +> ModerationExportResponse postApiExport(text-search, byIPFromComment, filters, searchFilters, sorts, tenantId, sso) @@ -711,6 +737,7 @@ 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 @@ -728,7 +755,7 @@ No authorization required # **postBanUserFromComment** -> BanUserFromCommentResult postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso) +> BanUserFromCommentResult postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, tenantId, sso) @@ -745,6 +772,7 @@ 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 @@ -762,7 +790,7 @@ No authorization required # **postBanUserUndo** -> APIEmptyResponse postBanUserUndo(BanUserUndoParams, sso) +> APIEmptyResponse postBanUserUndo(BanUserUndoParams, tenantId, sso) @@ -771,6 +799,7 @@ 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 @@ -788,7 +817,7 @@ No authorization required # **postBulkPreBanSummary** -> BulkPreBanSummary postBulkPreBanSummary(BulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) +> BulkPreBanSummary postBulkPreBanSummary(BulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, tenantId, sso) @@ -800,6 +829,7 @@ 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 @@ -817,7 +847,7 @@ No authorization required # **postCommentsByIds** -> ModerationAPIChildCommentsResponse postCommentsByIds(CommentsByIdsParams, sso) +> ModerationAPIChildCommentsResponse postCommentsByIds(CommentsByIdsParams, tenantId, sso) @@ -826,6 +856,7 @@ 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 @@ -843,7 +874,7 @@ No authorization required # **postFlagComment** -> APIEmptyResponse postFlagComment(commentId, sso) +> APIEmptyResponse postFlagComment(commentId, broadcastId, tenantId, sso) @@ -852,6 +883,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 @@ -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) +> APIEmptyResponse postRestoreDeletedComment(commentId, broadcastId, tenantId, sso) @@ -904,6 +939,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 @@ -921,7 +958,7 @@ No authorization required # **postSetCommentApprovalStatus** -> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId, approved, sso) +> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId, approved, broadcastId, tenantId, sso) @@ -931,6 +968,8 @@ 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 @@ -948,7 +987,7 @@ No authorization required # **postSetCommentReviewStatus** -> APIEmptyResponse postSetCommentReviewStatus(commentId, reviewed, sso) +> APIEmptyResponse postSetCommentReviewStatus(commentId, reviewed, broadcastId, tenantId, sso) @@ -958,6 +997,8 @@ 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 @@ -975,7 +1016,7 @@ No authorization required # **postSetCommentSpamStatus** -> APIEmptyResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, sso) +> APIEmptyResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, broadcastId, tenantId, sso) @@ -986,6 +1027,8 @@ 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 @@ -1003,7 +1046,7 @@ No authorization required # **postSetCommentText** -> SetCommentTextResponse postSetCommentText(commentId, SetCommentTextParams, sso) +> SetCommentTextResponse postSetCommentText(commentId, SetCommentTextParams, broadcastId, tenantId, sso) @@ -1013,6 +1056,8 @@ 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 @@ -1030,7 +1075,7 @@ No authorization required # **postUnFlagComment** -> APIEmptyResponse postUnFlagComment(commentId, sso) +> APIEmptyResponse postUnFlagComment(commentId, broadcastId, tenantId, sso) @@ -1039,6 +1084,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 @@ -1056,7 +1103,7 @@ No authorization required # **postVote** -> VoteResponse postVote(commentId, direction, sso) +> VoteResponse postVote(commentId, direction, broadcastId, tenantId, sso) @@ -1066,6 +1113,8 @@ 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 @@ -1083,7 +1132,7 @@ No authorization required # **putAwardBadge** -> AwardUserBadgeResponse putAwardBadge(badgeId, userId, commentId, broadcastId, sso) +> AwardUserBadgeResponse putAwardBadge(badgeId, userId, commentId, broadcastId, tenantId, sso) @@ -1095,6 +1144,7 @@ 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 @@ -1112,7 +1162,7 @@ No authorization required # **putCloseThread** -> APIEmptyResponse putCloseThread(urlId, sso) +> APIEmptyResponse putCloseThread(urlId, tenantId, sso) @@ -1121,6 +1171,7 @@ 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 @@ -1138,7 +1189,7 @@ No authorization required # **putRemoveBadge** -> RemoveUserBadgeResponse putRemoveBadge(badgeId, userId, commentId, broadcastId, sso) +> RemoveUserBadgeResponse putRemoveBadge(badgeId, userId, commentId, broadcastId, tenantId, sso) @@ -1150,6 +1201,7 @@ 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 @@ -1167,7 +1219,7 @@ No authorization required # **putReopenThread** -> APIEmptyResponse putReopenThread(urlId, sso) +> APIEmptyResponse putReopenThread(urlId, tenantId, sso) @@ -1176,6 +1228,7 @@ 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 @@ -1193,7 +1246,7 @@ No authorization required # **setTrustFactor** -> SetUserTrustFactorResponse setTrustFactor(userId, trustFactor, sso) +> SetUserTrustFactorResponse setTrustFactor(userId, trustFactor, tenantId, sso) @@ -1203,6 +1256,7 @@ 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 diff --git a/openapi.json b/openapi.json index ca0225c..0f72c9c 100644 --- a/openapi.json +++ b/openapi.json @@ -13177,6 +13177,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13266,6 +13274,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13373,6 +13389,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13454,6 +13478,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13503,6 +13535,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13552,6 +13592,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13601,6 +13649,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13650,6 +13706,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13715,6 +13779,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13764,6 +13836,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13837,6 +13917,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -13902,6 +13990,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14025,6 +14121,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14074,6 +14178,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14115,6 +14227,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14182,6 +14302,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", @@ -14231,6 +14367,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", @@ -14280,6 +14432,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", @@ -14329,6 +14497,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", @@ -14386,6 +14570,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", @@ -14451,6 +14651,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", @@ -14508,6 +14724,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", @@ -14557,6 +14789,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14622,6 +14862,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14663,6 +14911,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14722,6 +14978,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14771,6 +15035,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14820,6 +15092,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", @@ -14879,6 +15167,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", @@ -14946,6 +15250,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", @@ -15003,6 +15323,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", @@ -15052,6 +15388,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15093,6 +15437,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15134,6 +15486,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15191,6 +15551,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15264,6 +15632,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15337,6 +15713,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15386,6 +15770,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15443,6 +15835,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15492,6 +15892,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15541,6 +15949,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15590,6 +16006,14 @@ "type": "string" } }, + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15631,6 +16055,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso",